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

At which event, the CommandItem (export to excel button) is created and added to the MasterTableView?

4 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pooya
Top achievements
Rank 1
Pooya asked on 28 Jul 2011, 02:07 PM
At RadGrid.ItemCreated() event, that button is already created.

At which event, the CommandItem (export to excel button) is created and added to the MasterTableView?

I'd need to add a custom button to the CommandItem.

Thanks,


4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 02 Aug 2011, 09:55 PM
Hello Pooya,

I would recommend that you use the ItemCreated event if you need to add custom buttons to the command item.
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridCommandItem)
    {
        ...
    }
}

Kind regards,
Daniel
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
Pooya
Top achievements
Rank 1
answered on 03 Aug 2011, 02:17 PM
thanks but at the RadGrid_Load was the correct event apparently.
0
Pooya
Top achievements
Rank 1
answered on 18 Aug 2011, 04:36 PM
Sorting and paging makes the Pdf Export custom button to disappear.

I re-added the control in ItemCreated() event but in which case the click event is never raised.

That's really hard to work with; touching any area breaks another area :(
0
Daniel
Telerik team
answered on 21 Aug 2011, 12:07 PM
Hello Pooya,

This means the control is not created/added properly. Please post your code here and I will try to find out what is wrong.

Regards,
Daniel
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Pooya
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Pooya
Top achievements
Rank 1
Share this question
or