Hi Ayben,
Thanks for using Syncfusion products.
We have checked your query and we have suspect that you are expecting the resizing behavior not to be applied for all columns. We went through your code example that you have shared for us and you have set the scroll settings width as 1650 which is exceeding the windows width. But you are defined column width as 150 for each.
We suspect that you want to render the columns based on the width which is specified in the columns definition. If so, we suggest you use ColumnLayout property as fixed. If the columnLayout is set as fixed, then column width will be static. Also, we suggest you to use AllowResizeToFit property instead of AllowResizing property. Because, if we enable While enabling resizing, by default resizeMode was set as “normal”, It will adjust all the columns in the Grid. It happens in your case.
Same time, if we enable AllowResizeToFit property then Column width is set automatically based on the content or header text which is large. Please refer to the following code example and Help documentation,
Code Example:
|
@(Html.EJ().Grid<object>("FlatGrid")
.Datasource((IEnumerable<object>)ViewBag.datasource)
.AllowResizeToFit(true)
.. . .
.ColumnLayout(ColumnLayout.Fixed)
. . .
.Columns(col =>
{
. . .
})) |
We have also prepared a sample based on your requirement which can be download from following link,
Please let us know If you have any further assistance on this.
Regards,
Venkatesh Ayothiraman.