How to disable postback on GridFilter

2 posts, 0 answers
  1. Ajay
    Ajay avatar
    66 posts
    Member since:
    May 2009

    Posted 19 Mar 2010 Link to this post

    Hi Telerik !

    I have a RAD GRID with four columns say.....

    UserName  FolderName FolderPath AssignPermission

    I have a FILTER TEXT BOX on to the USERNAME  & FOLDER NAME columns.

    Now when I type an Username to filter the USERNAME columns the request goes on to the SERVER & filter the records for the Username columns.

    Same happens in case of Foldername.

    All i here want is to filter the RECORDS without any postback on to the server.

    Currently, Iam using the follwing code snipttet provide in one of your FORUMS :-

     <ClientEvents OnCommand="GridCommand" /> 

    & Java script Code as :-
    function GridCommand(sender, args) { 
        if (args.get_commandName() == "Filter") { 
            args.set_cancel(true); //stops the filter command  

    Please help me.

    Thanks & Regards 
  2. Veli
    Veli avatar
    2002 posts

    Posted 24 Mar 2010 Link to this post

    Hi Ajay,

    Isn't the approach you have tried not using? Canceling the filter command on the client should suscessfully prevent postback on filter.

    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
Back to Top