I am new to JqGrid and please help me with this request.
I have a 3 level hierarchical JqGrid setting as shown in the link. It is not exactly the same, but very similar. My requirement is to have the CustomerGrid
's primary key also passed when OrderGrid
is expanded.
Or in short, I would like to have
public void SetUpThreeLevelGrids(ThreeLevelHierarchyJqGridModel model)
{
var customersGrid = model.CustomersGrid;
// code here
int cId;
//cId = <CustomerId from the CustomerGrid>; //*****How to get this******
ordersGrid.DataUrl = Url.Action("ThreeLevel_OrdersDataRequested", new { customerId = cId });
// code here
}
I would like to use that variable passed to the ThreeLevel_OrderDetailsDataRequested
method:
public JsonResult ThreeLevel_OrderDetailsDataRequested(int customerId, string parentRowID)
{
// code here
}