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

Popup editor css issues

3 Answers 155 Views
Grid
This is a migrated thread and some comments may be shown as answers.
tj
Top achievements
Rank 1
tj asked on 05 Dec 2014, 02:55 PM
I'm using an editor template for popup editing and have everything working just the way I want it to but style and css have been a tooth and nail struggle all the way. The Update & Cancel buttons on my form aren't created by my code so I don't have direct access to manipulate their position. The following code snippet works great if I tell it to float left, but float right, which is what I want, only floats it half way.

.k-edit-buttons {
    float: right;
}

All the examples of this I've seen lead me to believe float right is probably the default, unfortunately, all the examples I've seen are small forms allowing the user to update three or four fields. If that was all I had I'd use inline editing. My form has a width of 860px. This is my fourth attempt to post this issue as the page keeps locking up. I will attach my two cshtml files.

Please Help.

3 Answers, 1 is accepted

Sort by
0
tj
Top achievements
Rank 1
answered on 05 Dec 2014, 09:01 PM
By the way this

function onGridEdit(e) {    e.container.find(".k-grid-update,.k-grid-cancel").css("float", "right");    updateButton = e.container.find(".k-grid-update").remove();    $(".k-grid-cancel").after(updateButton);}

doesn't work either.
0
tj
Top achievements
Rank 1
answered on 05 Dec 2014, 09:03 PM
I have found several ways to get to the css to set the float right attribute, the issue is, it only floats half way to the right, which makes it look centered.
0
Tim
Top achievements
Rank 1
answered on 08 Dec 2014, 07:52 PM
Figured it out, this works

function onEdit(e) {
     $('[class^=k-edit-buttons]').css('width', '1125px');
     ....

You would think that these css classes would inherit from their parent
Tags
Grid
Asked by
tj
Top achievements
Rank 1
Answers by
tj
Top achievements
Rank 1
Tim
Top achievements
Rank 1
Share this question
or