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
Hi,
Some of our webgrid pages have large number of columns say more than 25. To show columns properly we made AutoFitColumns="false" ; so horizontal scroll bar appear and columns headers are readable now. Still for columns having large text say more than 35 charcters; text were not readable without resizing the column. Most of columns of such grids require resize.
We tried to use webgrid's inbuilt functionality "Best Fit" for all columns. We do it by below function which is based upon http://developer.intersoftsolutions.com/display/WebUI/Set+the+Column's+Best+Fit
$(document).ready(function () { var grid = ISGetObject('WebGrid1'); for (i = 0; i < grid.RootTable.Columns.length; i++) { (grid.RootTable.Columns.GetNamedItem(grid.RootTable.Columns[i].Name)).ResizeBestFit(); } });
It makes those page 3-4 times slower and reason behind it that it is done after document is ready.
Is it any efficient way exist which can help us to meet the goal without making page slower?
thanks and regards
Sachin
You might want to try the multi-line column header approach. Please set following properties:
By doing so, you can have multi-line column header such as shown in the following:
Please let me know if this suits your scenario.Note: simple sample is enclosed as attachment.
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