Its very urgent. to complete current work.
waiting for your very very quick reply
1) when we change one dropdown other dropdown automatically changed
2) when we rebind the dropdown of grid we are not able to set selected value.
<div ma-target-grid-sorting id="targetsGrid" ej-grid e-datasource="data" ng-init="setTargetList(@Newtonsoft.Json.JsonConvert.SerializeObject(@Model, new Newtonsoft.Json.JsonSerializerSettings { ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver() }))"
e-columns="columns"
class="gridStyle"
e-allowresizing="true"
e-allowkeyboardnavigation="true"
e-allowscrolling="true"
e-allowsorting="true"
e-minwidth="550"
e-isresponsive="true"
e-scrollsettings-height="320"
e-allowgrouping="true"
e-groupsettings-groupedcolumns="targetGroupColumn"
e-allowfiltering="true"
e-filtersettings-filtertype="excel"
e-actioncomplete="complete"
e-create="complete"
e-enabletouch="false">
</div>
$scope.setTargetList = function (targetList) {
$rootScope.data = targetList.targetViewModelList;
$rootScope.data = $filter('orderBy')($rootScope.data, 'targetName');
$rootScope.accessGroupData = $filter('orderBy')(targetList.accessGroupMarkingViewModelList, 'markingString');
$rootScope.accessGroupData.splice(0, 0, { markingString: "Unrestricted" });
}
$scope.setTargetAccessGroup = function (args) {
$filter('filter')($rootScope.data, function (selectedRecord) {
if (selectedRecord.targetName === args.model.fields.id) {
selectedRecord.accessGroupMarking = args.value;
selectedRecord.accessGroupMarkingId = args.model.dataSource[args.itemId].markingId;
}
});
};