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

Right aligned buttons on popup editor

2 Answers 265 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 10 Jan 2013, 06:25 PM
After implementing the following javascript to align the Update and Cancel popup editors buttons to the right they now display in the incorrect order, i.e. Cancel then Update.

function onGridEdit(e){
      e.container.find('.k-grid-update,.k-grid-cancel').css('float','right');
}

How do I get the buttons on the right and remain in the Update, Cancel display order?

2 Answers, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 10 Jan 2013, 08:13 PM
Hi Robert,

In order to preserve the order of the Update and Cancel buttons you need to switch their positions. I.e.: 
function onGridEdit(e){
    e.container.find('.k-grid-update,.k-grid-cancel').css('float','right');
    e.container.find(".k-grid-update").insertAfter(".k-grid-cancel");
}

Regards,

Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Robert
Top achievements
Rank 1
answered on 10 Jan 2013, 08:32 PM
Thank you for this info Iliana.
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Robert
Top achievements
Rank 1
Share this question
or