Get reference to dropdownlist widget in grid on save

4 posts, 0 answers
  1. Greg
    Greg avatar
    24 posts
    Member since:
    Dec 2014

    Posted 18 Aug Link to this post

    I have a grid that uses Batch mode.  On the Save event  I need to obtain a reference to a dropdownlist (not the cell, but the widget) in the 4th cell of this grid.  How do you do this?
  2. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 22 Aug Link to this post

    Hello Greg,

    You can use a jQuery to access the DropDownList widget used as editor. Please check out the following code snippet which demonstrates that.
    function save(e)
    {
        //Category is the name of the field bound to the column
        e.container.find("#Category").data("kendoDropDownList")
    }

    I hope this information proves helpful.

    Regards,
    Kostadin
    Telerik by Progress
    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Greg
    Greg avatar
    24 posts
    Member since:
    Dec 2014

    Posted 22 Aug in reply to Kostadin Link to this post

    Hello Kostadin

    On the save event of a grid in Batch mode it doesn't seem to work.  e.container looks to be referenceing only the dropdownlist that triggered the save event.

  5. Greg
    Greg avatar
    24 posts
    Member since:
    Dec 2014

    Posted 22 Aug Link to this post

    Kostadin

    I have an ticket open related to this issue.  Thanks for your help.

Back to Top
UI for ASP.NET MVC is VS 2017 Ready