TabStrip with angular controller

16 posts, 3 answers
  1. Mahmut
    Mahmut avatar
    21 posts
    Member since:
    Nov 2010

    Posted 19 Mar 2015 Link to this post

    Hello,
    I'm experiencing a problem with TabStrip. With 2014 Q2 version, I can use tabstrip without a problem, in which its
    contents bind angular controllers, and I can see that bound controller is activated when the tabstrip content is
    loaded. But, yesterday I've tried to upgrade to 2015 Q1 version. After that, I see that the controller is no more activated.
    Is there a difference between 2014 Q2 and 2015 Q1 versions? Or am I missing something?

    Mahmut Zemheri

  2. Mahmut
    Mahmut avatar
    21 posts
    Member since:
    Nov 2010

    Posted 20 Mar 2015 Link to this post

    Hello again,
    I've added a plunker sample.
    (Working sample breaks down when you comment out the lines with 2015.* version)

    Thanks,
    Mahmut Zemheri
  3. Kendo UI is VS 2017 Ready
  4. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 21 Mar 2015 Link to this post

    Hello Mahmut,

    You are missing the correct script reference. Please see the updated example here:

    http://dojo.telerik.com/idiHA

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Mahmut
    Mahmut avatar
    21 posts
    Member since:
    Nov 2010

    Posted 21 Mar 2015 in reply to Kiril Nikolov Link to this post

    Hi Kiril,
    Thanks for your reply.
    Unfortunately, there is no difference. Again, while the sample with 2014 Q2 is working, 
    the sample with 2015 Q1 is not working (even with the script reference which you gave).

    Thanks
    Mahmut Zemheri
  6. Answer
    Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 25 Mar 2015 Link to this post

    Hello Mahmut,

     

    There was an error in the way widget is initialized, please note that you do not need to initialize the tabstrip widget with jQuery when AngularJS directives are used. Please see the updated example here:

     

    http://plnkr.co/edit/kWoej5HcQaSPagceyQkp?p=preview

     

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  7. Mahmut
    Mahmut avatar
    21 posts
    Member since:
    Nov 2010

    Posted 25 Mar 2015 Link to this post

    Hello Kiril :(,

    I think, there is a serious problem with communication. Let me try to be as clearest as possible.
    With 2014 Q2, the result is "Tab 1 Content" (in evidence 1).
    With 2015 Q1, the result is "{{name}}" (in evidence 2, and the sample prepared by yourself).
    Why on earth, the result is "{{name}}" with 2015 Q1 version (regardless of the script reference or the widget initialization method you choose)?
    I feel that there is a bug in 2015 Q1 version with a great possibility.

    Mahmut Zemheri

  8. Mahmut
    Mahmut avatar
    21 posts
    Member since:
    Nov 2010

    Posted 26 Mar 2015 Link to this post

    Hello again,

    Just another sample with 2014 Q2 and 2015 Q1.
    Please, do notice that initialize function does not work with 2015 Q1 (in contrast with 2014 Q1).

    Mahmut Zemheri
  9. Mahmut
    Mahmut avatar
    21 posts
    Member since:
    Nov 2010

    Posted 27 Mar 2015 Link to this post

    The same problem with kendo window.
    2014 Q2 vs 2015 Q1.
    Is there any workaround for this problem?

    Mahmut Zemheri
  10. Answer
    Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 27 Mar 2015 Link to this post

    Hello Mahmut,

    I am sorry for the delayed response. the change you refer to is intentional. The Q2 2014 behavior was, in fact, an incorrect one. Widgets not instantiated as directives interfered with the AngularJS compilation. After several customer requests we had to change that.

    Like Kiril suggested, if the tabstrip is instantiated with an AngularJS directive, the problem should be addressed.

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  11. Mahmut
    Mahmut avatar
    21 posts
    Member since:
    Nov 2010

    Posted 29 Mar 2015 Link to this post

    Thanks Kiril and Petyo,

    What if, you have to instantiate a kendo-widget that bound an angular controller at runtime (for example, by user preference)?
    Anyway, if it is intentional and requested by several customers, we have nothing to do but review whole project
    and hope that upcoming versions not to include this kind of surprises.

    Mahmut Zemheri
  12. Answer
    Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 01 Apr 2015 Link to this post

    Hello,

    there are plenty of means to achieve that. In fact, the topic has been broadly covered under the "AngularJS for jQuery developers" title, which discusses such cases in details.

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  13. Mahmut
    Mahmut avatar
    21 posts
    Member since:
    Nov 2010

    Posted 01 Apr 2015 in reply to Petyo Link to this post

    Hello Petyo,

    Thank you very much, for your kindness.
    I'll examine the link carefully.
    We're just having some difficulties in changing the design pattern in the middle of the development process.
    In fact, there were no problem, if we began with 2015 Q1. 

    Best regards,
    Mahmut Zemheri
  14. Mahmut
    Mahmut avatar
    21 posts
    Member since:
    Nov 2010

    Posted 01 Apr 2015 in reply to Petyo Link to this post

    Hello Petyo,

    Thank you very much, for your kindness.
    I'll examine the link carefully.
    We're just having some difficulties in changing the design pattern in the middle of the development process.
    In fact, there were no problem, if we began with 2015 Q1 version :)

    Best regards,
    Mahmut Zemheri
  15. Mahmut
    Mahmut avatar
    21 posts
    Member since:
    Nov 2010

    Posted 01 Apr 2015 in reply to Petyo Link to this post

    Hello Petyo,

    Thank you very much, for your kindness.
    I'll examine the link carefully.
    We're just having some difficulties in changing the design pattern in the middle of the development process.
    In fact, there were no problem, if we began with 2015 Q1 version :)

    Best regards,
    Mahmut Zemheri
  16. Mahmut
    Mahmut avatar
    21 posts
    Member since:
    Nov 2010

    Posted 01 Apr 2015 Link to this post

    Note: Sorry for multiple messages with the same content (resulting from 500 internal server errors).
  17. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 03 Apr 2015 Link to this post

    Hello Mahmut,

    Apologies for any inconveniences.

    If something comes up - please do not hesitate to contact us.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready