This is a migrated thread and some comments may be shown as answers.

CheckListFilter

13 Answers 200 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Iffat
Top achievements
Rank 1
Iffat asked on 26 Jun 2014, 09:24 AM
Can you please provide a demo to show how to filter(using CheckListFilter) the grid with a filtered data set. I have searched through the forum but can't find
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

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Jun 2014, 09:38 AM
Hi Iffat,

Please take a look at this demo on Filtering with Client-Side Binding, which presents this CheckList Filtering.

Thanks,
Princy
0
Iffat
Top achievements
Rank 1
answered on 26 Jun 2014, 10:04 AM
HI 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
0
Kostadin
Telerik team
answered on 01 Jul 2014, 08:15 AM
Hello Iffat,

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.

 
0
Iffat
Top achievements
Rank 1
answered on 01 Jul 2014, 09:39 AM
Hi Kostadin,

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.

0
Iffat
Top achievements
Rank 1
answered on 03 Jul 2014, 10:38 AM
Hi,

Does Checklistfilter(using OnFilterCheckListItemsRequested event) supports multiple value selection? 
0
Kostadin
Telerik team
answered on 04 Jul 2014, 07:42 AM
Hello Iffat,

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.

 
0
Iffat
Top achievements
Rank 1
answered on 08 Jul 2014, 06:28 AM
Hi Kostadin,

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
0
Kostadin
Telerik team
answered on 11 Jul 2014, 06:54 AM
Hello 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.

 
0
SPH
Top achievements
Rank 1
answered on 03 Mar 2016, 04:02 PM

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 !

0
Kostadin
Telerik team
answered on 08 Mar 2016, 01:40 PM
Hi,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
SPH
Top achievements
Rank 1
answered on 24 Mar 2016, 03:35 PM

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

0
SPH
Top achievements
Rank 1
answered on 25 Mar 2016, 10:07 AM

Additionally, is there a special client event fired when opening HeaderContextFilterMenu ?

ClientEvents OnFilterMenuShowing doesn't seem to be.

0
Kostadin
Telerik team
answered on 29 Mar 2016, 05:47 AM
Hello,

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
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Filter
Asked by
Iffat
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Iffat
Top achievements
Rank 1
Kostadin
Telerik team
SPH
Top achievements
Rank 1
Share this question
or