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

Passing parameter to telerik grid selectmethod

1 Answer 155 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 26 Nov 2012, 05:32 PM
HI,

I added a telerik radgrid in my aspx page. I specifed the SelectedMethod and the Typename, which is a business class other than the web UI class. I got the UI working but I need to pass a parameter from the web ui class to the business class. the aspx will get the parameter from the url and store it in a string. When the telerik invokes the SelectMethod, which is in another business class, what is the best practive method to pass the parameter to the SelectMethod, which gets invoke automatically?

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 29 Nov 2012, 01:58 PM
Hi John,

I am not sure that I fully understand your case. Do you want to pass a parameter from one control and based on that parameter make changes in the grid as in this demo? Another scenario is where you will want to extract a certain value from a clicked row in the grid(some id for instance) and pass it to the SelectedMethod as show in this demo? Please explain more thoroughly so we could give you a precise solution.

All the best,
Angel Petrov
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.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or