|
Rank: Member
Groups: Registered
Joined: 12/20/2010 Posts: 2
|
Hi ,
I was wondering if there is any relation between the number of textbox's added to it trough AddTextComponent Method. I observed a huge difference in performance with the change in the number. The dialog was slow when there was more texboxes to it. I have dynamic control which adds controls to UI and to RapidSpellDialog based on configuration. I add all the controls to one RapidSpellDialog. Is this a good approch or should I follow a different strategy.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Hi, we aren't aware of such a thing, but I'll investigate it properly as soon as possible. Are your text boxes mostly RichTextBoxes (these will take longer to process)? There may be some optimization that we need to do. Thanks Jim -your feedback is helpful to other users, thank you!Evaluation Downloads - http://keyoti.com/products-your feedback is helpful to other users, thank you!
|
|
Rank: Member
Groups: Registered
Joined: 12/20/2010 Posts: 2
|
Hi Jim,
Textbox's in my code are not RichTextBoxes but they are multi line Textbox's. Thanks for the reply.
Vinay
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
OK - thanks Vinay, due to the holiday period we're running a bit slower, so it'll take a few days before I can get back to you on this, possibly this week but definitely the next. Jim -your feedback is helpful to other users, thank you!Evaluation Downloads - http://keyoti.com/products-your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Vinay, how many text boxes do you have? I tried with 2000 and it was instant, eg. Code: InitializeComponent(); for (int i = 0; i < 2000; i++) { TextBox tb = new TextBox(); tb.Height = 20; RowDefinition rd = new RowDefinition(); rd.Height = new GridLength(20, GridUnitType.Pixel); mygrid.RowDefinitions.Add(rd); tb.SetValue(Grid.RowProperty, i+1); mygrid.Children.Add(tb); rapidSpellDialog1.AddTextComponent(tb); tb.Text = "blah and textt test and thien was"; }
Perhaps you could share your code showing how you're doing things please? By the way, you might also want to try setting rapidSpellDialog1.AlwaysShowDialog=true as this will eliminate the precheck, where the spell checker looks to see if any text boxes have errors before opening the dialog. Best Jim -your feedback is helpful to other users, thank you!Evaluation Downloads - http://keyoti.com/products-your feedback is helpful to other users, thank you!
|
|