Hello,
I have a problem with the line height of my grids. I'm working with a grid witch is in a partial view.
I set the grid datasource dynamically but the grid itself does not change. Between two partial load my line height change, I tried to set it by css but noting works, line height changes all the same. I don't understand why this happens.
This is my grid code:
@(Html.EJ().Grid<object>("FlatGrid")
.Datasource((System.Data.DataTable)ViewBag.dataSource)
.AllowScrolling()
.AllowPaging()
.PageSettings(p => { p.PageSize(10); p.PageSizeList(new List<int>() { 10, 20, 50, 100 }); })
.EnableAltRow(false)
.ScrollSettings(col => { col.Width("95%").Height("auto"); })
.ShowColumnChooser()
.AllowMultiSorting()
.AllowSorting()
.AllowReordering()
.AllowFiltering()
.AllowResizing()
.IsResponsive()
.MinWidth(1)
.AllowSelection()
.SelectionType(SelectionType.Multiple)
.ClientSideEvents(evt => evt.QueryCellInfo("queryCellInfo"))
.FilterSettings(filter => { filter.FilterType(FilterType.Excel); })
.ToolbarSettings(toolbar =>
{
toolbar.ShowToolbar(true)
.CustomToolbarItems(new List<object>()
{
//"Expand",
//"Collapse",
//new Syncfusion.JavaScript.Models.CustomToolbarItem() { TemplateID = "#Refresh" },
new Syncfusion.JavaScript.Models.CustomToolbarItem() { TemplateID = "#buttonAjout" },
new Syncfusion.JavaScript.Models.CustomToolbarItem() { TemplateID = "#buttonDetail" },
new Syncfusion.JavaScript.Models.CustomToolbarItem() { TemplateID = "#buttonDelete" },
})
.ToolbarItems(items =>
{
items.AddTool(ToolBarItems.Search);
items.AddTool(ToolBarItems.Add);
items.AddTool(ToolBarItems.Update);
items.AddTool(ToolBarItems.Cancel);
items.AddTool(ToolBarItems.ExcelExport);
items.AddTool(ToolBarItems.WordExport);
});
})
.ClientSideEvents(evt => evt.ToolbarClick("onToolbarClick"))
.Columns(ViewBag.cols)
)
I put images to show that problem in attached files.
Attachment:
grid_line_height_d96cadde.7z