CheckListFilter

14 posts, 0 answers
  1. Iffat
    Iffat avatar
    7 posts
    Member since:
    Jun 2014

    Posted 26 Jun 2014 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Jun 2014 in reply to Iffat Link to this post

    Hi Iffat,

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

    Thanks,
    Princy
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Iffat
    Iffat avatar
    7 posts
    Member since:
    Jun 2014

    Posted 26 Jun 2014 Link to this post

    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
  5. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 01 Jul 2014 Link to this post

    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.

     
  6. Iffat
    Iffat avatar
    7 posts
    Member since:
    Jun 2014

    Posted 01 Jul 2014 Link to this post

    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.

  7. Iffat
    Iffat avatar
    7 posts
    Member since:
    Jun 2014

    Posted 03 Jul 2014 Link to this post

    Hi,

    Does Checklistfilter(using OnFilterCheckListItemsRequested event) supports multiple value selection? 
  8. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 04 Jul 2014 Link to this post

    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.

     
  9. Iffat
    Iffat avatar
    7 posts
    Member since:
    Jun 2014

    Posted 08 Jul 2014 Link to this post

    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
  10. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 11 Jul 2014 Link to this post

    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.

     
  11. SPH
    SPH avatar
    7 posts
    Member since:
    Jul 2012

    Posted 03 Mar in reply to Kostadin Link to this post

    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 !

  12. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 08 Mar Link to this post

    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
  13. SPH
    SPH avatar
    7 posts
    Member since:
    Jul 2012

    Posted 24 Mar in reply to Kostadin Link to this post

    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

  14. SPH
    SPH avatar
    7 posts
    Member since:
    Jul 2012

    Posted 25 Mar in reply to SPH Link to this post

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

    ClientEvents OnFilterMenuShowing doesn't seem to be.

  15. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 29 Mar Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017