I am Using kendo UI Treeview, there is ajax call of post
method , in browser i see there is id=xx value pass but when i check by
debug point in actionmethod i can't get value there is null why?
i have put code am i doing something wrong?
//View page code
@(Html.Kendo().TreeView()
.Name("treeview1")
.DragAndDrop(true)
.DataTextField("Name")
.DataSource(dataSource => dataSource
.Read(read => read
.Action("Categor", "CategorySet")
))
Controller Code
public ActionResult Categor(int? ID)
{
return Json(categories, JsonRequestBehavior.AllowGet);
}
Browser Code means ajax call
GET http://www.xyz.com/Admin/CategorySet/Categor?id=2 200 OK 96ms
See in url there is ?id=2 But in Action method i can't get this 2. Why.
?
How to solve this?
Thank you in advance
Vinit