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

surround grid popup editor buttons with div tag

2 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Maxim
Top achievements
Rank 1
Maxim asked on 18 Nov 2012, 04:04 AM
Hi,

Would you please surround grid popup editor buttons with div tag so that they do not wrap around in some cases when custom styling is used.

At present your code looks like:
html += that._createButton({ name: "update", text: updateText, attr: attr }) + that._createButton({ name: "canceledit", text: cancelText, attr: attr });
However it should look like:
html += '<div>' + that._createButton({ name: "update", text: updateText, attr: attr }) + that._createButton({ name: "canceledit", text: cancelText, attr: attr }) + '</div>';

2 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 22 Nov 2012, 08:35 AM
Hello Maxim,

Since you are the first one who asks for such change and we are not sure how rest of the users will benefit from such change I would suggest you to share your idea on our Kendo User Voice page. If this idea gains popularity we will consider updating the popup layout.

As a work-around you can use the edit event of the Grid to wrap the buttons inside of a div element with jQuery.

e.g.

$('#gridName').data().kendoGrid.bind('edit',function(e){
    var toWrap = e.container.find('.k-grid-update').nextAll().andSelf();
    toWrap.wrapAll('<div/>')
})

Thank you for the understanding.

Kind regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sypher
Top achievements
Rank 1
answered on 17 Dec 2012, 03:49 PM
Maxim, have you posted this to the UserVoice site yet? I like this idea as well.
Tags
Grid
Asked by
Maxim
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Sypher
Top achievements
Rank 1
Share this question
or