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

dynamical resource of dropdown list in a grid

1 Answer 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 10 Jun 2015, 06:24 PM

Let' s say, there a mvc grid with a dropdown list inside it. The grid has three mode; view edit and add modes, in other words users are able to  view, edit, and add records.

The data source of this dropdown list changes dynamically depending on the modes; for example,

if in view mode, the ddl lists item1, item2, item3 item4, and item5,

if in Add mode, the ddl lists item2, item3.

if in Edit mode, the ddl lists item2, item5,

That means the ddl source from different linq queries depending on grid modes.

Is it possible to achieve it? Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 12 Jun 2015, 12:19 PM

Hello Kevin,

I already replied to your question in the support ticket. 

My suggestion is to use the Data method of the Read operation as demonstrated in this forum thread. Based on whether the model is new or existing one different parameter should be sent to the server. 

Regards,
Boyan Dimitrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or