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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

121583 Jan 5,2016 05:27 AM Feb 12,2016 07:22 AM JavaScript 6
loading
Tags: ejGrid
Greg Gannicott
Asked On January 5, 2016 05:27 AM

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.

Arun Palaniyandi [Syncfusion]
Replied On January 7, 2016 08:52 AM

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


Arun Palaniyandi [Syncfusion]
Replied On January 28, 2016 08:23 AM

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

Greg Gannicott
Replied On February 1, 2016 04:16 AM

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.

Arun Palaniyandi [Syncfusion]
Replied On February 3, 2016 01:09 AM

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

Sarah Roper
Replied On February 11, 2016 05:10 AM

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


Ragavee U S [Syncfusion]
Replied On February 12, 2016 07:22 AM

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.


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.

;