RadGrid With one filter, apply other columns

2 posts, 0 answers
  1. Bruno
    Bruno avatar
    1 posts
    Member since:
    May 2016

    Posted 01 Oct 2019 Link to this post

    Hi Guys

    I have a radgrid, with multiple columns. Four of them, have the same content, is there a way that using the first column filter, the other with the same content?

    Thanks in advance.

    Example 

    Column A      Column B      Column C      Column D
    Spain            Spain             Poland           Italy
    France          Germany        France           Denmark
    Italy               USA               Germany       Spain

    Using Column A filter = Spain

    Column A      Column B      Column C      Column D
    Spain            Spain             Poland           Italy
    Italy               USA               Germany       Spain

  2. Eyup
    Admin
    Eyup avatar
    3892 posts

    Posted 04 Oct 2019 Link to this post

    Hi Bruno,

     

    Yes, this is possible. If the paging is disabled, you can use this client-side approach:
    https://www.telerik.com/support/code-library/quick-search---filtering-rows-depending-on-entered-text-instantly-when-paging-is-disabled

    If the paging is enabled, you can use the FireCommandMethod to fire a custom Filtering command:
    https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/control-lifecycle/how-to-fire-command-events

    I am sending 2 web site samples which you can use as a reference.

    I hope this will prove helpful. Feel free to give it a try and let me know if I can assist with anything else.

     

    Regards,
    Eyup
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top