Dear Concern,
I'm trying to select frist value from dropdownlist if have only one value. I have grid Add row button. When I'm clicking on Add line button (please see attached image) grid creating one row job drop-down should automatically bind if job drop-down has one value.Please see the attached file. This will help users to fill the job dropdown more quickly (no need click on dropdown) if just one job in dropdown.
If only one job in dropdown and user clicks on Add Line, Make it so that the JOB# automatically fills.
I'm trying below way but its not working.
var dataItem = _getGridCurrentDataItem(PARTS_GRID_CONTROL_ID);
if (jobs.length == 1) {
if (dataItem) {
dataItem.set("SerRecID", jobs[0]);
}
}
Thanks !
Liton