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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid edit template cascading dropdown

Thread ID:





121887 Feb 3,2016 09:56 PM UTC Feb 5,2016 04:20 AM UTC ASP.NET Web Forms 3
Tags: Grid
Bruce Stevenson
Asked On February 3, 2016 09:56 PM UTC

I have a situation where I have countries and states/provinces in a grid, and when editing a line in the template If I change the Country selected value, I will need to re populate the State/Province value.
I did find an example in MVC but I am not able to make it work in ASP/javascript.
I have modified one of your example programs to have the situation and the issue, the difference is I used Country and City.
If you could point put my error I would be appreciative.

Attachment: Grid_e29e6d66.zip

Mani Sankar Durai [Syncfusion]
Replied On February 4, 2016 12:22 PM UTC

Hi Bruce Stevenson,

We analyzed your sample and found that you have updated the column datasource which is the cause of the issue. We suggest you to update Dropdown Control’s  datasource to resolve the issue.

For clarification please refer the following code example.

  function _Change(args) {

            var gridObj = $('#<%= FlatGrid.ClientID %>').data("ejGrid")


            $("#ShipCity").ejDropDownList({ dataSource: gridObj.model.columns[State].dataSource });



We have modified the sample that can be downloaded from below location.


Manisankar Durai

Bruce Stevenson
Replied On February 4, 2016 07:47 PM UTC

Thanks for the assistance;
I got your solution to work by putting back the $("#ContactsGrid"), from the $("#<%=ContactsGrid.ClientID %>").

after that it worked like a champ.



Mani Sankar Durai [Syncfusion]
Replied On February 5, 2016 04:20 AM UTC

Hi Bruce Stevenson,
We are happy to hear that your issue has been resolved.
Get back to us if you need further assistance.


Manisankar Durai


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon