BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Html.EJ().Grid<MyModel>("grid") .Datasource(ds => ds.URL(Url.Action("BatchDataSource", "Model")).BatchURL(Url.Action("BatchUpdate", "Premium")).Adaptor(AdaptorType.UrlAdaptor)) .EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.Batch); }) .ToolbarSettings(toolbar => { toolbar.ShowToolbar().CustomToolbarItems(GetGridCustomToolbarItems()); }) .AllowResizing().AllowResizeToFit().AllowTextWrap().AllowPaging().AllowSearching().AllowSelection().SelectionType(SelectionType.Multiple) .IsResponsive(true).EnableResponsiveRow(false) .ScrollSettings(scroll => { scroll.Height(400); }) .MinWidth(600) .Columns(col => { ... }) .ClientSideEvents(e => { ... })
@Html.EJ().ScriptManager() @RenderSection("scripts", required: false) <script type="text/javascript"> $(function () { $('#page').css("min-height", $(document).height()); window.onresize = function () { for (i = 1; i < $(".e-grid").length;i++){ var childid = $(".e-grid").eq(i).attr('id'); var gridobj = $("#" +childid).ejGrid("instance") gridobj.setDimension(gridobj.element.parent().innerHeight(), gridobj.element.parent().innerWidth()); gridobj.getContent().ejScroller("refresh"); } } }); |
Hi Debbie,
Thanks for the update.
We already have help documentation for setDimension method. Please refer to the below link.
Link: http://help.syncfusion.com/js/api/ejgrid#methods:dimension
We are able to reproduce the issue while window resize with expandable grid, expandable scroller auto scroll when clicking the scroller for child grid. So, a support incident has been created under your account to resolve the issue. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Regards,
Jayaprakash K.
Query |
Response |
1. I could not find the dimension method in the MVC documentation to setup inside razr view |
setDimension is an javascript method. So we have provided under the javascript API reference. |
2. Shows mobile rendering for below 321 px, but not parent container re-sizing information. |
We have created the improvement task for responsive re-sizing online help documentation. |
3. Do I need to set both rows & grid as responsive, how is this handled inside ASP MVC razor |
IsResponsive property for both height and width of the grid control. So no need to set separately to grid rows. |
4. Next I see the scriptmanager before rendersection, does this mean the scriptmanager has to be in head? |
No, scriptmanager method is recommended in registering Syncfusion.Mvc components script files. The ScriptManager() method should be placed after all the components on the page. You need to add it before the closing body tag in the _Layout.cshtml file. Please refer to the online help documentation, Document: Link |