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

Images on PanelBar inner levels

2 Answers 62 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Marcelo
Top achievements
Rank 1
Marcelo asked on 18 Apr 2012, 10:02 PM
Trying to put images on a 2 level Kendo PanelBar  get errors in visualization.
This is my datasource :
  
dataSource: [
        {   text: "Item 1" ,imageUrl : "img/usrmgr.gif",
            items: [
                { text: "Sub Item 1.1" , valor: 2,imageUrl : "img/usrmgr.gif"},
                { text: "Sub Item 1.2", valor : 3,imageUrl : "img/usrmgr.gif" }
            ]
        },
        { text: "Item 2", imageURL : "img/usrmgr.gif",
      items: [
                { text: "Sub Item 2.1", valor : 5 ,imageUrl : "img/usrmgr.gif"},
                { text: "Sub Item 2.2", valor : 5,imageUrl : "img/usrmgr.gif" },
                { text: "Sub Item 2.3", valor : 5 ,imageUrl : "img/usrmgr.gif"},
                { text: "Sub Item 2.4", valor : 5,imageUrl : "img/usrmgr.gif" },
                { text: "Sub Item 2.5", valor : 5,imageUrl : "img/usrmgr.gif" }
            ]
       
  }
  ]


is anything worng ??... Panelbar shows distinct hiearchies than loaded  in datasource.
Thanks in advance,
Marcelo

2 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 20 Apr 2012, 02:55 PM
Hello Marcelo,

Your code snippet looks OK, except that there is a syntax mistake in the definition "Item2" object:
{ text: "Item 2", imageURL : "img/usrmgr.gif", //the correct is imageUrl

You can check the modified example in this jsFiddle.
I hope this information helps.

All the best,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Marcelo
Top achievements
Rank 1
answered on 20 Apr 2012, 07:55 PM
Thanks Alexander
Tags
PanelBar
Asked by
Marcelo
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Marcelo
Top achievements
Rank 1
Share this question
or