This question is locked. New answers and comments are not allowed.
Hi,
I had 2 grid with groupable capacity, and a custom toolbar action for navigate from them.
The list look like this :
but when i have some grouping value the state of the grid is transmit to the second list when clic on the button (Show Document List)
and then show up an exception because the grouping element don't exist in the second grid.
There are 2 works around for this :
- Change the name of the grid (the two have "Grid" for name)
- change the line from :
to :
But why don't apply the same thing use in Custom columns, and add a "SendSate(bool value)" and don't transmit the state if the value is false ?
I think that for uniformity it will be good.
Thanks
ps: i have send a ticket for the telerik installer for justdecompile that don't accept my login email but i can't see it in the list :
my email have a format like this : aaa_@myprovider.com with an "_" but i use this email for sign in my account without any problem.
I think the regex in the installer is not the same than the web site account...
I had 2 grid with groupable capacity, and a custom toolbar action for navigate from them.
The list look like this :
Html.Telerik().Grid<PlanningModel>() .Name("Grid") .BindTo(Model) .DataKeys(c => c.Add(d => d.PlanningModelId).RouteKey("PlanningModelId")) .ToolBar(t => { t.Custom().Action("PlanningModel_Add", "Documentation").Text("Add").ButtonType(GridButtonType.ImageAndText).ImageHtmlAttributes(new { @class = "t-icon t-add" }); t.Custom().Text("Show Document List").ButtonType(GridButtonType.ImageAndText).ImageHtmlAttributes(new { @class = "t-icon t-add" }).Action("Document_List", "Documentation"); }) .Columns(columns => { columns.Command(c => c.Custom("Edit").SendDataKeys(true).Action("PlanningModel_Edit", "Documentation").ButtonType(GridButtonType.Image).ImageHtmlAttributes(new { @class = "t-icon t-edit" })); columns.Bound(o => o.PlanningModelId); columns.Bound(o => o.Name); columns.Command(c => c.Delete().ButtonType(GridButtonType.Image)); }) .DataBinding(dataBinding => dataBinding.Server().Select("PlanningModel_List", "Documentation").Delete("PlanningModel_Delete", "Documentation")) .EnableCustomBinding(true) .Sortable() .Filterable() .Groupable() .Pageable(settings => settings.Total(ViewBag.Count).PageSize(ViewBag.PageSize)))but when i have some grouping value the state of the grid is transmit to the second list when clic on the button (Show Document List)
and then show up an exception because the grouping element don't exist in the second grid.
There are 2 works around for this :
- Change the name of the grid (the two have "Grid" for name)
- change the line from :
t.Custom().Text("Show Document List").ButtonType(GridButtonType.ImageAndText).ImageHtmlAttributes(new { @class = "t-icon t-add" }).Action("Document_List", "Documentation"));to :
t.Custom().Text("Show Document List").ButtonType(GridButtonType.ImageAndText).ImageHtmlAttributes(new { @class = "t-icon t-add" }).Url(UrlAction("Document_List", "Documentation"));But why don't apply the same thing use in Custom columns, and add a "SendSate(bool value)" and don't transmit the state if the value is false ?
I think that for uniformity it will be good.
Thanks
ps: i have send a ticket for the telerik installer for justdecompile that don't accept my login email but i can't see it in the list :
my email have a format like this : aaa_@myprovider.com with an "_" but i use this email for sign in my account without any problem.
I think the regex in the installer is not the same than the web site account...