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

How to disable postback on GridFilter

1 Answer 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 2
Ajay asked on 19 Mar 2010, 12:19 PM
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 

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 24 Mar 2010, 10:46 AM
Hi Ajay,

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

Greetings,
Veli
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.
Tags
Grid
Asked by
Ajay
Top achievements
Rank 2
Answers by
Veli
Telerik team
Share this question
or