Visible question

2 posts, 1 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 27 Jul 2012 Link to this post

    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?
  2. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 01 Aug 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top