This question is locked. New answers and comments are not allowed.
Hi
I am trying to delete a row with the this control.
The page loads and the customer table from northwind is displaying-- then if I press the delete row button and put a break point at the controller id parameter the parameter says "nothing" - is this meant to show the key being passed posted to identify the row?
I have set the dataKey to be the CustomerID column which is of type string but what I don't understand is why is this not showing in my controller? What am I missing?
i am using VB, vs 2008 .net 3.5, database northwind
Thanks so much for the help
S
I am trying to delete a row with the this control.
The page loads and the customer table from northwind is displaying-- then if I press the delete row button and put a break point at the controller id parameter the parameter says "nothing" - is this meant to show the key being passed posted to identify the row?
I have set the dataKey to be the CustomerID column which is of type string but what I don't understand is why is this not showing in my controller? What am I missing?
i am using VB, vs 2008 .net 3.5, database northwind
Thanks so much for the help
S
<%=Html.Telerik().Grid(Model) _ .Name("Grid") _ .Pageable(Function(o) o.PageSize(4)) _ .Sortable() _ .DataBinding(Function(DataBinding) DataBinding.Ajax() _ .Select("_FirstLook", "Home") _ .Insert("_Insert", "Home") _ .Update("_Update", "Home") _ .Delete("_Delete", "Home")) _ .DataKeys(Function(keys) keys.Add(Function(c) c.CustomerID)) _ .Columns(Function(c) c.Bound(Function(d) d.CustomerID)) _ .Columns(Function(c) c.Bound(Function(d) d.Contactname)) _ .Columns(Function(c) c.Bound(Function(d) d.Address)) _ .Columns(Function(c) c.Bound(Function(d) d.City)) _ .Columns(Function(c) c.Bound(Function(d) d.ContactTitle)) _ .Columns(Function(c) c.Command(Function(f) f.Edit())) _ .Columns(Function(c) c.Command(Function(f) f.Delete())) _ .Editable(Function(c) c.Mode(GridEditMode.PopUp)) %><AcceptVerbs(HttpVerbs.Post)> _<GridAction()> _Public Function _Delete(ByVal CustomerID As String) As ActionResult 'do something to delete row Return View(New GridModel(GetOrderDto()))End Function