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

Refresh Grid with out binding

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pat
Top achievements
Rank 1
Pat asked on 07 Nov 2011, 03:36 PM
I have run into a problem where I am doing a databind and it causes invalid postback errors in the system events log.  I am doing the rebind to change the appearance of the grid. i.e. turn of sort, display on line in grid not 20, hide a couple columns etc..   I am not changing the underlying data that has been selected.   Calling the databind sometime causes errors. Is there a way to refresh the appearance of the grid without using the databind?

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 07 Nov 2011, 05:00 PM
Hi Pat,

When you are using any advanced feature in grid like filtering, sorting, paging etc. then RadGrid requires advanced data-binding through its NeedDataSource event . You can refer to the demo linked below for more information:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/needdatasource/defaultcs.aspx

Give it a try and let me know if it helps to avoid this error.

Regards,
Pavlina
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Pat
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or