Hello everybody.
As you can see here current grid I've made goes out of the screen only I apply "Filterable" property to it and only then. I need column filtering but without the grid extending out of my screen.
Here's the current code
@(Html.Kendo().Grid<
POSLogGridData
>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(c => c.ID);
columns.Bound(c => c.ErrorLevel);
columns.Bound(c => c.Time);
columns.Bound(c => c.Location);
columns.Bound(c => c.Data);
})
.Filterable(filterable => filterable
.Extra(false)
.Operators(operators => operators
.ForString(str => str.Clear()
.StartsWith("Starts with")
.IsEqualTo("Is equal to")
.IsNotEqualTo("Is not equal to")))
)
.Pageable(pager => pager.Refresh(false))
.Sortable(sortable => sortable.Enabled(true)).AutoBind(false)
.Selectable(selectable => selectable.Mode(GridSelectionMode.Multiple))
.AllowCopy(true)
.DataSource(dataSource => dataSource.Ajax().ServerOperation(false).Batch(false).PageSize(100)
.Model(model =>{
model.Field(gridMainAlias => gridMainAlias.ID).Editable(false);
model.Field(gridMainAlias => gridMainAlias.ErrorLevel).Editable(false);
model.Field(gridMainAlias => gridMainAlias.Time).Editable(false);
model.Field(gridMainAlias => gridMainAlias.Location).Editable(false);
model.Field(gridMainAlias => gridMainAlias.Data).Editable(false);
})).Resizable(resize => resize.Columns(true))
)
Thanks for help in advance!