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. Image for the cookie policy date

Update one dropdown, and other dropdowns with the same value update too

Given the following example:

http://jsplayground.syncfusion.com/didbvzkh

When you update the value for a dropdown that has the value "Country1", the other dropdowns that have that value also update.

Notes: 

- Although the example above uses 13.2.0.39, we are able to reproduce this in 13.3.0.18.
- The ng-model applied to the element (by the ej-dropdownlist directive) uses the value of the variable that is passed in to the e-value attribute. As a result, it seems like all three dropdowns are using a newly created $scope.Country1 variable.
- I don't know whether this is a bug in your control, or whether we're using it incorrectly? Please advise. 

Thanks.

6 Replies

AP Arun Palaniyandi Syncfusion Team January 7, 2016 01:52 PM UTC

Hi Greg,


Sorry for the inconvenience,


We have confirmed that the issue “When assign value instead of scope variable in  ‘e-value’ attribute in DropDownList[angular], it’s not rendering properly” is a defect. The fix for this issue will be included in our Volume 4 SP1 release in February 2016  

 
Thanks,
Arun P



AP Arun Palaniyandi Syncfusion Team January 28, 2016 01:23 PM UTC

Hi Greg,

Thanks for the patience,

We suggest you to use the grid’s default angular template feature instead of external element compilation to render the ejDropDownList inside the grid since it compiled against current scope. Please find the below code snippet

<div id="targetsGrid" ej-grid e-datasource="data"

                     . . . .

                     e-allowgrouping="true">

                    <div e-columns>

                       . . . . .

                        <div e-column e-field="accessGroupMarking" e-headertext="accessGroup" e-width="100">

                            <input type="text" class="drpAccessGroup" ej-dropdownlist e-fields-id="targetName" e-datasource=$parent.accessGroupData e-fields-text="markingString" e-fields-value="markingString" e-width="100%" e-selecteditemindex="0" e-change="$parent.setTargetAccessGroup" e-value="data.accessGroupMarking" />

                        </div>

                    </div>
                </div>


Please find the modified sample below.
http://jsplayground.syncfusion.com/jprl5oyu

Please let us know if you have any queries,

Regards,
Arun P


GG Greg Gannicott February 1, 2016 09:16 AM UTC

Hi Arun.

The e-columns directive looks like a very helpful feature, thanks.

You'd previously stated that a fix was due in the Volume 4 SP1 release in February 2016.

If we weren't to use the e-columns directive, would a fix still occur once we've upgraded to Volume 4 SP1?

Thanks.


AP Arun Palaniyandi Syncfusion Team February 3, 2016 06:09 AM UTC

Hi Greg,

Thanks for the update.

Query: “If we weren't to use the e-columns directive, would a fix still occur once we've upgraded to Volume 4 SP1?”

We have analyzed further on this issue and we regret to let you know that this issue does not require any source level fix as we promised earlier. We found that using e-columns directive is the proper way to define columns especially templates in angular initialization of grid as we suggested in previous update because without using column directives in angular mode will results in un-expected behavior since all the sub-controls were compiled against same scope. So we suggest you to use e-column directive in your application level to resolve the issue.

Kindly let us know if you have any other queries.

Regards,
Arun P


SR Sarah Roper February 11, 2016 10:10 AM UTC

although your modified example using the template feature works for updating a single dropdown if you use grouping on the grid when you ungroup the combo boxes disappear and are replaced by a text box

to reproduce this go to your modified sample 
http://jsplayground.syncfusion.com/jprl5oyu

run it
drag the targetNumber column into the header to group
click X to ungroup
accessGroup column appears as text boxes instead of combo boxes


please can you let me know how to get grouping working for this situation

thanks



RU Ragavee U S Syncfusion Team February 12, 2016 12:22 PM UTC

Hi Sarah,

We considered this query “Template column not rendering when ungrouping a column” as a bug and a support incident has been created under your account to track the status of this issue. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Regards,
Ragavee U S.


Loader.
Up arrow icon