iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I was tring to display Multiple-Line in report header.
Something like Picture 1.
I put code like this: Headertext = "1 st line" & "<br/>" & "2nd line" "<br/>" "3rd line"
When user first display the report, it works fine -- like Picture 1.
But if they post it back, it will looks like Picture 2
And if do it again, it will looks like Picture 3.
I enclosed a simple sample of WebGrid that I created based on your description in your first message of this thread. The sample shows an unbound WebGrid where the Caption property is set in OnInitializeLayout server-side event.
An ASP.NET button is added into the sample page in order to test the page after postback.
I don’t need to set the value of UseDefaultStyle property to “False” in order to get the multiple-lines works on the column header. Could you please kindly test the attached sample file on your and let us know if you have different result ?
PS: you can try to use Developer Tools in IE 8 or Mozilla Firebug to get the definition of default style.
I was able to reproduce the issue on my local end.
Please give me more time to answer your question since I will have this issue forwarded to WebGrid development team for further investigation. I’ll get back to you as soon as I heard any news from the development team.
Thank you.
I just got news from WebGrid development team.
In the current version of WebGrid 7.0, the column header does not support templated cell yet. The data type of Headertext is string. You may use your code by inserting the <br /> markup tag on the Headertext. However, the result will not be perfect. The markup will be treated as literal text.
I’d like to offer a better approach for your specific scenario. This approach will requires you to obtain the element of the column header. Once the element is obtained, you can directly insert the <br/> markup tag and set the innerHtml property of the corresponding element.
Should you need to have the column header to support template cell, please kindly let us know. I will help you by propose this as feature request to WebGrid development team.
Thank you and have a nice day.
I found that, if I set
UseDefaultStyle="false" , HeaderWrapDefault="true"
and insert " " between the header. It will work.
Any thing wrong with the DefaultStyle?
BTW,
Where I can find the DefaultStyle definition?
Thanks!
David
I have tested your example and it works!
Thank you very much!
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname