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

Identify Clicked Button

1 Answer 63 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Kumar
Top achievements
Rank 1
Kumar asked on 21 Oct 2010, 11:20 AM
Hi,

I am using RADToolBar.I have filled RADToolBar with 3 RADToolBarButton Items which have text as Copy,Paste,Cut

I want to know which button is clicked on server side and want to dispaly in a label

like "Copy" Button is Clicked.
How can i do this

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 21 Oct 2010, 12:13 PM
Hi Kumar,


The following code describes how to achieve this.

Code:
protected void RadToolBar2_ButtonClick(object sender, RadToolBarEventArgs e)
{
    Label1.Text = e.Item.Text.ToString();
    RadToolBarButton clickedButton = (RadToolBarButton)e.Item;
}



Thanks,
Princy.
Tags
ToolBar
Asked by
Kumar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or