Hi Rakesh,
Thank you for contacting Syncfusion Support.
We analyzed your requirement and we achieved using “
DataBound” event of Grid in which we set the value for the dropdown using “
setSelectedValue” method of Dropdownlist.
Please refer to the following code example.
<div id="targetsGrid" ej-grid e-datasource="data"
e-databound = "databoundtest"
>
</div>
angular.module('listCtrl', ['ejangular'])
.controller('PhoneListCtrl', function ($scope, $compile) {
. . .
$scope.databoundtest = "templateCompile";
. . .
});
function templateCompile(args){
. . .
this.getContentTable().find(".drpAccessGroup").ejDropDownList("setSelectedValue","2");
}
|
We created the sample in jsplayground and please refer to the following link.
http://jsplayground.syncfusion.com/kmaczmiw
And also find the following documentation link for further reference of
setSelectedValue method of Dropdown list.
http://jsplayground.syncfusion.com/kmaczmiw
Regards,
Saravanan.A