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 am using webgrid 7.0 with the UseDefaultStyle set to true.
I would like to do the following:
1. Have column captions wrap if they are longer than the width of the column.
2. Be able to set the HeaderStyle.Height property but not lose the DefaultStyle on the headers.
Can you please inform on how I can do this?
Hi Mark,
I am really sorry but the following article only for WebGrid 6 and below. For WebGrid 7 we have enhance the feature so you can set the height or other style but still have the default style.
This is the code behind for InitializeLayout event:
protected void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e) { e.Layout.HeaderStyle.Height = 40; // You can change the height according to your scenario e.Layout.AllowDefaultStyleMerging = true; }
Hope this helps.
Best Regards,
Gordon Tumewu
For issue number 1, we have KB article regarding this feature, you can browse it in http://support.intersoftpt.com/KBArticle.aspx?aid=229.
For issue number 2, I am sorry but if you want to use our default style then you cannot change the header height.
If I want to do this on the server side i need to do this in the InitializeLayout event. I have tried the following but it does not seem to work.
e.Layout.RowHeightDefault = new Unit(-1, UnitType.Pixel); e.Layout.HeaderStyle.CssClass = "WG5-Header"; e.Layout.HeaderStyle.CustomRules = "height: auto";
Can you please inform me how I can do this on the server side?
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