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 am currently trying to set individual grid column widths to specific percentage using the following code:
grid.Columns.GetNamedItem("Title").Width = Unit.Percentage(75);
When i use this on any of the webgridcolumns it just hides the column from the layout, However if i manually go into the webgridlayout xml and add in the percentage values directly to the xml it works. How can i do this in code?
Attached is the code we are using to test the scenario. In our testing environment, we already use the latest WebGrid and WebUI Framework.
In my environment, setting the column width during PrepareDataBinding server side event will set the height correctly. However, percentange width currently only works in IE browser. For non-IE browser you should set AutoFitColumns property to true under Layout Settings.
Thanks for your response, however in my environment which is modifying the column's percentage value during PrepareDataBinding and viewing within IE 8, the column of the modified width value just gets dropped off the grid when rendered.
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