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

[Solved] Gird is refreshing first time when move page 1 to page 2

1 Answer 46 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.
Ranjan
Top achievements
Rank 1
Ranjan asked on 06 Jul 2010, 09:55 AM
Hi

I have bind my grid with following code.

<% Html.Telerik().Grid<ADLWare.Model.Comapny.Clients.Client>(Model)
        .Name("ClientDetail")
        .Columns(columns =>
        {
            columns.Bound(o => o.ClientName).Format(Html.ActionLink("{0}", "GetData", "ClientDetail", new { id = "{0}" }).ToString()).Encoded(false);
            columns.Bound(o => o.ClientAddress).Width(200);
            columns.Bound(o => o.ClientCity).Width(200);
            columns.Bound(o => o.ClientState).Width(100);
            
        })
        .DataBinding(dataBinding => dataBinding.Ajax().Select("GetClientVal", "ClientDetail"))
        .EnableCustomBinding(false)
        .Sortable(sorting => sorting.Enabled(true))
        .Pageable(paging => paging.Enabled(true).PageSize(10).Style(GridPagerStyles.Numeric))
        .Filterable(filter => filter.Enabled(true))
        .Render();
                      
%>

But when any event fire first time then all page pastback with URl "http://localhost:57400/Home/ListPage?ClientDetail-page=2" after that all request goes partial. Why first time whole page postback.

Please help.

1 Answer, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 25 Mar 2011, 10:51 AM
+1 - I'm having the exact same problem.
Sorting works perfectly and uses an ajax postback, but paging seems to use a full page postback.

Ranjan - did you ever solve this?

Tags
Grid
Asked by
Ranjan
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Share this question
or