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

Composite : RadGrid and RadToolbar

2 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jaime
Top achievements
Rank 1
Jaime asked on 22 Aug 2008, 05:08 PM
Good day telerik team, I am using the latest version of the Prometheus suite and this is my problem:

I have inherited the RadGrid control, this inherited control has a RadToolbar which is added on top of the grid headers.
So far so good, now I have also implemented some buttons for the toolbar, basically those buttons execute actions as enable/disable and others, the problem that I have is that to be able to execute their actions those buttons are firing up the ItemCommand event of the grid and this is causing that the full grid reloads everytime (I am using an RadAjaxManager on the pages to convert the regular calls in ajax calls), so I was wondering if there is a way to make those calls be intercepted by the RadAjaxManager and execute an event of my custom button rather than the ItemCommand of grid and avoid loading the whole grid.

Something like this:

http://www.telerik.com/demos/aspnet/Grid/Examples/AJAX/OutOfGrid/DefaultCS.aspx

But I dont want to update the grid at all (retrive and updating the grid), I just want to make a simple ajax call, and in the server execute a custom action, there is no need to re-paint the grid again.

I hope that my thoughts were being expressed correctly, and sorry for my bad english :D

Cheers.

2 Answers, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 25 Aug 2008, 03:06 PM
Hello Jaime,

You may consider ajaxifying merely the buttons fom the RadToolBar instance (making the toolbar initiator and updated control through the RadAjaxManager settings) and perform invoking the ajaxRequest or ajaxRequestWithTarget client methods of the manager. Then you can intercept the AjaxRequest server event and execute your own logic there.

To call the client method of your choice, subscribe to the OnClientButtonClicked event of the toolbar control.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jaime
Top achievements
Rank 1
answered on 25 Aug 2008, 04:58 PM
Thanks for the answer and keep the great work.
The best support team ever.
Cheers.
Tags
Grid
Asked by
Jaime
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Jaime
Top achievements
Rank 1
Share this question
or