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

RadAutoCompleteBox bug when changing UI Element Layout

2 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 22 Aug 2014, 01:48 PM
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 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 22 Aug 2014, 01:50 PM
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"
0
Stefan
Telerik team
answered on 26 Aug 2014, 08:37 AM
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.
 
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or