AbhishekSrivastava - Monday, March 21, 2016 2:26 AM:
Dear Friends ,
If we have a single value in dropdown then i want it will autoselect not need to click on that. I just save it will show on grid. So i have tried below code but still not success.
kindly share your solution.
function dataBound(e) { var data = this.dataSource.data(); if (data.length === 1) { var item = data[0]; var valueField = this.options.dataValueField; this.value(item[valueField]); this.trigger("change"); }}Thanks
Abhishek Srivastava