RadTextBoxElement.Multiline

6 posts, 0 answers
  1. Michael
    Michael avatar
    33 posts
    Member since:
    Mar 2009

    Posted 23 Apr 2009 Link to this post

    Hello -

    I have a very sophisticated RadElement hierarchy that contains RadTextBoxElements at the leaves.  So far, I've only needed single line text boxes, but I now need to begin supporting multi-line text boxes.  I see that RadTextBox has a Multiline property, but I don't see such a property on RadTextBoxElement even though I do see the MultilineChanged event.  I'm hoping there is some way (even if through a backdoor) to make a RadTextBoxElement do multi-line text editing.

    Thanks,
    - Mike
  2. Mike
    Admin
    Mike avatar
    640 posts

    Posted 24 Apr 2009 Link to this post

    Hi Michael,

    It would be:

    textBoxElementInstance.TextBoxItem.Multiline property

    Actually most of  RadTextBox control APIs are simply exposing the properties and events of RadTextBoxItem.

    Sincerely yours,
    Mike
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Michael
    Michael avatar
    33 posts
    Member since:
    Mar 2009

    Posted 24 Apr 2009 Link to this post

    Mike -

    I'm very glad to hear this.  Initially, the multiline control did not size to the text, but then I realized that StretchVertically is set to false by default.  Now my problem is that the text doesn't show up.  I set the Text to a multi-line string, and I can see the value in the debugger, but the multi-line RadTextElement is blank.  Is there some other field that I should be setting for multi-line?  I'm using essentially the same code for both multi-line and single line, and text shows up in the single line, but the multi-line is blank.

    Thanks,
    - Mike
  5. Mike
    Admin
    Mike avatar
    640 posts

    Posted 27 Apr 2009 Link to this post

    Hello Michael,

    The behavior you are describing is not desired. I am not entirely sure I understood the case correctly, and you can help us a lot if you send some code to reproduce this issue. Thank you.

    Sincerely yours,
    Mike
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Michael
    Michael avatar
    33 posts
    Member since:
    Mar 2009

    Posted 11 May 2009 Link to this post

    Mike -

    At this point, the only quick way for me to supply the code that reproduces it would be to send you our entire code base, which I would prefer not to do on a public forum.  If it would help with my most recent request on the support ticket entitled "Stacking controls efficiently" posted May 11 at 8:20AM, I would be willing to spend time isolating the issue and sending a code sample.  However, I'm guessing that our extreme usage of TPF is likely part of the problem.

    - Mike
  7. Mike
    Admin
    Mike avatar
    640 posts

    Posted 12 May 2009 Link to this post

    Ok Michael,

    Thank you for the kind offer, but since this problem is no longer applicable to your app, I assume, you do not need to sped more time on it. I will however add an entry in our todo list for our QAs to handle and assure this feature works as expected.

    Regards,
    Mike
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for WinForms is Visual Studio 2017 Ready