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

Custom MVC Grid Wrapper with Popup Editing Window

1 Answer 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Leonardo
Top achievements
Rank 1
Leonardo asked on 09 Jul 2014, 12:03 PM
How can I customize the size and the format of the popup editing window of the grid?

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 11 Jul 2014, 07:54 AM
Hi Leonardo,


You can use the "Edit" event of the Grid to update the size of the PopUp Window as follows:

function onEdit(e) {
    e.container.data("kendoWindow").setOptions({ width: 800, height: 1000 });
    e.container.children().css("width", 800).css("height", 970);
}

Another option is using the Grid EditingSettingsBuilder as follows (in this case the content of the PopUp will not be resized:

.Editable(editable => editable.Mode(GridEditMode.PopUp).Window(w => w.Width(800).Height(1000)))

Regards,
Vladimir Iliev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Leonardo
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or