I have a TemplatedColumn in an Ultrawebgrid. I have a dropdownlist in that.
I want to access the dropdownlist in the javascript and assign the list items as required for each of the row. Could someone help out. This is urgent.
Hello Yi,
I am just checking about the progress of this issue.
Did you solve your issue accordingly the information that I provided to you?
Let me know if you need any further assistance
LyubaDeveloper Support Engineer Infragisticswww.infragistics.com/support
You can get the dropdownlist inside a specific cell, by accessing the child controls of the html element of the grid cell:
var cell = grid.Rows.getRow(rowIndex).getCell(templateColIndex);
var dd = cell.getElement().childNodes[indexOfTheControlInsideTheCell];
If you don’t have other controls inside the template column, indexOfTheControlnsideTheCell would be 0.
You can add items to the drodownlist using javascrip by assigning its options:
dd.options[0] = new Option("1", "a");
dd.options[1] = new Option("2", "b");
dd.options[2] = new Option("3", "c");
Regards,
Lyuba Petrova
Developer Support Engineer
Infragistics
www.infragistics.com/support