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

Paging Postback Problems Part II

2 Answers 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon-Jon Kershaw
Top achievements
Rank 2
Jon-Jon Kershaw asked on 09 Jan 2009, 03:55 PM
In follw up to this thread http://www.telerik.com/community/forums/aspnet-ajax/grid/paging-postback-problems.aspx

now when i make a filter change it does the same post back problem.  I fixed the first paging problem by rebinding on the onpageindexchanged but what about one for filter change?  is there a event for that?

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 12 Jan 2009, 02:32 PM
Hi Jon,

To avoid any problems you are struggling with, please consider using advanced data-binding.

If you want to handle when you are filtering data, you need to use the following code:
    protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
    { 
        if (e.CommandName == "Filter")  
        { 
            //When filtering of data is performed 
        } 
    } 

Best regards,
Georgi Krustev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon-Jon Kershaw
Top achievements
Rank 2
answered on 12 Jan 2009, 05:34 PM
Thanks for the response.  I figured it out after playing around with the ItemCommand event.  I placed the rebind on that instead of individual configurable events like PageIndex and Filter.  The ItemCommand event effects all the events including the PageIndex and Filter so it worked perfectly.

Thanks again.
Tags
Grid
Asked by
Jon-Jon Kershaw
Top achievements
Rank 2
Answers by
Georgi Krustev
Telerik team
Jon-Jon Kershaw
Top achievements
Rank 2
Share this question
or