Click on Ribbon Button

4 posts, 0 answers
  1. Herman
    Herman avatar
    28 posts
    Member since:
    Jun 2011

    Posted 29 Jun 2011 Link to this post

    Apologies for my English
    Here is the code for my  basic RibbonBar

    <telerik:RadRibbonBar ID="RadRibbonBar1" runat="server" Width="854px"
            style="max-width: 854px;" Skin="Hay"
            onbuttonclick="RadRibbonBar1_ButtonClick" SelectedTabIndex="0">
        <telerik:RibbonBarTab Text="Insert">
        <telerik:RibbonBarGroup Text="Insert" >
       
        <Items>
        <telerik:RibbonBarSplitButton Size="Large" Text="New Item" ImageUrlLarge="Images/new_item_images.jpg" >
        <Buttons>
        <telerik:RibbonBarButton Text="Add New Catalogue" ImageUrl="" />
        <telerik:RibbonBarButton Text="Add New Catalogue Structure" ImageUrlLarge="" />
        </Buttons>
        </telerik:RibbonBarSplitButton>
        </Items>
        </telerik:RibbonBarGroup>
        </telerik:RibbonBarTab>
        </telerik:RadRibbonBar>

    Help me with some a basic function if i click on one of the Ribbon buttons example "Add New Catalogue" change text on a textbox
  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 29 Jun 2011 Link to this post

    Hi Herman,

    As much as I understood you want to change the text of RibbonBarButton when you click on it.
    With the version you specify you can do so handling the ButtonClick server and changing the text of the button passed in the arguments.

    With the upcoming release, you will be able to do so client-side.

    Please, further explain the problem you try to solve if this isn't it.


    Regards,
    Nikolay Tsenkov
    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. Herman
    Herman avatar
    28 posts
    Member since:
    Jun 2011

    Posted 29 Jun 2011 Link to this post

    No i have the RibbonBar and on the click of the RibbonBarButton i want to change the text of a textbox on the form.
     So on the click event of the example "Add New Catalogue" i want to change the text of a textbox on the form.
  5. Herman
    Herman avatar
    28 posts
    Member since:
    Jun 2011

    Posted 29 Jun 2011 Link to this post

    Never mind got it

     

     

    protected void RadRibbonBar1_ButtonClick(object sender, Telerik.Web.UI.RibbonBarButtonClickEventArgs e)

     

    {

     

     

    if (e.Button.Text == "Add New Catalogue")

     

    {

    Label1.Text =

     

    "Add New Catalogue";

     

    }


    }
Back to Top