RadTextBox MultiLine & IE8

2 posts, 0 answers
  1. Najid Hanif
    Najid Hanif avatar
    92 posts
    Member since:
    Jul 2011

    Posted 10 Dec 2013 Link to this post

    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);

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 10 Dec 2013 Link to this post

    Hi Najid Hanif,

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

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

  3. DevCraft R3 2016 release webinar banner
Back to Top