We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Very very very urgent on change dropdown of grid it automatically change all the dropdown of grid

Thread ID:

Created:

Updated:

Platform:

Replies:

120663 Oct 1,2015 07:24 AM Oct 2,2015 10:31 AM JavaScript 1
loading
Tags: ejGrid
Bharat Buddhadev
Asked On October 1, 2015 07:24 AM


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.
 



Balaji Marimuthu [Syncfusion]
Replied On October 2, 2015 10:31 AM

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?

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;