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

retrieve the default button text

3 Answers 90 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Ifdev02
Top achievements
Rank 1
Ifdev02 asked on 10 Apr 2009, 06:34 AM

 

<telerik:RadToolBarSplitButton runat="server" Text="XYZ"

 

 

ImageUrl="~/Portals/icons/help1/Stats2.png" ID="Selector1" EnableViewState="true">

I have set the above EnableDefaultButton to true

So each time I select sub-button it will become the defaut button

In the code behide i want to save current default text value into cookie what is the command? 

the cloest i get is,

 

"Selector1.defaultbuttonindex"

but it only gave me the integer of current default button, i need to get text value.

3 Answers, 1 is accepted

Sort by
0
Ifdev02
Top achievements
Rank 1
answered on 10 Apr 2009, 07:38 AM

Toolbar1.Items.Item(Selector1.DefaultButtonIndex()).Text()

The above is not working

0
Ifdev02
Top achievements
Rank 1
answered on 10 Apr 2009, 09:15 AM

So if i know the current index number of a split button from Selector1.DefaultButtonIndex()

How to get text value of the sub button in Selector1 with index number

Are there other ways?

0
Ifdev02
Top achievements
Rank 1
answered on 11 Apr 2009, 07:31 PM

= Selector1.Buttons( Selector1.DefaultButtonIndex() ).Text

I guess i found solution on my own with the above

Tags
ToolBar
Asked by
Ifdev02
Top achievements
Rank 1
Answers by
Ifdev02
Top achievements
Rank 1
Share this question
or