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

RadGrid and RadToolBar

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 09 Jun 2011, 12:22 PM
Hi,
I have a RadGrid within which I use an ItemTemplate to determine how the rows look. In the item template there is a RadToolBar, I want to have a javascript function for each of the buttons on the toolbar that does something with the ID of the current row (as contained in the ClientDataKeyNames for the grid.).

I'm getting to the function specified by OnClientButtonClicking but am then a little unsure how to get the ID of the row that was clicked.  Any pointers?

Regards,

Jon

1 Answer, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 09 Jun 2011, 01:22 PM
Figured it out.

In case anyone needs a similar thing add the ID of the row to an attribute of the radtoolbar when the grid's ItemCreated event is happening.  Then intercept the attribute from the javascript function...

Cheers.

Jon
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Share this question
or