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,
How can I wrap the text in a column.
I tried this
grd.RootTable.RowHeightDefault = Unit.Pixel(-1)
it works in normal grid.but it doesn't work in Self Reference Grid .
is it a bug?
thanks
Melbin
Thank you very much for the finding. It really helps.
By default, the cell content of WebGrid is placed inside the <nobr> tag. Thus, causing the cell content becomes not wrapping. On WebGridColumn where its AllowMultiLine feature is enabled, the cell content of WebGrid is placed inside the <td> tag.
Unfortunately, WebGrid will also add the <nobr> tag on column which defined in ExpandColumnMember in SelfReferenceSettings.
I have forwarded this to WebGrid development team for further investigation. I will let you know whether this is the default behavior of WebGrid or issue.
Edited.Reason:add latest news heard from WebGrid development team.
I just got news from WebGrid development team that this is the default behavior or WebGrid. The ExpandColumnMember column is not suppose to be wrapped.
Hope this helps.
I made a minor modification on SelfReferencingGrid.aspx sample file of WebGridSamples project. Below are the detail changes.
<ISWebGrid:WebGrid ID="WebGrid1" runat="server" ...> <RootTable DataKeyField="EmployeeID"> ... <Columns> ... <ISWebGrid:WebGridColumn Caption="Notes" DataMember="Notes" Name="Notes" Width="100px" AllowMultiLine="true"> </ISWebGrid:WebGridColumn> ... </Columns> </RootTable> </ISWebGrid:WebGrid>
<ISWebGrid:WebGrid ID="WebGrid1" runat="server" ...> <LayoutSettings RowHeightDefault="-1"></LayoutSettings> <RootTable DataKeyField="EmployeeID"> ... <Columns> ... <ISWebGrid:WebGridColumn Caption="Notes" DataMember="Notes" Name="Notes" Width="100px" AllowMultiLine="true"> </ISWebGrid:WebGridColumn> ... </Columns> </RootTable> </ISWebGrid:WebGrid>
And the result is shown as follow:
I’m using WebGrid 7.0 (build 406) and WebUI.NET Framework 3.0 (build 757). My browser is IE 8 with IE 8 Standards mode.
Please let us know if you have different scenario or different result.
It's not working for me in self reference grids
my version of ISNet.WebUI.WebGrid.dll is 6.0.7200.215.
was this implemented recenlty in the product?
So found what is happening.the text is wraping for all fields but not for the ExpandColumnMemeber column (eg:"title" ).
any way to wrap this column?this is a critical issue for us.
Arun
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