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

Syntax for Dropdown selected value in GRID EDIT EXTERNAL TEMPLATE

Hi,

What is the syntax for selected value in dropdown .
i have written following,but it didnt work
@Html.DropDownList("XYZ",new SelectList(ViewBag.STATUS, "CODE", "DESCRIPTION","{{:XYZ}}".ToString()), "--")

1 Reply

RS Renjith Singh Rajendran Syncfusion Team September 19, 2017 12:36 PM UTC

Hi Kalyan, 

Thanks for contacting Syncfusion support. 

We have analyzed your query. We suggest you to use the val() method of jQuery in Dropdown element to retrieve the value. Please refer the following stackoverflow link below, 


Regards, 
Renjith Singh Rajendran. 


Loader.
Up arrow icon