View previous topic :: View next topic |
Author |
Message |
bhofmann
Joined: 20 Aug 2007 Posts: 26
|
Posted: Mon Jul 05, 2010 3:55 pm Post subject: CellEditor and Rtf |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Jul 05, 2010 11:34 pm Post subject: |
|
|
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 |
|
|
bhofmann
Joined: 20 Aug 2007 Posts: 26
|
Posted: Tue Jul 06, 2010 7:34 am Post subject: |
|
|
Ok great, thank you. |
|
Back to top |
|
|
|