Hi Lan Hicks,
Thanks for using Syncfusion products.
Based on your requirement we have created a sample by using Html.RenderPartial. The sample can be downloaded from following location.
Sample Link: http://www.syncfusion.com/downloads/support/forum/118706/DetailsTemplate1914582495.zip
Please refer the following code snippet.
[Grid.cshtml] @(Html.EJ().Grid<DetailsTemplate.OrdersView>("FlatGrid") .Datasource((IEnumerable<object>)ViewBag.datasource) .AllowScrolling() .AllowPaging() /*Paging Enabled*/ .Columns(col => { … }) .DetailsTemplate("#detailGridContents") .ClientSideEvents(eve => { eve.DetailsDataBound("detailGridData"); }) ) <script src="~/Scripts/jsondata.js"></script> <script id="detailGridContents" type="text/x-jsrender"> @{Html.RenderPartial("DetailTemplate");} </script
[DetailTemplate.cshtml] <div id="gridTab{{:OrderID}}"> <div id="detailGrid"> </div> </div> |
Please try the above sample and let us know if it helps. If we misunderstood your requirements, please provide us clear information. The information provided would be more helpful for us to analyze the issue and provide you the response as early as possible.
Regards,
Sellappandi R