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

[Solved] Jquery Rebind grid paging

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Howard
Top achievements
Rank 1
Howard asked on 13 Sep 2012, 05:20 AM
Dear Telerik Team,

I've got a Grid with a command button which opens up a telerik window. when I click cross in the window to close, i'm rebinding the grid but I'm losing the pagination. for e.g. if I'm in page 3, I open up the window and then close it, the grid rebinds but goes to page 1. Please let me know how to retain the page nos.

This is my jquery to rebind in onClose event of window

function onClosePickupReturnCancel(e) {       
        var $grid = $("#List").data("tGrid");
        $grid.rebind();
    }


Thank you
Niroj

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 18 Sep 2012, 08:21 AM
Hi Niroj,

 

In your case you should use the ajaxRequest method which will rebind the Grid using the current Grid state (current page, sort order etc.).

Kind Regards,
Vladimir Iliev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Grid
Asked by
Howard
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or