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

[Solved] MVC Grid Header not getting Refereshed

1 Answer 45 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.
Gurarpan
Top achievements
Rank 1
Gurarpan asked on 21 Sep 2011, 01:55 PM
Hi I am binding MVC grid with Data table.

We used data table because we need dynamic columns.

We are rebinding grid using method i.e.

var

 

 

grid = $("#Grid").data('tGrid');

 

grid.rebind();



In this case grid rows get refereshed but not header .

Please help its urgent.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 22 Sep 2011, 02:03 PM
Hi Gurarpan,

This behavior is expected - the rebind() method will only refresh the data in the grid. To update the columns, you need to refresh the whole page so the columns to be regenerated. 

All the best,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
Gurarpan
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or