Kevin Neumann
Top achievements
Rank 1
Kevin Neumann
asked on 24 Mar 2011, 02:33 PM
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:
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?
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?
10 Answers, 1 is accepted
0
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
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
0
Siingh
Top achievements
Rank 2
answered on 12 Apr 2011, 04:53 AM
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:
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:
0
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
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.
0
Arnaud
Top achievements
Rank 1
answered on 14 Apr 2011, 01:49 PM
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
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
0
Jason
Top achievements
Rank 1
answered on 14 Apr 2011, 04:41 PM
I need the same functionality as well. If it is in the service pack, please tell me how to set it.
0
Siingh
Top achievements
Rank 2
answered on 15 Apr 2011, 01:55 AM
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:
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:
0
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
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.
0
Jen
Top achievements
Rank 1
answered on 19 Apr 2011, 05:43 PM
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.
0
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
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.
0
Arnaud
Top achievements
Rank 1
answered on 11 May 2011, 01:51 PM
Hello The "SelectedTabIndex" property has appeared with the new 2011.1.510.40 hotfix. It works well.
Thanks.
Thanks.