We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Regd---Performance Problem

Thread ID:

Created:

Updated:

Platform:

Replies:

35207 Sep 26,2005 12:10 PM Sep 27,2005 02:01 AM Windows Forms 2
loading
Tags: GridControl
manohar
Asked On September 26, 2005 12:10 PM

Hi, I am using GriddataboundGrid and celltype of one cell is Richtext.I got 150 records with almost 4 lines each row.I have got another cell called Unit which has got some string values like head1,head2,head3,etc.Each string value is assigned a setting(fontcolor,fontsize,etc).Once i say head1,the appropriate setting will be appled to richtextbox.so to change from one setting to another it is taking 12 seconds.Its a bit urgent,kindly provide some solution for this. Thanks in advance, Cheers, Manohar.

Administrator [Syncfusion]
Replied On September 26, 2005 03:36 PM

How are you formatting the richtext? Are you manipulating the rtf string directly to do it, or are you trying to apply formatting using the RichTextBox? If you do what you are doing outside of the grid, does it take the same amount of time? You can try calling grid.BeginUpdate before you try changing the formatting and then call grid.EndUpdate after you have finished to see if that affects things. You can also try calling grid.Binder.SuspendBinding and grid.Binder.ResumeBinding to see if that would affect this. If you can upload a sample project showing the problem, then we can try to suggest something.

manohar
Replied On September 27, 2005 02:01 AM

Hi Clay, Actually I am using RichTextbox for manipulating that settings.Even after placing this.grdData.Binder.SuspendBinding(),this.grdData.Binder.ResumeBinding() also it didn''t help.still it is taking the same time.Pls have a look at this code snippet.I am description text to this function,this will return me the formatted text.Any other solution. protected string GetFormattedDescription(string descriptionText, GesStyleEntity style) { if(Syncfusion.Drawing.RichTextPaint.IsValidRtf(descriptionText)) rtfHidden.Rtf = descriptionText; else rtfHidden.Text = descriptionText; rtfHidden.SelectAll(); rtfHidden.SelectionFont = style.StyleFont; rtfHidden.SelectionColor = style.ForeColor; return rtfHidden.Rtf; }

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;