Hi ,
I am using a combobox with a remote datasource. This field is bound to an integer property on my model.In the case of adding creating a new record combobox doesn't show any selection as the property is null.
Now I need to set a default value when the property is null. I have tried to set using the Value but it causes problem while edit.Though I change the selection and submit the form the Value parameter shows up again if I try to edit the record.
Did anyone have this kind of scenario before. Any help will be much appreciated.
Thanks,
Ramoji
I am using a combobox with a remote datasource. This field is bound to an integer property on my model.In the case of adding creating a new record combobox doesn't show any selection as the property is null.
@{ Html.Kendo() .ComboBoxFor(model => model.SendFromId) .DataTextField("Text") .DataValueField("Value") .HtmlAttributes(new { style = "width:250px", data_value_primitive = "true" }) .DataSource(source => { source.Read(read => { read.Action("People", "Home"); }); }) .Events(e=> { e.Change("onComboChanged"); }) .Deferred() .Render(); }Did anyone have this kind of scenario before. Any help will be much appreciated.
Thanks,
Ramoji