This is a migrated thread and some comments may be shown as answers.

[Solved] popup editing window position

0 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jin
Top achievements
Rank 1
Jin asked on 22 Feb 2011, 04:15 AM
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))
)
Tags
Grid
Asked by
Jin
Top achievements
Rank 1
Share this question
or