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.

Grid/Editing/Dialog Editing - in grid two ejDropDownList

Thread ID:

Created:

Updated:

Platform:

Replies:

120150 Sep 4,2015 11:48 PM Sep 8,2015 03:04 AM ASP.NET Web Forms 3
loading
Tags: Grid
Pratheep
Asked On September 4, 2015 11:48 PM

Hi

Grid contain two column 

ship country     manufacturer  country
 Germany            Spain

when editing the grid - dialog box showing two DropDownlist  selected value are Germany 

but need to show ship country  DropDownlist  - Germany    and        manufacturer  country DropDownlist   - Spain

please find the grid attachment 

Thanks

Pratheep



Attachment: DialogEditing_3c48c8fb.rar

Ragavee U S [Syncfusion]
Replied On September 7, 2015 01:58 AM

Hi Pratheep,

Thanks for contacting Syncfusion support.

We analyzed the reported query and the sample that you shared.

From your sample, we found that in actionComplete event of the grid, you have set the incorrect value to the ejDropdownList control corresponding to the Manufacturer country which is the cause of the issue. Please refer to the below code example.

[Incorrect snippet]

function complete(args) {

               if (args.requestType == "beginedit") {                   

                    $("#ShipCountry").ejDropDownList("setSelectedValue", args.row.children().eq(4).text());

                    $("#ManufacturerCountry").ejDropDownList("setSelectedValue", args.row.children().eq(4).text());//have set the same value for both the dropdownlist

                }

            }
        }

[Correct snippet]

function complete(args) {

               if (args.requestType == "beginedit") {                   

                    $("#ShipCountry").ejDropDownList("setSelectedValue", args.row.children().eq(4).text());

                    $("#ManufacturerCountry").ejDropDownList("setSelectedValue", args.row.children().eq(5).text());//the index specified with eq indicates the index of the corresponding column in the grid

                }

            }
        }


We have modified the sample shared by you, which can be downloaded from the below location.

Sample Link: http://www.syncfusion.com/downloads/support/forum/120150/ze/DialogEditing_modified1480364768

Regards
Ragavee U S

Pratheep
Replied On September 7, 2015 07:00 AM

Hi Ragavee 

now working fine, Thanks

Pratheep
 

Ragavee U S [Syncfusion]
Replied On September 8, 2015 03:04 AM

Hi Pratheep,

We are happy that your issue is resolved.
 
If you have any queries in the future, please get back to us. We will be happy to assist you.

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.

;