<script type="text/javascript"> window.onresize = function () { var gridObj = $("#<%= Grid1.ClientID %>").ejGrid("instance") gridObj.setDimension(window.innerWidth, window.innerHeight); // if you want to Grid to adopt with div then you need to give gridObj.setDimension($("div").innerWidth(),$("div").innerHeight) gridObj.getContent().ejScroller("refresh"); }
|
TreeGrid can be made responsive with scrollbar, which resizes on resizing browser window, with the help of “EnableResize” property. Please refer the below code example for details.
<ej:TreeGrid ID="Treegrid" runat="server" EnableResize="true" //… > //… </ej:TreeGrid> |
We have also prepared a sample based on this and you can find the sample under the following location.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/ResponsiveTreeGrid1278720700
Regards,
Jayaprakash K.
<script type="text/javascript"> window.onresize = function () { var gridObj = $("#<%= Grid1.ClientID %>").ejGrid("instance") gridObj.setDimension(100, window.innerWidth);// height and width }
|
<ej:Grid ID="Grid1" DetailsTemplate="#tabGridContents" MinWidth="700" IsResponsive="true" allowFiltering="true" |
We have tested the allowResizing property with IsResponsive in Grid, but we were unable to reproduce the issue. Please share the following information to find the cause of the issue and provide a solution,
1. An issue reproducing sample if possible or sample hosted link or replicate the issue in the following sample.
2. Syncfusion Essential studio, browser and operating system version.
3. Client side codes of the sample.
4. Attach a screenshot of the issue.
Sample: http://www.syncfusion.com/downloads/support/forum/121881/ze/SyncfusionASPNETApplication5386066429
Regards,
Jayaprakash K.