c# - In 3 level JqGrid, get the first table's primary key when the 2nd table's "+" sign is pressed -
I'm new to JqGrid and please help me with this request.
I have a 3 level hierarchy as shown in the JqGrid setting, it is not exactly identical, but very similar. My requirement is to pass the primary key of the Or in short, I I would like to pass that variable to the I have created a fixed variable I am not sure whether this could break something or not I just wanted to do it. In the action method for the second grid, I assigned the customer ID value. reached the global stable variable in the third level grid. Select customerId // fixed global variable o // code} If there is a better suggestion for getting the primary primary key of the 1st level table in a third level grid, please let me know. Customer Grid , when the
ordergrid is expanded.
Public Zero SetUpThreeLevelGrids (ThreeLevelHierarchyJqGridModel Model) {var customersGrid = model.CustomersGrid; // code here int cId; // cId = & lt; Customer Grid Customer ID;; // ***** How to get it ****** Order grid. Data url = url Action ("Three Level_OrdsdataInquested", new {customerId = cId}); // code here}
ThreeLevel_OrderDetailsDataRequested method:
public JsonResult ThreeLevel_OrderDetailsDataRequested (Int customerId , String parentRowID) {// code here}
public static intelidid = 0;
Public JsonResult ThreeLevel_OrdersDataRequested (string parentRowID) {var NorthWindModel = New NorthwindDataContext (); Var Model = New Three Level Hierarchy Jake Grid Model (); CustomerId = int.Parse (parentRowID); SetupThreeLevelGrids (model); // code}
Comments
Post a Comment