This question is locked. New answers and comments are not allowed.
Hi
Looking for a method to customize the positon/size of the popup editing window. im trying use the window configurator to achieve this. Apparently this breaks the popup window. As you can see im also using editor templates. not sure if this combination is achieivable. can someone please advise?
@(Html.Telerik().Grid<Model>()
.Name("grid")
.DataKeys(dk =>
{
dk.Add(model => model.Id).RouteKey("Id");
})
.ToolBar(tb => tb.Insert().ButtonType(GridButtonType.ImageAndText))
.DataBinding(binding => binding.Ajax()
.Select<Model>(action => action.GetItems(Model.Id))
.Delete("Delete", "Model").Insert("Insert", "Model", new { Id = Model.Id }))
.Columns(c =>
{
c.Command(commands =>
{
commands.Delete().ButtonType(GridButtonType.Image);
}).Width(20);
})
.Editable(settings => settings.Window(config => config.Height(5000).Title("title")).Mode(GridEditMode.PopUp).DisplayDeleteConfirmation(false).TemplateName("_Template"))
.Pageable(p => p.PageSize(10))
)
Looking for a method to customize the positon/size of the popup editing window. im trying use the window configurator to achieve this. Apparently this breaks the popup window. As you can see im also using editor templates. not sure if this combination is achieivable. can someone please advise?
@(Html.Telerik().Grid<Model>()
.Name("grid")
.DataKeys(dk =>
{
dk.Add(model => model.Id).RouteKey("Id");
})
.ToolBar(tb => tb.Insert().ButtonType(GridButtonType.ImageAndText))
.DataBinding(binding => binding.Ajax()
.Select<Model>(action => action.GetItems(Model.Id))
.Delete("Delete", "Model").Insert("Insert", "Model", new { Id = Model.Id }))
.Columns(c =>
{
c.Command(commands =>
{
commands.Delete().ButtonType(GridButtonType.Image);
}).Width(20);
})
.Editable(settings => settings.Window(config => config.Height(5000).Title("title")).Mode(GridEditMode.PopUp).DisplayDeleteConfirmation(false).TemplateName("_Template"))
.Pageable(p => p.PageSize(10))
)