Hi,
I am also facing same issue and looking for solution. Can you please let me know how to go to incident 81632
Hi Dilip,
Thanks for contacting syncfusion forum.
Based on your query, we suggest you follow the below steps,
Step #1: [aspx]
.AutoFormat(Skins.Blueberry).ClientSideOnSelect("onselect") //ClientSideOnSelect event is called for tab click event. %>
<div id="tools"> <% Html.RenderPartial("GenericDropdown",Model); %> // GenericDropdown is loaded into the first tab. </div> <div id="grid"> // Initally grid will be empty.
</div> </div>
<script type="text/javascript"> function onselect() { $.ajax( { url: "Home/Grid", type: "GET", success: function (data) { $("#grid")[0].innerHTML = data; //grid data is assigned to the innerHTML. $.fn.sfEvalScripts(data); //SfEvalScripts evaluates the all scripts in ajaxcall result } } ); } </script>
Step #3: $.ajax call redirected to the Grid action. { var data = SqlCE.Categories.ToList();
return PartialView("Grid",data); }
[AcceptVerbs(HttpVerbs.Post)] public ActionResult Grid(PagingParams args) { var data = SqlCE.Categories.ToList();
return data.GridActions<Categories>(); }
.Datasource(this.Model) .Column(col=>{ col.Add(c => c.CategoryID); col.Add(c => c.CategoryName); col.Add(c => c.Description); }) .EnablePaging() .EnableSorting()
%>
|
Please refer to the below sample,
Test_GenericDropdown666867211.zip
If the above solution does not meet your requirement kindly share the detailed explanation of your requirement, and video demo/screenshot of your requirement and share the grid code example.
Kindly get back to us for further assistance.
Regards,
Pon selva