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

ItemCommand on PreRender

3 Answers 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Craig Mellon
Top achievements
Rank 1
Craig Mellon asked on 24 Jan 2012, 02:16 PM
I have an ItemCommand for my grid which is "RowClick", which updates a group of labels via ajax when a row is clicked.

On the PreRender event of the grid I am selecting the first row on page load, how can I fire off the "RowClick" ItemCommand?

Thanks,

3 Answers, 1 is accepted

Sort by
0
Craig Mellon
Top achievements
Rank 1
answered on 24 Jan 2012, 06:08 PM
Anyone?
0
Accepted
Marin
Telerik team
answered on 25 Jan 2012, 09:48 AM
Hi Craig,

 You can try the following code on the server:

RadGrid1.Items[0].FireCommandEvent("commandName", "commandArgument");
This will fire a command for the first row in the grid.Regards,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Craig Mellon
Top achievements
Rank 1
answered on 25 Jan 2012, 10:18 AM
Perfect!

Thank you.
Tags
Grid
Asked by
Craig Mellon
Top achievements
Rank 1
Answers by
Craig Mellon
Top achievements
Rank 1
Marin
Telerik team
Share this question
or