Very very very urgent on change dropdown of grid it automatically change all the dropdown of grid
I have five dropdown in my grid
Now I am changing second dropdown its change all other dropdonw
Version 13.2450.0.39,
Very very very urgent
<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>
<script type="text/x-jsrender" id="accessGroupTemplate">
<input type="text" class="drpAccessGroup" ej-dropdownlist e-fields-id="{{:targetName}}" e-popupwidth="218" e-datasource=accessGroupData e-fields-text="markingString" e-fields-value="markingString" e-width="218" e-enableincrementalsearch="true" e-value="{{:accessGroupMarking}}" e-change="setTargetAccessGroup" />
</script>
$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;
}
});
};
$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" });
}
I am dynamically generate dropdown in my gridview
1) when I am changing dropdown its automatically change other dropdown.
SIGN IN To post a reply.
1 Reply
BM
Balaji Marimuthu
Syncfusion Team
October 2, 2015 02:31 PM UTC
Hi Bharat,
Thanks for contacting Syncfusion support.
We have created a sample in mentioned version and checked the reported issue. Please refer to the sample in following link
Sample: http://jsplayground.syncfusion.com/5ouyoqp3
We have used the provided code and changed the dropdown data, but we are unable to reproduce the reported issue. Could you please share the following details to reproduce the reported issues from our end?
Thanks for contacting Syncfusion support.
We have created a sample in mentioned version and checked the reported issue. Please refer to the sample in following link
Sample: http://jsplayground.syncfusion.com/5ouyoqp3
We have used the provided code and changed the dropdown data, but we are unable to reproduce the reported issue. Could you please share the following details to reproduce the reported issues from our end?
1. Are you rendering one template column with drop down?
2. Share the code example of how you dynamically generate the dropdown
3. Share how you rebind the dropdown data
4. Share full sample/ modify the provided jsplayground sample
If we misunderstood your requirement, share the scenario to reproduce the issue.
Regards,
Balaji Marimuthu
If we misunderstood your requirement, share the scenario to reproduce the issue.
Regards,
Balaji Marimuthu
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
BB Bharat Buddhadev
- Oct 1, 2015 11:24 AM UTC
- Oct 2, 2015 02:31 PM UTC
6/23/2026 06:49:37 PM
Sun, 15 December 2024 03:30:00 UTC
Sun, 15 December 2024 03:30:00 AM
Wed, 16 Feb 2022 04:59:00 UTC