Note that there are some explanatory texts on larger screens.

plurals
  1. POShow calendar in Ultragrid Column Filter
    primarykey
    data
    text
    <p>I have an UltraGrid in which I have many columns of which 2 columns are DateTime style. Now when I use the filter of that columns it shows all the DateTime values as a text in a dropdown. But I need that as a calendar in order to make the filter easy. It is enough to show just a calendar when clicking the filter.</p> <p>I have tried some code but it doesn't work.</p> <p>//Code:</p> <pre><code>Private Sub grdResult_BeforeRowFilterDropDown(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.BeforeRowFilterDropDownEventArgs) Handles grdResult.BeforeRowFilterDropDown e.Cancel = True UltraCalendarCombo1.Visible = True UltraCalendarCombo1.Location = New Point(grdResult.Rows.FilterRow.Cells(e.Column).GetUIElement().Rect.Location.X, grdResult.Rows.FilterRow.Cells(e.Column).GetUIElement().Rect.Location.Y - 2) UltraCalendarCombo1.Size = New System.Drawing.Size(grdResult.Rows.FilterRow.Cells(e.Column).GetUIElement().Rect.Size.Width, grdResult.Rows.FilterRow.Cells(e.Column).GetUIElement().Rect.Size.Height) ' UltraCalendarCombo1.DroppedDown = True End Sub </code></pre> <p>The above event will fire when the filter dropdown is clicked.</p> <pre><code> private sub applyCustomeViewSettings(byval gridFormat as GridFormat) .... ... For Each ColumnFormat In gridFormat.ColumnFormats For Each column In Me.grdResult.DisplayLayout.Bands(0).Columns If column.Key.ToUpper = ColumnFormat.ColumnKey.ToUpper Then If column.Key.ToUpper = "PCSSTDT" Then column.Header.Caption = IIf(ColumnFormat.Caption = "", ColumnFormat.ColumnKey, ColumnFormat.Caption) column.Hidden = ColumnFormat.Hidden 'column.AllowRowFiltering = IIf(ColumnFormat.AllowRowFiltering = False, ColumnFormat.AllowRowFiltering, DefaultableBoolean.True) 'CType(ColumnFormat.AllowRowFiltering, DefaultableBoolean) column.Width = ColumnFormat.Width column.Header.VisiblePosition = ColumnFormat.VisiblePosition column.Format = ColumnFormat.Format column.SortIndicator = ColumnFormat.SortIndicator ' column.Style = ColumnStyle.Date 'column.EditorComponent = UltraCalendarCombo1 column.FilterOperandStyle = FilterOperandStyle.Default Else column.Header.Caption = IIf(ColumnFormat.Caption = "", ColumnFormat.ColumnKey, ColumnFormat.Caption) column.Hidden = ColumnFormat.Hidden column.AllowRowFiltering = IIf(ColumnFormat.AllowRowFiltering = False, ColumnFormat.AllowRowFiltering, DefaultableBoolean.True) 'CType(ColumnFormat.AllowRowFiltering, DefaultableBoolean) column.Width = ColumnFormat.Width column.Header.VisiblePosition = ColumnFormat.VisiblePosition column.Format = ColumnFormat.Format column.SortIndicator = ColumnFormat.SortIndicator column.Style = ColumnFormat.Style End If End If Next .... ... End Sub </code></pre> <p>The above method makes the grid changes(apply settings) to show the filter as calendar. But this doesn't work and showing me the same normal grid.</p> <p>How can I achieve this?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload