Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Performance of RapidSpellDialog - RapidSpell WPF - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
vinayt
#1 Posted : Monday, December 20, 2010 4:34:22 PM
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.
Jim
#2 Posted : Monday, December 20, 2010 9:05:14 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


vinayt
#3 Posted : Tuesday, December 21, 2010 12:02:42 PM
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
Jim
#4 Posted : Tuesday, December 21, 2010 1:41:55 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


Jim
#5 Posted : Wednesday, December 29, 2010 4:26:22 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.