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

MVVM data-bind with z-index

2 Answers 82 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 10 Sep 2013, 07:56 AM
Hi,
I had a problem when trying to embed z-index databinding. Below is my DOM:
<div id="ItemContainer0" class="textItem ui-draggable" data-bind="style:
{height: Height + 10 + 'px', width: Width + 10 + 'px', top: Y - 6 + 'px', left:
X - 6 + 'px', 'z-index': Z}" index="0" style="height: 60px; width: 210px; top:
77px; left: 135px;">

The "width", "height", "top", "left" are rendered to "style" but z-index is not.
What is my mistake?
Please help me this problem. I searched google for a long time but I didn't see any answer.

Thank you.
John Vu

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Popov
Telerik team
answered on 10 Sep 2013, 11:20 AM
Hello John,

I tried to reproduce the issue in this example, but everything works as expected. Could you please check it and let me know how it differs from your setup?

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
John
Top achievements
Rank 1
answered on 12 Sep 2013, 04:08 PM
Thank you.

Your example works! My problem is "zindex" instead of "zIndex".
Tags
MVVM
Asked by
John
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
John
Top achievements
Rank 1
Share this question
or