Hi
I have a data bound PanelBar that will not collapse.
This is the rendered HTML
And this is the code that created it
I have created a version of the PanelBar manually entering the items and the rendered html is the same, but the expanded items collapase.
The difference that I can see is that in the databound version I pass in a NULL as the NavigateURL for the items I want to collapse where as on the static version I do not use the NavigateURL attribute at all.
Thanks
Mark
I have a data bound PanelBar that will not collapse.
This is the rendered HTML
| <div id="ctl00_Main_nav1_RadPanelBar2" class="RadPanelBar RadPanelBar_mresource" style="height:300px;"> |
| <ul class="rpRootGroup"> |
| <li class="rpItem rpFirst"><a href="./" class="rpLink"><span class="rpOut"><span class="rpText">Home</span></span></a></li> |
| <li class="rpItem"><a href="reporting/" class="rpLink"><span class="rpOut"><span class="rpText">Dashboard</span></span></a></li> |
| <li class="rpItem"><a href="#" class="rpLink rpExpandable rpExpanded"><span class="rpOut"><span class="rpText">Reporting</span></span></a><div class="rpSlide" style="display:block;"> |
| <ul class="rpGroup rpLevel1 " style="display:block;"> |
| <li class="rpItem rpFirst"><a href="pages/c.aspx" class="rpLink"><span class="rpOut"><span class="rpText">SMS Applicants</span></span></a></li> |
| <li class="rpItem"><a href="reporting/conversion/" class="rpLink"><span class="rpOut"><span class="rpText">Conversion Rate</span></span></a></li> |
| <li class="rpItem"><a href="reporting/source/" class="rpLink"><span class="rpOut"><span class="rpText">Candidate Source</span></span></a></li> |
| <li class="rpItem"><a href="reporting/livesms/" class="rpLink"><span class="rpOut"><span class="rpText">Live SMS</span></span></a></li> |
| <li class="rpItem"><a href="reporting/poll/" class="rpLink"><span class="rpOut"><span class="rpText">Poll Results</span></span></a></li> |
| <li class="rpItem rpLast"><a href="reporting/mapping/" class="rpLink"><span class="rpOut"><span class="rpText">Mapping</span></span></a></li> |
| </ul> |
| </div></li><li class="rpItem rpLast"><a href="#" class="rpLink rpExpandable rpExpanded"><span class="rpOut"><span class="rpText">Campaign Tools</span></span></a><div class="rpSlide" style="display:block;"> |
| <ul class="rpGroup rpLevel1 " style="display:block;"> |
| <li class="rpItem rpFirst rpLast"><a href="pages/v.aspx" class="rpLink"><span class="rpOut"><span class="rpText">Visitors</span></span></a></li> |
| </ul> |
| </div></li> |
| </ul><input id="ctl00_Main_nav1_RadPanelBar2_ClientState" name="ctl00_Main_nav1_RadPanelBar2_ClientState" type="hidden" /> |
| </div> |
And this is the code that created it
| <telerik:RadPanelBar runat="server" ID="RadPanelBar2" Height="300px" EnableEmbeddedSkins="false" Skin="mresource" |
| DataFieldID="MenuItemId" DataFieldParentID="ParentID" > |
| <DataBindings> |
| <telerik:RadPanelItemBinding Depth="0" TextField="Text" NavigateUrlField="NavigateURL" ExpandedField="Expanded" /> |
| <telerik:RadPanelItemBinding Depth="1" TextField="Text" NavigateUrlField="NavigateURL" /> |
| </DataBindings> |
| </telerik:RadPanelBar> |
I have created a version of the PanelBar manually entering the items and the rendered html is the same, but the expanded items collapase.
The difference that I can see is that in the databound version I pass in a NULL as the NavigateURL for the items I want to collapse where as on the static version I do not use the NavigateURL attribute at all.
Thanks
Mark