dynamical resource of dropdown list in a grid

2 posts, 1 answers
  1. Kevin
    Kevin avatar
    1 posts
    Member since:
    Apr 2015

    Posted 10 Jun 2015 Link to this post

    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

  2. Answer
    Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 posts

    Posted 12 Jun 2015 Link to this post

    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. 

    Boyan Dimitrov
    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
Back to Top