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

RadPanelBar and SPDataSource

3 Answers 47 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 21 Jun 2011, 10:49 PM
I've followed the example at http://demos.telerik.com/aspnet-ajax/panelbar/examples/populatingwithdata/databindings/defaultvb.aspx to add a RadPanelBar and RadPanelItems to a SharePoint 2010 page without any success. The RadPanelBar doesn't show on the page when I give values to DataFieldID & DataFieldParentID. No error given. When I leave those properties blank and set DataTextField="Title" then I get the menu but only the 1st level.

Instead of an SQLDataSource I'm using an SPDataSource. The spdatasource does work however, with an asp:DropDownList control.

Are there issues with RadpanelBar and SPDataSource?

3 Answers, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 28 Jun 2011, 08:02 AM
Hi Ron,

The issue that you describe is quite unusual.
I started investigating it and will update you as soon as I make progress on it.
Meanwhile it will be highly appreciated if you provide us more details about your implementation and some sample code.
Thank you.

Regards,
Kalina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Ron
Top achievements
Rank 1
answered on 28 Jun 2011, 03:52 PM
Hi Kalina,

I've decided that I only need one level of panelItems for my project and the following code accomplishes this.

 <SharePointWebControls:SPDataSource runat="server" DataSourceMode="List" UseInternalName="true" UseServerDataFormat="true" selectcommand="&lt;View&gt;&lt;/View&gt;" id="spdatasource1">
 <SelectParameters>
 <asp:Parameter Name="ListID" DefaultValue="{12E45D04-C92B-478C-997D-AE16A7DBF6CB}"/>
 <asp:Parameter Name="WebUrl" DefaultValue="/rj/"/>
 </SelectParameters></SharePointWebControls:SPDataSource>
 

 <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Skin="CGCC"  EnableEmbeddedSkins="False" DataSourceID="spdatasource1" AppendDataBoundItems="True">
 <DataBindings>
 <telerik:radpanelitembinding TextField="menuItem" NavigateUrlField="Url" Depth="0"/>
 </DataBindings>
 </telerik:RadPanelBar>

0
Kalina
Telerik team
answered on 01 Jul 2011, 05:57 PM
Hi Ron,

Glad that you managed to find a solution on your own.
Thank you for posting it for the community.

All the best,
Kalina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
PanelBar
Asked by
Ron
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Ron
Top achievements
Rank 1
Share this question
or