[4.2.0.0] - Custom Attach click functionality

Posted by IramK on 13-Jun-2016 08:42

Hello,

In version 4.0.4.0, I had some code that would change the src of an attach button for a related objects list view. The code is given below.

<script>
  function onClick(e){
    console.log($("#dialogId > iframe").length); // returns 0 in 4.2 but works fine (returns 1) in 4.0.4.0
}

$(document).ready(function(){

  var myButton= $($('section[name="Attach Button Section"]').find('a')[4]);
  
  myButton.kendoButton({
    click: onClick
  });
});

However, this doesn't work the same anymore in 4.2.0.0. May I know what has changed as I don't get the iframe anymore with the same code. Looking forward to your reply.

Cheers.

All Replies

Posted by IramK on 08-Feb-2017 11:36
This thread is closed