[SOLVED] BeforeDrawRow event markup escape chars |
Post Reply |
Author | |
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Posted: 06 February 2009 at 7:44am |
Hi,
How to handle & char in Markup string? It doesn't work with markup for grouped rows in BeforeDrawRow event...
Thanks
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
nighthawk
Senior Member Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
|
Did you try:
& I found that special characters in XAML have the same codes as in HTML. For example, < and > are specified by the html codes < and > respectively. |
|
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I am using V13.0.0 (just for testing) and I see that this is solved ??? Is this correct ???
If so, thank you very much
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Hey Aaron,
You should escape your plain-text before adding it to markup strings...I posted a function in the Xaml board a while ago that should do the trick: https://forum.codejock.com/forum_posts.asp?TID=10865 This function is only useful for escaping purely plain text that contains no markup/Xaml of it's own (since it will convert < and > characters to < and >) |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Jason,
Thanks for reply
With previous version I noticed that the Markup string didn't work in Grouped items, it showed the complete string and not as the Markup string should be... and only because of the "&" char. In V13.0.0 it shows the Markup as should. Does this mean that CJ covered this already? I would like that support would reply on this, so I know that I don't need to do anything (at least for RC).
Question though: the characters in the function are the only characters you need to replace for Markup?
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Hi Aaron,
Those should be the only common characters that need escaping...what I'm not sure about is: 1) Whitespace/Unprintable characters (tab, CHR$(0) through CHR$(31), CHR$(127)) 2) Extended ASCII characters (CHR$(128) through CHR$(255)) 3) Unicode characters Perhaps I'll run some tests...You mention that only the & character was breaking the XAML validation..what happens if you add markup to your column next (e.g. Nood <Bold>Alarm</Bold>)...does the group row text interpret the XAML as XAML tags, or does it show the tag string as text? |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Jason,
I'm sorry, I didn't read your reply so well and didn't know you ask me something.
If I set col.Caption with & character inside a string, markup will breakup also. So I replaced & character with & and it will work as should
Thanks
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |