Using RadToolBar outside of RadGrid

5 posts, 0 answers
  1. Chad Johnson
    Chad Johnson avatar
    54 posts
    Member since:
    Sep 2012

    Posted 29 Sep 2008 Link to this post

    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.
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 30 Sep 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chad Johnson
    Chad Johnson avatar
    54 posts
    Member since:
    Sep 2012

    Posted 01 Oct 2008 Link to this post

    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.
  5. Priya
    Priya avatar
    144 posts
    Member since:
    Jul 2008

    Posted 27 Feb 2009 Link to this post

    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
  6. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 27 Feb 2009 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017