asp.net mvc 3 - Paging in MVC Telerik Grid not Working -
i working on project display graduated , current student on page. rendered information on client side using telerik grid. page has 2 radio button - 1 radio button displaying graduated students , other displaying current students. every time user click on 1 of radio button, not post. there more current graduate students. when user access last page current student , click on graduate radio button, not show graduate students. telerik page did not update expected. undergrad page has 23 pages while graduate 1 has 18. accessing graduate page still on page 23 though have 18 pages.
i follow example , added
.pageable(paging => paging.enabled((bool)viewdata["paging"]).pageto(1))
it not go page one.
i not figure out how make paging work properly. result, created 2 session variables, have values true or false, , redirected user same page setting grad , undergrad students flag false or true. if user came in first time, grad students flag set false, , page not redirect. same logic created undergrad student.
Comments
Post a Comment