I can get the menu to show up with the checkboxes for the OnFilterCheckListItemsRequested.
However when you select any of the checkboxes you are not able to click "filter" button and the "show rows with value that" drop down box is disabled. The button highlights but no click action or postback.
however if i use the "checkbox" or "combine" for the FilterType it works when selecting items from the list.
attached is my radgrid code and a screenshot of the menu.
However when you select any of the checkboxes you are not able to click "filter" button and the "show rows with value that" drop down box is disabled. The button highlights but no click action or postback.
however if i use the "checkbox" or "combine" for the FilterType it works when selecting items from the list.
attached is my radgrid code and a screenshot of the menu.
<
telerik:RadGrid
ID
=
"RadGrid1"
AllowFilteringByColumn
=
"True"
runat
=
"server"
FilterType="
AllowPaging
=
"True"
OnFilterCheckListItemsRequested
=
"RadGrid1_FilterCheckListItemsRequested"
Height
=
"100%"
AllowSorting
=
"True"
ShowGroupPanel
=
"True"
EnableGroupsExpandAll
=
"True"
EnableHeaderContextMenu
=
"True"
EnableHierarchyExpandAll
=
"True"
ShowFooter
=
"True"
ShowStatusBar
=
"True"
PageSize
=
"500"
OnInfrastructureExporting
=
"RadGrid1_InfrastructureExporting"
EnableHeaderContextAggregatesMenu
=
"True"
FilterMenu-EnableAutoScroll
=
"False"
FilterMenu-EnableImageSprites
=
"True"
FilterMenu-EnableRootItemScroll
=
"True"
FilterMenu-EnableSelection
=
"True"
FilterMenu-EnableTextHTMLEncoding
=
"True"
FilterMenu-ShowToggleHandle
=
"True"
MasterTableView-AllowFilteringByColumn
=
"True"
MasterTableView-EnableGroupsExpandAll
=
"True"
MasterTableView-EnableHeaderContextAggregatesMenu
=
"True"
MasterTableView-EnableHeaderContextFilterMenu
=
"True"
MasterTableView-EnableHeaderContextMenu
=
"True"
MasterTableView-EnableHierarchyExpandAll
=
"True"
MasterTableView-RetrieveDataTypeFromFirstItem
=
"True"
RegisterWithScriptManager
=
"True"
PagerStyle-PageSizeControlType
=
"RadComboBox"
ClientSettings-AllowColumnHide
=
"True"
ClientSettings-AllowColumnsReorder
=
"True"
ClientSettings-AllowDragToGroup
=
"True"
ClientSettings-AllowKeyboardNavigation
=
"True"
ClientSettings-AllowRowsDragDrop
=
"True"
ClientSettings-EnableRowHoverStyle
=
"True"
FilterMenu-AppendDataBoundItems
=
"True"
>
<
CommandItemStyle
/>
<
ExportSettings
ExportOnlyData
=
"True"
IgnorePaging
=
"True"
Excel-Format
=
"Xlsx"
>
</
ExportSettings
>
<
ClientSettings
AllowDragToGroup
=
"false"
Resizing-AllowColumnResize
=
"true"
AllowColumnHide
=
"True"
AllowColumnsReorder
=
"True"
AllowRowHide
=
"True"
AllowRowsDragDrop
=
"True"
ReorderColumnsOnClient
=
"True"
Animation-AllowColumnReorderAnimation
=
"False"
Animation-AllowColumnRevertAnimation
=
"False"
DataBinding-EnableCaching
=
"True"
Resizing-AllowResizeToFit
=
"True"
Resizing-EnableRealTimeResize
=
"True"
Scrolling-AllowScroll
=
"False"
Scrolling-SaveScrollPosition
=
"True"
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
CommandItemDisplay
=
"Top"
Width
=
"100%"
EnableGroupsExpandAll
=
"True"
EnableHeaderContextAggregatesMenu
=
"True"
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"False"
ShowExportToCsvButton
=
"True"
ShowExportToExcelButton
=
"True"
ShowRefreshButton
=
"True"
/>
</
MasterTableView
>
<
FilterMenu
CssClass
=
"RadFilterMenu_CheckList"
>
</
FilterMenu
>
</
telerik:RadGrid
>
Code Behind
Protected
Sub
RadGrid1_FilterCheckListItemsRequested(sender
As
Object
, e
As
GridFilterCheckListItemsRequestedEventArgs)
Dim
DataField
As
String
= TryCast(e.Column, IGridDataColumn).GetActiveDataField()
e.ListBox.DataSource = GetDataTableFromCacheOrDatabase(DataField)
e.ListBox.DataKeyField = DataField
e.ListBox.DataTextField = DataField
e.ListBox.DataValueField = DataField
e.ListBox.DataBind()
End
Sub
Private
Sub
RadGrid1_ColumnCreated(sender
As
Object
, e
As
GridColumnCreatedEventArgs)
Handles
RadGrid1.ColumnCreated
e.Column.FilterCheckListEnableLoadOnDemand =
True
End
Sub