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

[Solved] Derived model & grid.

1 Answer 31 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.
Liam Coffey
Top achievements
Rank 1
Liam Coffey asked on 13 Apr 2012, 09:30 AM
Hi,

I am using the grid and passing the base class as the model.

I have a TreeView that allows items to be selected that are derivatives of this base class and filters the grid results base on what is selected.

Is there a way to change the columns on the grid using JavaScript also?
At the moment only the columns for the base class show up and the derived types have many varying fields that need to be displayed.
The grid is current set to auto-generate but I am guessing this only applies to the initial page render of this control.

I have looked everywhere for client-javascript column change but I cannot find anything.

1 Answer, 1 is accepted

Sort by
0
Liam
Top achievements
Rank 1
answered on 17 Apr 2012, 10:00 AM
Still no answer for this?
I have experimented having a JS loaded partial injected into a div to allow me to dynamically change column settings.
However I still have the same issue.
Telerik MVC Grid doesn't seem to support rebinding when derived types are used and the base class is used as the type initialiser, this behaviour breaks away from the entity framework derived types behaviour.
Tags
Grid
Asked by
Liam Coffey
Top achievements
Rank 1
Answers by
Liam
Top achievements
Rank 1
Share this question
or