Hi
We have a drop down combo control that highlights text as you type by setting the column style to
ColumnStyle.FormattedText
and putting this around the text that we want highlited
SPAN_START = @"<span style=""color:lightgreen;font-weight:bold;"">";
SPAN_END = "</span>";
The stand alone control works fine,
putting inside another controls works fine in our application works fine
but using in a control, on a control, on a control.... (about 5 levels deep) seems to stop it from working.
and the control just shows the actual (unformatted) span text as shown above.
Even at runtime when we set the column style, checking in the debugger shows it is set correclty.
In fact we've tested it at different levels deep and it breaks just at the level we want it.
A sample project would be impossible; you'd need our whole applciation.
So I'm asking for a clue as to what to look for or what could be overriding it.
On thing I can think of is that we are applying a style to the control, but again this works another level up,
in any case the style should only change appearance.
Hi,
The UltraCombo control's edit portion doesn't support formatted text, so I assume you are referring to a cell in the dropdown list on the UltraCombo?
If that's the case, I cannot see any reason why nesting the control should make any difference. My best guess is that you may be applying this formatted text string to the wrong control or the wrong cell. If you have a lot of nested levels, it might be easy to mix up the controls.
BTW... what actually displays in the cell? Is it showing the raw XML? Or does it show the text (">") with no formatting?
Oh... I just noticed that the text you are trying to display is a single Greater Than sign (">").
This probably has nothing to do with the nesting, it's just that the Greater Than sign is used to separate the XML tags. To place a Greater Than sign into a formatted text string, you have to replace it with an escape code:
>
You are right I meant the text in the drop down
Afraid that doesn't fix it, i did try but the unescaped text as in my original post works (and also it's suggeted here
http://community.infragistics.com/forums/t/51393.aspx)
It works standalone in a form, then on a the main form of our application, on a panel inside that, then on a user control within that and finally on a usercontrol within that it fails and shows the raw text.
The control is in its own dll so the formatting style is (in thoery) independent of where it lives. We did think the parent could be setting it somehow but the debugger proves otherwise and we'd have to go out of our way to make the parent control do something like that.
thanks
Michael
Hi Michael,
There's no reason I can think of why nesting the control inside any other container should have any effect on the control's ability to correctly display the formatted text.
If you can reproduce this in a sample application, I'd be happy to take a look. Beyond that, I'm out of ideas.