Selected tabs and Image Urls

11 posts, 0 answers
  1. Kevin Neumann
    Kevin Neumann avatar
    29 posts
    Member since:
    Feb 2006

    Posted 24 Mar 2011 Link to this post

    I have two issues with current release of the RibbonBar.

    Is there a way to set the selected tab programmatically?  For instance, say the ribbonbar has 3 tabs, Home, Issues, and Setup.  A button on the setup ribbon, has a button that causes a postback.  Upon postback, there doesn't appear to be a way to programmatically set a tab as selected.  It would be nice if there was a .Selected property that was accessible.

    The second issue is with the image urls.  It appears that the current property doesn't observe the virtual path ("~/"). I can workaround this with the following, but it is pretty ugly:

    For Each t As RibbonBarTab In Me.RibbonBar.Tabs
        If t.Text = "Issue Tracker" Then
            For Each g As RibbonBarGroup In t.Groups
                If g.ID = "rbgIssueTracker" Then
                    For Each b As RibbonBarButton In g.Items
                        Select Case b.ID
                            Case "btnIssueTracker_MyIssues"
                                Me.btnIssueTracker_MyIssues.ImageUrlLarge = ResolveUrl("~/img/toolbar/myissues.png")
                            Case "btnIssueTracker_AddIssue"
                                Me.btnIssueTracker_AddIssue.ImageUrlLarge = ResolveUrl("~/img/toolbar/addnew.png")
                            Case "btnIssueTracker_ProjectSummary"
                                Me.btnIssueTracker_ProjectSummary.ImageUrlLarge = ResolveUrl("~/img/toolbar/projectsummary.png")
                            Case "btnIssueTracker_Roadmap"
                                Me.btnIssueTracker_Roadmap.ImageUrlLarge = ResolveUrl("~/img/toolbar/roadmap.png")
                            Case "btnIssueTracker_ChangeLog"
                                Me.btnIssueTracker_ChangeLog.ImageUrlLarge = ResolveUrl("~/img/toolbar/changelog.png")
                        End Select
                    Next
                ElseIf g.ID = "rbgIssueTrackerAdministration" Then
                    For Each b As RibbonBarButton In g.Items
                        Select Case b.ID
                            Case "btnIssueTracker_Administration"
                                Me.btnIssueTracker_Administration.ImageUrlLarge = ResolveUrl("~/img/toolbar/administration.png")
                        End Select
                    Next
                End If
            Next
        End If
    Next

    This works, but as you can see, it isn't very straightforward because there doesn't appear to be any FindButtonById/FindButtonByText property.

    I am missing something in the current release?  Or are these feature planned for the future?
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 24 Mar 2011 Link to this post

    Hi Kevin Neumann,

    Currently there is no way to set the selected Tab and we will implement this for the Service Pack. We are aware of the ImageUrl issue and will fix it in the next few weeks. Finally the Find- method are also coming with the SP.

    I updated your Telerik points for your suggestion.

    Kind regards,
    Simon
    the Telerik team
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Siingh
    Siingh avatar
    32 posts
    Member since:
    Jul 2012

    Posted 11 Apr 2011 Link to this post

    Hi Telerik
    I checked PITS and so far no info regarding Selected Tab Method in RadRibbonbar. are you going to add this method where i can specify selectedTab in RibbonBar from serverside?

    i want to use this ribbonbar but so far i cant use it as this feature is really important to me.


    Kind Regards:
  5. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 12 Apr 2011 Link to this post

    Hello Siingh,

    Yes, we will be adding the SelectedTabIndex property to RadRibbonBar for the upcoming Service Pack. The feature is also added in PITS. I hope this helps.

    Regards,
    Simon
    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.

  6. Arnaud
    Arnaud avatar
    2 posts
    Member since:
    Jul 2010

    Posted 14 Apr 2011 Link to this post

    Hello Telerik,

    I've installed SP1 version (2011/04/13) and I don't see any SelectedTabIndex property for Tabs. When do you think you will add this functionality ? It's really a need.
    Thanks
  7. Jason
    Jason avatar
    26 posts
    Member since:
    May 2008

    Posted 14 Apr 2011 Link to this post

    I need the same functionality as well. If it is in the service pack, please tell me how to set it.
  8. Siingh
    Siingh avatar
    32 posts
    Member since:
    Jul 2012

    Posted 14 Apr 2011 Link to this post

    Hi Telerik
    please reply, you said SelectedTabIndex will be in SP1 why still not available after upgrade to SP1?

    reply to us its urgent, i really need to use ribbon asap



    Kind Regards:
  9. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 18 Apr 2011 Link to this post

    Hello Siingh,

    We implemented the property shortly after the release as we were fixing some critical bugs in the control. Fortunately, tomorrow's internal build will contain the feature, so please upgrade when it is out.

    I hope this helps.

    All the best,
    Simon
    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.

  10. Jen
    Jen avatar
    21 posts
    Member since:
    Oct 2008

    Posted 19 Apr 2011 Link to this post

    I just referenced the new dll in the latest internal build (hoping to get the tab selected option) and I get a bunch of javascript errors, first one saying that Telerik is not defined.
  11. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 20 Apr 2011 Link to this post

    Hello Jen,

    I just verified the internal build from April 18 and it worked fine.

    It is possible that the requests for the web resources are failing on your side for some reason. Can you capture the requests of your page with FiddlerCap and provide a link to the logs here or attach a screenshot of the Net tab of FireBug?

    Greetings,
    Simon
    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.

  12. Arnaud
    Arnaud avatar
    2 posts
    Member since:
    Jul 2010

    Posted 11 May 2011 Link to this post

    Hello The "SelectedTabIndex" property has appeared with the new 2011.1.510.40 hotfix. It works well.
    Thanks.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017