Hi Shivkumar,
Thank you for using Syncfusion products.
Query #1 : child grid on master grid selection event
Your requirement can be achieved by using ClientSideRecordSelectionEvent event.Please refer to the following code snippets:
[Index.cshtml]
@{ Html.Grid
("custGrid").Datasource((IEnumerable)ViewData["CustData"])
. . . .
.ClientSideRecordSelectionEvent("OnRecordSelect") // record selection event
.Render();
}
[JavaScript]
[Controller]
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Orders(string CustomerId)
{
var OrderData = new NorthwindDataContext().Orders.Where(s => s.CustomerID == CustomerId).Take(6).ToList();
ViewData["orderdata"] = OrderData;
return PartialView("Orders", this.ViewData);
}
Also ,we would request you to check the online sample link :
http://mvc.syncfusion.com/sfmvcsamplebrowser/9.3.0.61/Grid_MVC/Samples/4.0/Razor/ProductShowCase/ParentChild
Query #2: Syncfusion dialog on Master Grid
Your requirement can be achieved by using ClientSideRecordSelectionEvent event. Please refer to the following code snippets:
[Dialog.cshtml]
@{ Html.Grid("custGrid").Datasource((IEnumerable)ViewData["CustData"])
. . . .
.ClientSideRecordSelectionEvent("DialogOpen") // record selection event
.Render();
}
[JavaScript]
For your convenience, we have prepared the sample and the same can be downloaded from the following link:
Sample43258867.zip
Note : In sample ,click Dialog with Grid hyperlink to open the page with dialog.
Please try this and let us know if you need any further assistance.
Regards,
Eswari.S