retrieve the default button text

4 posts, 0 answers
  1. Ifdev02
    Ifdev02 avatar
    68 posts
    Member since:
    Jul 2007

    Posted 10 Apr 2009 Link to this post

     

    <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.

  2. Ifdev02
    Ifdev02 avatar
    68 posts
    Member since:
    Jul 2007

    Posted 10 Apr 2009 Link to this post

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

    The above is not working

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ifdev02
    Ifdev02 avatar
    68 posts
    Member since:
    Jul 2007

    Posted 10 Apr 2009 Link to this post

    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?

  5. Ifdev02
    Ifdev02 avatar
    68 posts
    Member since:
    Jul 2007

    Posted 11 Apr 2009 Link to this post

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

    I guess i found solution on my own with the above

Back to Top