Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CellEditor and Rtf

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Feature Requests
View previous topic :: View next topic  
Author Message
bhofmann



Joined: 20 Aug 2007
Posts: 26

PostPosted: Mon Jul 05, 2010 3:55 pm    Post subject: CellEditor and Rtf Reply with quote

Hello,

I have a column with renders some text in Rtf, and that the user should be able to edit in a textbox. However currently when the editor shows up, it is filled with Rtf, instead of the non formatted string.
I couldn't find a way to handle this case, would it be possible to maybe add a "EditorValue" field to the CellData, or an "on demand" callback to be able to provide a different value?

Thanks in advance.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Jul 05, 2010 11:34 pm    Post subject: Reply with quote

Normally to display something using RTF formatting you would set the CellData.Format property to contain the RTF and CellData.Value would contain the original (unformatted) data value (text in this case).

The tree calls CellData.GetText to get the formatted text to display for a cell. This uses the CellData.Format string to format the CellData.Value. The CellData.Format string can contain a placeholder ({0}) for the CellData.Value - but doesn't have to.

When you edit the cell the editor is passed the CellData.Value (not the formatted text).
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
bhofmann



Joined: 20 Aug 2007
Posts: 26

PostPosted: Tue Jul 06, 2010 7:34 am    Post subject: Reply with quote

Ok great, thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Feature Requests All times are GMT
Page 1 of 1

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


Powered by phpBB © 2001, 2005 phpBB Group