We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Resizing the ejgrid.

Thread ID:

Created:

Updated:

Platform:

Replies:

127793 Dec 9,2016 07:22 AM UTC Dec 12,2016 06:07 AM UTC JavaScript 1
loading
Tags: ejGrid
Tshepo
Asked On December 9, 2016 07:22 AM UTC

Hi guys,

I am trying to resize the grid as a whole but it seems it does not want too. Resizing the div element does not work, accessing the controls's model attributes and changing the scrollSettings height still does not work, even the windowresize functionality has no effect.

It seems as if once you have initialized the grid, its dimension is static(height and width does not change).

Is there a way where I can change the height and width of the ejgrid? 

Prasanna Kumar Viswanathan [Syncfusion]
Replied On December 12, 2016 06:07 AM UTC

Hi Tshepo, 

Thanks for contacting Syncfusion support. 

If you need to resize the grid according to the browser window resized, we suggest you to enable the isResponsive property in the grid.  

To make the grid responsive, we have to include the MinWidth property in your sample. The minwidth property is used to set the minimum width of the responsive grid. If the grid is less than the minwidth then the scrollbar will be displayed to maintain the minimum width. 

Find the code example and sample: 


 $("#Grid").ejGrid({ 
       dataSource: window.gridData, 
       allowPaging: true, 
       allowSorting: true, 
       isResponsive: true, 
       minWidth: 600, 
       columns: [ 
                  ------------------- 
                ] 
            });      
        }); 


Refer to the Help document for the responsive. 


If we misunderstood your query, please elaborate your requirement it will help us to provide the better solution. 

Regards, 
Prasanna Kumar N.S.V 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;