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

Visible question

1 Answer 73 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 27 Jul 2012, 07:57 PM
If we have a table, and the rows (tr) are each are bound to a function off of "visible"...how do you handle that in the function itself

The TR looks like this

<tr data-mf="3" data-bind="visible: isSelectedMF">

...so in that function is there any way to get that "3" from the data-mf element?

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 01 Aug 2012, 03:26 PM
Hello Steve,

Currently there is no way to get the target element inside the method itself. I've managed to implement a workaround by creating a custom visible binder though. If you are interested you can check it here: http://jsbin.com/ecuroj/1/edit 

Kind regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
MVVM
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Atanas Korchev
Telerik team
Share this question
or