a suitable solution which can be fitted in my project. Suppose I have 2 columns in Rad Grid. Column A and B. If I filter the grid using
column A, then only those values will show in column B's filter list which are now showing in the grid. It would be very
helpful if you can provide a demo for it.
Thanks in advance.
Iffat
13 Answers, 1 is accepted
Please take a look at this demo on Filtering with Client-Side Binding, which presents this CheckList Filtering.
Thanks,
Princy
Thanks for your reply. I have followed this demo. But it does't show checklist with already filtered data. I need a demo with this feature implemented.
Thanks
Note that the requested scenario is only possible if you have a server side binding. Otherwise you will not be able to get the filter values on the server and perform the filtering of the datasource of the second filter. I would recommend you to examine the following help article which elaborates more on CheckList Filtering. Basically you could use the FilterCheckListItemsRequestedevent handler which is fired when the filter menu is opened. There you could bind the ListBox to your datasource which is initially filter and return the data which needs to be displayed. Generally when you have a server side bidning you could get the filter items from the FilterExpression. You could access the FilterExpressions on the server from the MasterTableView.
RadGrid1.MasterTableView.FilterExpression
Regards,
Kostadin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Thanks a lot for your reply. Now I can get the filterexpression in Prerender event. I have another question. I need the 'filtered' dataset which I cannot find from where to get. I have radgrid's datasource and the filteredexpression. So I need apply the filterexpression in the radgrid's datasource. It would be something like this:
FilteredDataSet= radgrid_datasource.AsEnumerable().AsQueryable().Where(filterexpression).CopyToDataTable();
However it is not working. Any help will be appreciated. Thanks in advance.
Does Checklistfilter(using OnFilterCheckListItemsRequested event) supports multiple value selection?
OnFilterCheckListItemsRequested event handler is used to populate the filter menu with data only. Note that the selected values of the filter as persisted on the client, so basically you could not select them on the server. Nevertheless our developers are currently working of implementing such feature and you could track the progress in our Ideas&Feedback portal.
Regards,
Kostadin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Thanks for your reply. Can you please tell me how can I change the text of "Check All" of checklistfilter from client side?
Thanks
Iffat
I am afraid that currently is not possible to change the text because there isn't an appropriate event which is fired when the check list menu is populated with data. Nevertheless our developers will implement such event in a future for scenarios as yours.
Regards,
Kostadin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Hello,
Is there any update on this topic ?
- Localization of 'Select All' Label
- CheckListFilter 'B' taking care of another CheckListFilter 'A' ; displaying dynamic filter options
Best regards !
Regards you first question I am afraid we still don't have a solution for it but I will increase the priority of the item in our system. As to your second question I would suggest you to check my first reply where I described how you can achieve the requested functionality.
Regards,
Kostadin
Telerik
Thank you Kostadin for your answer.
Also, is the 'Search' label in the input TextBox above the ListBox localizable ?
Idem for the string 'Show rows with value that'.
Is there a workaround you can suggest to localize these labels (using Jquery maybe) ?
Regards
Additionally, is there a special client event fired when opening HeaderContextFilterMenu ?
ClientEvents OnFilterMenuShowing doesn't seem to be.
You can check out the following help article which elaborates more on localizing the header context menu. Also the event which is firing when open the menu is OnClientShown.
<
HeaderContextMenu
OnClientShown
=
"OnClientShown"
></
HeaderContextMenu
>
Regards,
Kostadin
Telerik