Hi, we run in a "strange" behavior of the grid when we activate the row filter on a MVC grid with ajax binding and a default group. The grouped column is invisible (visible = false) and the final effect is that under a "fake" first column I see the textbox of the row filter. I attach a screenshot.
This is our code (fragment):
@(Html.Kendo().Grid(Model).Name("Grid").Mobile()
.Columns(columns =>
{
columns.Bound(model => model.Segment).Title("Segmento").Groupable(true).Visible(true).Locked(true).Lockable(false).Width(220);
columns.Bound(model => model.MainHolder).Title("Richiedente").Width(220).Locked(true).Lockable(false);
columns.Bound(model => model.VATNumber).Title("P.IVA").Groupable(true).Width(220).Locked(true).Lockable(false);
columns.Bound(model => model.ApplicationResult).Title("Valutazione").Groupable(true).ClientTemplate("<span class='#= ApplicationResult #'>#= ApplicationResult #</span>").Width(220);
columns.Bound(model => model.ActualState).Title("Stato").Groupable(true).Width(220).Lockable(false);
columns.Bound(model => model.ApplicationId).Title("Id Pratica").Width(220).Lockable(false);
columns.Bound(model => model.FinanceType).Title("Tipo di Finanziamento").Groupable(true).Width(220).Lockable(false);
columns.Bound(model => model.LegalForm).Title("Forma Giuridica").Groupable(true).Width(220).Lockable(false);
columns.Bound(model => model.CCIAAREA).Title("CCIAAREA").Groupable(true).Width(220).Lockable(false);
columns.Bound(model => model.ApplicationDate).Title("Data Apertura Pratica").Width(220).Groupable(true).ClientTemplate("#= kendo.toString(ApplicationDate, \"d MMM yyyy\") #").Lockable(false);
columns.Bound(model => model.CreatedBy).Title("Inserita da").Width(220).Lockable(false);
columns.Bound(model => model.UpdatedBy).Title("Aggiornata da").Width(220).Lockable(false);
})
.ToolBar(toolbar =>{toolbar.Template(@<div class="ToolbarRow row ">Stato dell'Attività </div>);})
.Groupable()
Sortable(config => config.SortMode(GridSortMode.MultipleColumn))
Selectable()
Reorderable(reordering => reordering.Columns(true))
Scrollable()
.ColumnMenu(columnMenu => columnMenu.Enabled(true).Filterable(false))
.DataSource(ds => ds
.Ajax()
.Read(read => read.Action("ApplicationGrid_Read", "Home"))
.Group(config => config.Add(itm=>itm.Segment))
.ServerOperation(false)
.Model(config => config.Id(m => m.Id)))
.Filterable(filtering => filtering.Enabled(true).Mode(GridFilterMode.Row))
.Events(evt => evt.DataBound("ChangeCellColor"))
)
Any ideas?
Thank you,
Simone
This is our code (fragment):
@(Html.Kendo().Grid(Model).Name("Grid").Mobile()
.Columns(columns =>
{
columns.Bound(model => model.Segment).Title("Segmento").Groupable(true).Visible(true).Locked(true).Lockable(false).Width(220);
columns.Bound(model => model.MainHolder).Title("Richiedente").Width(220).Locked(true).Lockable(false);
columns.Bound(model => model.VATNumber).Title("P.IVA").Groupable(true).Width(220).Locked(true).Lockable(false);
columns.Bound(model => model.ApplicationResult).Title("Valutazione").Groupable(true).ClientTemplate("<span class='#= ApplicationResult #'>#= ApplicationResult #</span>").Width(220);
columns.Bound(model => model.ActualState).Title("Stato").Groupable(true).Width(220).Lockable(false);
columns.Bound(model => model.ApplicationId).Title("Id Pratica").Width(220).Lockable(false);
columns.Bound(model => model.FinanceType).Title("Tipo di Finanziamento").Groupable(true).Width(220).Lockable(false);
columns.Bound(model => model.LegalForm).Title("Forma Giuridica").Groupable(true).Width(220).Lockable(false);
columns.Bound(model => model.CCIAAREA).Title("CCIAAREA").Groupable(true).Width(220).Lockable(false);
columns.Bound(model => model.ApplicationDate).Title("Data Apertura Pratica").Width(220).Groupable(true).ClientTemplate("#= kendo.toString(ApplicationDate, \"d MMM yyyy\") #").Lockable(false);
columns.Bound(model => model.CreatedBy).Title("Inserita da").Width(220).Lockable(false);
columns.Bound(model => model.UpdatedBy).Title("Aggiornata da").Width(220).Lockable(false);
})
.ToolBar(toolbar =>{toolbar.Template(@<div class="ToolbarRow row ">Stato dell'Attività </div>);})
.Groupable()
Sortable(config => config.SortMode(GridSortMode.MultipleColumn))
Selectable()
Reorderable(reordering => reordering.Columns(true))
Scrollable()
.ColumnMenu(columnMenu => columnMenu.Enabled(true).Filterable(false))
.DataSource(ds => ds
.Ajax()
.Read(read => read.Action("ApplicationGrid_Read", "Home"))
.Group(config => config.Add(itm=>itm.Segment))
.ServerOperation(false)
.Model(config => config.Id(m => m.Id)))
.Filterable(filtering => filtering.Enabled(true).Mode(GridFilterMode.Row))
.Events(evt => evt.DataBound("ChangeCellColor"))
)
Any ideas?
Thank you,
Simone