This question is locked. New answers and comments are not allowed.
Hi,
another thing I have is when I want to fill a combox On edit of the Grid I want to give a variable with it.
So when items are retrieved from the DB in my controller an ID has to come in:
Here a part of the Grid:
Or do I have to create an Client side,AJAX ,event OnDatabound and then give the ID with it to the controller.
Here is my combobox:
Regards,
Gerard Eikelboom
another thing I have is when I want to fill a combox On edit of the Grid I want to give a variable with it.
So when items are retrieved from the DB in my controller an ID has to come in:
public
ActionResult _SelectedDefaultWebshopPerUser(string text)
so text needs to be filled with my ID.
In my grid I have a datakey with the unique ID can I do something with that?
Here a part of the Grid:
.ClientEvents(events => events.OnRowSelect("onUserRowSelect")) .DetailView(details=> details.ClientTemplate( Html.Telerik().Grid<Fleura.Feelflorist.Models.ViewModels.RegisterViewModel>() .Name("WebshopsUserOverzichtGrid_<#=User_ID#>") .ClientEvents(events => events.OnEdit("onEdit")) .DataKeys(keys => keys.Add(rvm => rvm.User_ID))Or do I have to create an Client side,AJAX ,event OnDatabound and then give the ID with it to the controller.
Here is my combobox:
<%= Html.Telerik().ComboBox() .Name("WebshopsUser") .HighlightFirstMatch(true) .Filterable(filtering => filtering.FilterMode(AutoCompleteFilterMode.Contains)) .DataBinding(binding => binding.Ajax() .Select("_SelectedDefaultWebshopPerUser", "User").Cache(true)) %>Regards,
Gerard Eikelboom