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.
Unfortunately, activation email could not send to your email. Please try again.

Keep other column's width when resize one column

Thread ID:

Created:

Updated:

Platform:

Replies:

126123 Sep 26,2016 03:14 AM Sep 27,2016 08:55 AM JavaScript 1
loading
Tags: ejGrid
Anders L Lindås
Asked On September 26, 2016 03:14 AM

Hi.

I'm trying to achieve the following:

When table is:
|........|........|........|

and I want to resize then middle column to  12 dots I want the last column to still be 8 dots and not resize down to 4.

|........|............|....| <--- this is what happens

|........|............|........| <--- this is what i want..

Makes sense?

Mani Sankar Durai [Syncfusion]
Replied On September 27, 2016 08:55 AM

Hi Anders, 

Thanks for contacting Syncfusion support. 

We have analyzed your query and achieved your requirement by using resizeMode as control property of resizeSettings in grid. Now when resizing any of the column it tends to resize the particular column. 
Please refer the below code example, 
 
 
 <script type="text/javascript"> 
        $(function () { 
            $("#Grid").ejGrid({ 
                // the datasource "window.gridData" is referred from jsondata.min.js 
                dataSource: window.gridData, 
                allowResizing: true, 
                resizeSettings: { resizeMode: "control" }, 
                pageSettings:{ pageSize: 15}, 
                columns: [ 
 
                         
                ] 
            }); 
        }); 

We have also prepared a sample that can be available from the below link, 

Please let us know if you need further assistance. 

Regards, 
Manisankar Durai. 


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.

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.

;