RadAutoCompleteBox bug when changing UI Element Layout

3 posts, 0 answers
  1. David
    David avatar
    4 posts
    Member since:
    Jun 2014

    Posted 22 Aug 2014 Link to this post

    Hello,

    I found what appears to be a bug with the RadAutoCompleteBox for Winforms.  I have a very simple project with just a single form and one RadAutoCompleteBox on it.  No data source or anything.  Running the project works just fine...until you go into the RadAutoCompleteBox tasks and click on "Edit UI Elements".  Then, if you click on the first "TextBlockElement" in the left pane, then in the right pane go to the Layout section and change the "Alignment" to something other than the default, then try to run the project again the project won't even run.  You get the following error:






    I actually have a much more robust project that's used  by our plants around the world where I first noticed this error when trying to change the layout of the text in the control, but all you need to do to reproduce the error is create a simple windows forms application, add a RadAutoCompleteBox and complete the steps above.

    Regards,

    David Ayres

  2. David
    David avatar
    4 posts
    Member since:
    Jun 2014

    Posted 22 Aug 2014 in reply to David Link to this post

    Sorry, it looks like the screen shot didn't get put into the post, so I'll add it as an attachment.  The error says:

    "An error occurred creating the form. See Exception.InnerException for details.  The error is: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index"
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 26 Aug 2014 Link to this post

    Hi David,

    Thank you for writing.

    I managed to reproduce the described case and I can confirm it is an issue. I have logged it in our feedback portal. You can add your vote and subscribe for status updates here: http://feedback.telerik.com/Project/154/Feedback/Details/136451.

    Your Telerik Points have been updated for this report.

    TextBlockElements are dynamic elements in the control and changing properties of such elements at design time is not allowed. Most likely the element you change the Alignment to is a default element which gets removed when the control is started. Still, we will look into a way to prevent this exception.

    To modify TextBlockElements properrties, you can use the TextBlockFormatting event. More information is available here: http://www.telerik.com/help/winforms/editors-autocompletetextbox-formatting-blocks.html.

    I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

    Regards,
    Stefan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top