k-link class not added to a tag when using append method

4 posts, 0 answers
  1. Matjaž
    Matjaž avatar
    81 posts
    Member since:
    Jul 2015

    Posted 16 Jan Link to this post

    I am adding items on client with url parameter set:

    var item = this.links.append({ text: text, url: url }, parent);
    //http://docs.telerik.com/kendo-ui/api/javascript/ui/treeview#methods-append

    The generated code is:

    <li role="treeitem" class="k-item" data-uid="64c022e1-c7c4-470e-8dab-a5f821290894" aria-selected="false " id="menuitems-admin_management_database">
      <div class="k-top">
        <a class="k-in k-state-focused" href="#!/admin/management/database">Database</a>
      </div>
    </li>

    I would expect that k-link class is also added to the a tag, otherwise this happens.(On some themes text is not visible)

  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 20 Jan Link to this post

    Hi Matjaž,

    Thank you for pointed our attention to this issue - I forwarded it to the developers for fixing. Meanwhile, you could use the following CSS rule as a workaround: 
    .k-treeview .k-in {
        color: #fff;
    }
    For your convenience I modified the dojo.

    Regards,
    Iliana Nikolova
    Telerik
     
    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
  4. Matjaž
    Matjaž avatar
    81 posts
    Member since:
    Jul 2015

    Posted 20 Jan in reply to Iliana Nikolova Link to this post

    Logged in user can change theme, so this is not solution for me.For now I am manually adding class in code.
  5. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 21 Jan Link to this post

    Hello Matjaž,

    We have addressed the issue for the next internal build. Once it is released (by the end of the week), you can upgrade and remove your workaround.

    Regards,
    Alex Gyoshev
    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