RadPanelBar and SPDataSource

4 posts, 0 answers
  1. Ron
    Ron avatar
    2 posts
    Member since:
    Apr 2009

    Posted 21 Jun 2011 Link to this post

    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?
  2. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 28 Jun 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ron
    Ron avatar
    2 posts
    Member since:
    Apr 2009

    Posted 28 Jun 2011 Link to this post

    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>

  5. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 01 Jul 2011 Link to this post

    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.

Back to Top