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

Embedded MoveUp/MoveDown CommandName?

3 Answers 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sugar
Top achievements
Rank 1
Sugar asked on 15 Jun 2011, 06:11 PM
Hi,

Is there a specific 'CommandName' that will reference the MoveUp.gif and MoveDown.gif graphics/functions for say the Vista skin for RadGrids?

I don't see anything @ http://www.telerik.com/help/aspnet-ajax/grid-command-reference.html

Thanks!

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 21 Jun 2011, 08:59 AM
Hi,

I am not sure what exactly do you mean? What grid functions do you have in mind? Could you provide a more detailed description on what you are trying to achieve or a screenshot? Generally, even if what you are trying to achieve does not have its own command name, you could fire a custom command and handle it manually in the server ItemCommand event of the grid.

All the best,
Tsvetina
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
Sugar
Top achievements
Rank 1
answered on 21 Jun 2011, 02:56 PM
Thanks,

I was looking for a quick server side way to 'Swap' rows. I assumed there would be something like an 'OnUpCommand' to wire into based off the graphics but that doesn't look like the case.

I've gone ahead and attached to my custom command name in ItemCommand.

However if you have a quick way to get the ID of the sending row that would be great!
0
Tsvetina
Telerik team
answered on 24 Jun 2011, 08:36 AM
Hello,

Indeed your approach is the correct one in this case, since there is no such command in RadGrid.

As for accessing the row that fired the command, this can be done if you are using the client fireCommand() event to fire the custom command and pass the item index as an argument, which you could then use in the server ItemCommand event to access the row by index.

fireCommand

All the best,
Tsvetina
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.

Tags
Grid
Asked by
Sugar
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Sugar
Top achievements
Rank 1
Share this question
or