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 ,
I have one problem with with Web grid lay out settings. My web grid width is not fit to all columns . There is some empty spaced column which i do not need. How to get rid of that empty column space in the web grid and make all column exactly to width of the grid.
Thanks in advance
Runfast...
Hi RunFast,
We do have a property that will allow one particular column to have an auto width, using IsAutoWidth = true. However, when we use that property, we will need to set the AutoFitColumns to true as well. Here is the snippet:
<LayoutSettings AutoFitColumns="true">
And this is needed in that one particular column:
<ISWebGrid:WebGridColumn Caption="Address" DataMember="Address" Name="Address" Width="100px" IsAutoWidth="true"> </ISWebGrid:WebGridColumn>
Furthermore, if you are willing to have all the column to have a best fit columns, you will need to set them in window on load function and set the column to best fit one by one. Here is the snippet:
function window::onload(){ var WebGrid = ISGetObject("WebGrid1"); for(var i = 0 ; i< WebGrid.GetRootTable().Columns.length;i++){ WebGrid.GetRootTable().Columns[i].ResizeBestFit(); } }
I hope it helps. Thank you and have a nice day.
Best Regards,
Andi Santoso
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