Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Setting selected value from session

$
0
0
Hello Mark,

In order to select the DropDownList value then use its Value("value") method:
@( Html.Kendo().DropDownList()
    .Name("compliances")
    ...
    .Value(sessionHelper.SiteFilter_ComplianceID.toString()); //you need to retrieve access to the sessionHelper in the View
)

Setting the "Selected" property will not work in this case, because remote binding is used. The best way to accomplish your goal is just set the selected value as it is shown in the above example.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 

Viewing all articles
Browse latest Browse all 94857

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>