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

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

3 Answers 229 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Seyfor
Top achievements
Rank 1
Seyfor asked on 16 Jan 2016, 10:48 AM

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)

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 20 Jan 2016, 08:19 AM
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!
 
0
Seyfor
Top achievements
Rank 1
answered on 20 Jan 2016, 12:04 PM
Logged in user can change theme, so this is not solution for me.For now I am manually adding class in code.
0
Alex Gyoshev
Telerik team
answered on 21 Jan 2016, 12:21 PM

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!
 
Tags
TreeView
Asked by
Seyfor
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Seyfor
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or