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

[Solved] Bind Radtexbox to Linq

1 Answer 102 Views
Input
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 27 May 2008, 07:36 PM
Hi is it possible to do this:

Have a number of radtexboxes on a webpage declared something like this:

<telerik:RadTextBox Text='<%# ???  %>' ID="RadTextBox1" runat="server">

And then on an event [a button click for example] using Linq grab a row from my table and have it automatically populate all of the radtexboxes without having to do this a whole bunch of times:

radTextbox1.Text = MyTable.Column1
radTextbox2.Text = MyTable.Column2

and so on...

I guess I'm just asking is there a way to bind radtextboxes to a linq datasource and if so how.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 29 May 2008, 08:34 AM
Hello John,

Have you tried the usual data binding through the Bind expression:

 <telerik:RadTextBox 
     ID="nameTextBox" 
     Runat="server" 
     Skin="Web20" 
     width="80px" 
     Text='<%# Bind("Name")%>' > 
 </telerik:RadTextBox> 

You will find a sample demo available here:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Input/Examples/Common/DataGrid/DefaultVB.aspx


All the best,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Input
Asked by
John
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or