Hello,
I am trying to load data into a multiline textbox from a dataset. The RadTextBox shows only the first line of text. The same code using an ASP TextBos works fine. Any tips?
ASPX:
<telerik:RadTextBox ID="tb1" runat="server" Enabled="true" TextMode="MultiLine" Rows="4" Wrap="true" Width="100%" Columns="100"></telerik:RadTextBox>
<asp:TextBox ID="tb2" runat="server" Enabled="true" TextMode="MultiLine" Rows="4" Wrap="true" Width="100%" Columns="100"></asp:TextBox>
Code Behind:
tb1.Text =
"";
foreach (DataRow dr in ds.Tables[0].Rows)
{
if (tb1.Text == "")
tb1.Text = dr[
"Title"].ToString();
else
tb1.Text += Environment.NewLine + dr["Title"].ToString();
}
tb2.Text =
"";
foreach (DataRow dr in ds.Tables[0].Rows)
{
if (tb2.Text == "")
tb2.Text = dr[
"Title"].ToString();
else
tb2.Text +=
Environment.NewLine + dr["Title"].ToString();
}
Thanks!