Last Update
I found the fix at the following URL:
http://www.telerik.com/community/forums/aspnet-mvc/grid/custom-command-in-grid-called-twice-on-detail-view.aspx
I guess I just had to dig a little harder....
Thanks and keep up the great work!
Binu
UPDATE:
After doing a few more tests, it seems to be related to the fact that it is a grandchild grid. I placed a custom command column on a child grid and when the button was clicked the action method on the controller fired twice. I placed a custom command column on the main grid and that action method only fired once. Does this type of behaviour make sense? Is there anything that can be done about it?
Greetings. I've been working with this grid for three months now and am very impressed by it. I've been equally impressed by all of the information available online to work through the various issues I've encountered. I'm now up against one that I have not been able to find any resolution for. I think I've seen a post about it before, but can't seem to find it now. So here it goes...
I have a grid within a grid within a grid. Basically a grid's detailview is hosting a grid, which in turn has its detailview hosting another grid. All of this works just fine with one exception. In the grandchild grid I have a custom command column. When the button is clicked, the action call to the controller is firing three times. It happens asynchronously so the second call occurs while the first is still processing and similarly with the third. The parameters are being properly sent, and the OnComplete event is firing. I just can't figure out why the call is being made three times. Below is the code for the column. Any help with this will be greatly appreciated.
columns.Command(commands => commands.Custom("addRFQ")
.Text("Add RFQ")
.DataRouteValues(route =>
{
route.Add(o => o.RECNUM).RouteKey("rec");
})
.Ajax(true)
.Action("_addRFQ", "QVenHead", new { aref = ViewBag.aref })
)
.HtmlAttributes(new { style = "text-align: center" })
.Width(150);
Thank you,
Binu