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

[Solved] after ajax request, how to rebuild the grid's columns

1 Answer 96 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.
rong
Top achievements
Rank 1
rong asked on 14 Mar 2012, 10:07 AM
I'm having the issues after ajax requist then i want to rebuild the grid's columns.
the columns is dynamic column, it depends on the values of the form.

this is the list of the steps:
1. submit the form
2. the ajax submit success.
3. need rebuild the grid's columns.
4, rebind the grid.

How to rebuild the grid's columns after ajax request?
becuase when submit the form,  the columns maybe need change caused by the some value of the form, so it need rebuid the columns.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Mar 2012, 08:13 AM
Hello,

Modifying the columns on the client is not supported. You could load the Grid with the new column configuration in a Partial View via Ajax to achieve the described behaviour.

All the best,
Daniel
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
rong
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or