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

Using RadToolBar outside of RadGrid

4 Answers 86 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Chad Johnson
Top achievements
Rank 1
Chad Johnson asked on 29 Sep 2008, 07:04 PM
Greetings,

Currently, I'm working on a project where we had a RadToolBar within a RadGrid.  A decision was made to take the Toolbar back out of the Grids and place them on top of the grid instead of inside of them.  Doing that is easy, but this makes things a bit complicated for working on adding/editing/deleting items within the grid.

My question is, is there a way to access the ItemCommand within the grid still with the toolbar?  The commandnames are the same in my toolbar, but getting them to the grid is a difficult task for me thus far.  If anyone has any help, I'd be most appreciative.

Thanks.

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 30 Sep 2008, 10:40 AM
Hello Chad Johnson,

You should programmatically fire the command events. Please check this help topic which explains how to do this. Your code should be executed in the ButtonClick event of the toolbar.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chad Johnson
Top achievements
Rank 1
answered on 01 Oct 2008, 12:36 PM
Thank you for your help.  Luckily, our project manager decided to place the toolbar back within the grid due that another project was having the same difficulties, so we decided to place it back within the grid.  Thank you for your help once more.
0
Priya
Top achievements
Rank 1
answered on 27 Feb 2009, 08:23 AM
Sir,

I have the same requirement..I mean i hav a toolbar which is placed outside of the radgrid..i hav to perform all the operation on grid using this toolbar ie,insert,delete print etc..
In short that toolbar should act like commandtemplate buttons inside the radgrid

Plz help me....
Thanks in advance
0
Veselin Vasilev
Telerik team
answered on 27 Feb 2009, 10:32 AM
Hello Priya,

Have you tried Albert's suggestion?

Regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolBar
Asked by
Chad Johnson
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Chad Johnson
Top achievements
Rank 1
Priya
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or