When setting the PanelBar dataSource property, it adds a dropdown (ie a HasChildren indicator) even if there are no items in the array.
Would this be a reasonable change request to make - to not do this?
Basically if you do this
items: [
{
text: "Sub Sub Item 1",
value: "Sub Sub Item 1 Value",
items: []
},
You can test this by modifying the code as above on this fiddler.
http://jsfiddle.net/bundyo/WM4VG/light/
This is quite a pain, in my case, as I'm populating the dataSource from a C# DTO object. I have "items" as a property and cannot easily just "remove" it. Nor should I need to, in my opinion.
Would this be a reasonable change request to make - to not do this?
Basically if you do this
items: [
{
text: "Sub Sub Item 1",
value: "Sub Sub Item 1 Value",
items: []
},
You can test this by modifying the code as above on this fiddler.
http://jsfiddle.net/bundyo/WM4VG/light/
This is quite a pain, in my case, as I'm populating the dataSource from a C# DTO object. I have "items" as a property and cannot easily just "remove" it. Nor should I need to, in my opinion.