This question is locked. New answers and comments are not allowed.
I have a Grid with the command buttons enabled and server binding defined for them. I am using inline editing. When I click on the Edit button a call is made to the "Select" binding method "GridEdit". After I make my edits I click on the update button a call is made to the same method "GridEdit". It should be making a call to the "UpdateGrid" method. Also, when I click on the delete button is makes a call to the "GridEdit" method. Below is the code for my Grid.
Where do I start to troubleshot this issue? Why are all the command going to the select binding method?
Thanks
.DataKeys(keys => keys.Add(o => o.Id))
.ToolBar(commands => commands.Insert().ButtonType(GridButtonType.ImageAndText))
.Columns(columns =>
{
columns.Bound(o => o.Name).Title("Name").Filterable(true);
columns.Bound(o => o.Title).Title("Title");
columns.Command(commands =>
{
commands.Edit().ButtonType(GridButtonType.ImageAndText);
commands.Delete().ButtonType(GridButtonType.ImageAndText);
}).Width(180).Title("Commands");
})
.DataBinding(dataBinding =>
{
dataBinding.Server()
.Select("EditGrid", "Account")
.Insert("InsertGrid", "Account")
.Update("UpdateGrid", "Account")
.Delete("DeleteGrid", "Account");
})
Where do I start to troubleshot this issue? Why are all the command going to the select binding method?
Thanks
.DataKeys(keys => keys.Add(o => o.Id))
.ToolBar(commands => commands.Insert().ButtonType(GridButtonType.ImageAndText))
.Columns(columns =>
{
columns.Bound(o => o.Name).Title("Name").Filterable(true);
columns.Bound(o => o.Title).Title("Title");
columns.Command(commands =>
{
commands.Edit().ButtonType(GridButtonType.ImageAndText);
commands.Delete().ButtonType(GridButtonType.ImageAndText);
}).Width(180).Title("Commands");
})
.DataBinding(dataBinding =>
{
dataBinding.Server()
.Select("EditGrid", "Account")
.Insert("InsertGrid", "Account")
.Update("UpdateGrid", "Account")
.Delete("DeleteGrid", "Account");
})