Bernd Wachter
Top achievements
Rank 1
Bernd Wachter
asked on 06 Nov 2009, 08:11 AM
Hello ,
I have a RadGrid in my Projekt and fill it with LINQtoSQL
Programmaticliy..
I have Insert a Button Field by Hand in my Grid with a Select Command
I will when i click on the Select Button Redirect to another Page and Send
him the ID number of the Selected Row in a Query String ???
The ID Number comes from the Database and is a Unique Field INT
How come i to the ID Value from my ID Cell in my Grid where i actual Selected??
My Programming Language is only VB.NET not C#
Thanks for Help
I have a RadGrid in my Projekt and fill it with LINQtoSQL
Programmaticliy..
I have Insert a Button Field by Hand in my Grid with a Select Command
I will when i click on the Select Button Redirect to another Page and Send
him the ID number of the Selected Row in a Query String ???
The ID Number comes from the Database and is a Unique Field INT
How come i to the ID Value from my ID Cell in my Grid where i actual Selected??
My Programming Language is only VB.NET not C#
Thanks for Help
4 Answers, 1 is accepted
0
Accepted
Princy
Top achievements
Rank 2
answered on 06 Nov 2009, 08:37 AM
Hello Brend,
You could make use of the GridHyperLinkColumn to get the required functionality done:
aspx:
You can also refer to the following document to gather more information on the various column types supported by RadGrid:
Column types
Thanks
Princy.
You could make use of the GridHyperLinkColumn to get the required functionality done:
aspx:
| <telerik:GridHyperLinkColumn DataNavigateUrlFormatString="Default2.aspx?ID={0}" |
| Text="Select" DataNavigateUrlFields="ID" UniqueName="HypCol" HeaderText="HypCol"> |
| </telerik:GridHyperLinkColumn> |
You can also refer to the following document to gather more information on the various column types supported by RadGrid:
Column types
Thanks
Princy.
0
Bernd Wachter
Top achievements
Rank 1
answered on 06 Nov 2009, 08:44 AM
Hi Princy,
Yes Cool it works perfect !!
Thanks
Yes Cool it works perfect !!
Thanks
0
Bernd Wachter
Top achievements
Rank 1
answered on 09 Nov 2009, 01:20 PM
Hi ,
I have a Problem with this Answer !!
When i use this i Redirect to another Page and can give a Parameter to the other Site
OK my Problem is this.
I must have a Select Link or Button in my Grid where the User can click and select a Row
When the User click select on a Row he must make a Booking ....
OK the User click select a row ! then i must call a Sub in my Codebehind File !!!
And in the Codebehind i must have the Selected "ID" of the selected Row
and then i must diverse Things like this
I must Set a Session Variables with the "ID" where the User has selected in the Grid
And i must fill other Sessions in this Sub .....
and then Redirect to another Site
OK
How can i Insert a Select Button in my Grid an on click i must call a VB Sub
and in this Sub i must become the ID of the Selected Row ?????
does i can Set my Session in Codebehind with the ID of the ROW ????
I have a Problem with this Answer !!
When i use this i Redirect to another Page and can give a Parameter to the other Site
OK my Problem is this.
I must have a Select Link or Button in my Grid where the User can click and select a Row
When the User click select on a Row he must make a Booking ....
OK the User click select a row ! then i must call a Sub in my Codebehind File !!!
And in the Codebehind i must have the Selected "ID" of the selected Row
and then i must diverse Things like this
I must Set a Session Variables with the "ID" where the User has selected in the Grid
And i must fill other Sessions in this Sub .....
and then Redirect to another Site
OK
How can i Insert a Select Button in my Grid an on click i must call a VB Sub
and in this Sub i must become the ID of the Selected Row ?????
does i can Set my Session in Codebehind with the ID of the ROW ????
0
Hello Bernd,
How to utilize the event bubbling mechanism of RadGrid to select rows, retrieve key field values from them and perform your custom actions you can see from the sample in this documentation topic:
http://www.telerik.com/help/aspnet-ajax/grdretrieveprimarykeyfieldvaluesforitems.html
Feel free to adopt/extend the solution for your particular scenario.
Best regards,
Sebastian
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
How to utilize the event bubbling mechanism of RadGrid to select rows, retrieve key field values from them and perform your custom actions you can see from the sample in this documentation topic:
http://www.telerik.com/help/aspnet-ajax/grdretrieveprimarykeyfieldvaluesforitems.html
Feel free to adopt/extend the solution for your particular scenario.
Best regards,
Sebastian
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.