Hi,
After a very long struggle, I managed to get buttons on my grid group headers. (Still there is an issue with it, like a postback making the controls to vanish - Anyway, I'll look into it later) As of now, I've added buttons to the group header items and also I have defined an event-handler for the button click event.
Please see my code below for the radgrid_ItemDataBound event
The button is added to the group header now. But when I click on the button, the button click event is not fired. Its driving me too crazy as I've been into this problem since this morning.
Can you advise me on this?
Thanks in advance.
Sangeetha
After a very long struggle, I managed to get buttons on my grid group headers. (Still there is an issue with it, like a postback making the controls to vanish - Anyway, I'll look into it later) As of now, I've added buttons to the group header items and also I have defined an event-handler for the button click event.
Please see my code below for the radgrid_ItemDataBound event
if
(e.Item is GridGroupHeaderItem)
{
Button
btnModifyStrategy = new Button();
btnModifyStrategy.Text =
"Modify Strategy";
btnModifyStrategy.CssClass =
"tab4-sub1btn";
//btnModifyStrategy.UseSubmitBehavior = false;
btnModifyStrategy.Click +=
new EventHandler(btnModifyStrategy_Click);
groupheader.DataCell.Controls.Add(btnModifyStrategy);
}
The button is added to the group header now. But when I click on the button, the button click event is not fired. Its driving me too crazy as I've been into this problem since this morning.
Can you advise me on this?
Thanks in advance.
Sangeetha