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
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.
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.