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

Get reference to dropdownlist widget in grid on save

3 Answers 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 18 Aug 2016, 04:21 PM
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?

3 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 22 Aug 2016, 08:27 AM
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
0
Greg
Top achievements
Rank 1
answered on 22 Aug 2016, 02:41 PM

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.

0
Greg
Top achievements
Rank 1
answered on 22 Aug 2016, 02:49 PM

Kostadin

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

Tags
Grid
Asked by
Greg
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Greg
Top achievements
Rank 1
Share this question
or