This question is locked. New answers and comments are not allowed.
In MVC3 app, how to display the text (say product name) but at the same time bind the value to its primary key (say product id). here is my html combo box
@(Html.Telerik().ComboBoxFor(model => model.ProductId)<BR> .AutoFill(true)<BR> .HighlightFirstMatch(true)<BR> .DataBinding(binding => binding.Ajax().Select("GetProductsyKeyword", "Product")))<BR>
and the method GetProductsyKeyword returns:
<P></P><P> return new JsonResult { Data = new SelectList(Products, "Id", "Description") };<BR></P>
The above code is ok for a newly created product but not when load and display the data from database as the combo box has no idea how to display the text. please help!