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

RadTextBox MultiLine & IE8

1 Answer 16 Views
Input
This is a migrated thread and some comments may be shown as answers.
Najid Hanif
Top achievements
Rank 2
Najid Hanif asked on 11 Dec 2013, 04:39 AM
After upgrading to 2013 Q3 to 2013 Q3 SP1 , something is off with RadTextBox & MultiLine. Code that was working to split the multi lines into an array no longer works and I have to use a standard ASP TextBox. See code as follows.

<asp:TextBox id="AddhocBatchDates2" TextMode="multiline" runat="server" width="100px" Height="400px"/>
<%--<telerik:RadTextBox ID="AddhocBatchDates" Runat="server" width="100px" TextMode="MultiLine" Height="400px"> </telerik:RadTextBox>--%>
//string BatchDates = AddhocBatchDates.Text;
string BatchDates = AddhocBatchDates2.Text;
 
//None of these work on the telerik control, They all work on the standard asp control
//string[] AllBatchDates = BatchDates.Split('\n');
//string[] AllBatchDates = BatchDates.Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
string[] AllBatchDates = BatchDates.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.None);

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 11 Dec 2013, 05:17 AM
Hi Najid Hanif,

Please have a look into the following code snippet which works fine at my end.

C#:
protected void RadButton1_Click(object sender, EventArgs e)
{
    string value = AddhocBatchDates.Text;
    string[] Data = Regex.Split(value, "\r\n");
}

Thanks,
Princy.
Tags
Input
Asked by
Najid Hanif
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 1
Share this question
or