This question is locked. New answers and comments are not allowed.
Hi,
A column in my Grid is showing the data from my model. When I want to edit this one I want to choose from a combobox.
So when I click on Edit the value wich was first shown is gone.
In the column I have a dropdown (that's ok) with the values from the database. The selected value is in the combobox.
So everything seems to work only the selected item is not shown on Edit.
I have a standard piece of js code for onEdit:
allvaluta = the combobox.ascx
myvaluta = column in my grid.
I bind the combobox in a AJAX client side way:
I hope you can help me with ths small issue.
Regards,
Gerard Eikelboom
A column in my Grid is showing the data from my model. When I want to edit this one I want to choose from a combobox.
So when I click on Edit the value wich was first shown is gone.
In the column I have a dropdown (that's ok) with the values from the database. The selected value is in the combobox.
So everything seems to work only the selected item is not shown on Edit.
I have a standard piece of js code for onEdit:
$(e.form).find('#allvaluta').data('tComboBox').select(function (dataItem) { return dataItem.Text == e.dataItem['myvaluta']; });myvaluta = column in my grid.
I bind the combobox in a AJAX client side way:
<%= Html.Telerik().ComboBox() .Name("allvaluta") .HighlightFirstMatch(true) .Filterable(filtering => filtering.FilterMode(AutoCompleteFilterMode.Contains)) .DataBinding(binding => binding.Ajax() .Select("_SelectedValuta", "Account").Cache(true)) %>I hope you can help me with ths small issue.
Regards,
Gerard Eikelboom