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

Click on Ribbon Button

3 Answers 164 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Herman
Top achievements
Rank 1
Herman asked on 29 Jun 2011, 09:44 AM
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

3 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 29 Jun 2011, 04:55 PM
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.

0
Herman
Top achievements
Rank 1
answered on 29 Jun 2011, 07:38 PM
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.
0
Herman
Top achievements
Rank 1
answered on 29 Jun 2011, 09:01 PM
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";

 

}


}
Tags
RibbonBar
Asked by
Herman
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Herman
Top achievements
Rank 1
Share this question
or