Hi all,
i have problem that my webgrid cell text doesnt get wrap in FireFox but it works with IE. plz help me. this is the code
Correction to my last post. You do not need to set the last column's width to 100%. By default the "ColWidthDefault" attribute is set to 100px (this was throwing me off). Simply removing this text "100px" from this attribute will allow your table to expand in width - as you have already done. You still need to remove the "FrameStyle" tag for wrapping to work in Firefox.
StyleSetName="Office2007Blue" Width="100%" > <Bands> <igtbl:UltraGridBand> <AddNewRow View="NotSet" Visible="NotSet"> </AddNewRow> <RowStyle Wrap="True" /> </igtbl:UltraGridBand> </Bands> <DisplayLayout AllowColumnMovingDefault="OnServer" ColWidthDefault="" GroupByColumnsHiddenDefault="No" HeaderClickActionDefault="SortSingle" IndentationDefault="20" Name="UltraWebGrid1" RowHeightDefault="20px" SelectTypeCellDefault="Single" SelectTypeColDefault="Single" SelectTypeRowDefault="Single" Version="3.00" ViewType="OutlookGroupBy" AllowSortingDefault="OnClient" GridLinesDefault="NotSet" RowSelectorsDefault="No" AllowColSizingDefault="Free" RowSizingDefault="Free" > <FilterOptionsDefault AllowRowFiltering="OnClient" FilterUIType="FilterRow"> </FilterOptionsDefault> <ActivationObject BorderColor="" BorderWidth=""> </ActivationObject> <RowStyleDefault Font-Names="Verdana" Font-Size="8pt" Wrap="True" > </RowStyleDefault> <FixedCellStyleDefault Wrap="True"> </FixedCellStyleDefault> <FrameStyle Width="100%"> </FrameStyle> </DisplayLayout> </igtbl:UltraWebGrid>
After many hours of tinkering I have found the solution...
First, remove the <FramStyle> tag all together. Reason: This tag creates an imbeded style on the outer table = "white-space:nowrap;". This causes the cells' contents to not break on white space in Firefox.
When you make this change your table will shrink in width causing an unatractive outcome. To fix this shrinkage, simply set the width of your last column to 100%. Not the best solution, but it works.
I'll post back if I find a better solution.
I see that no one has reply to this post. I am hoping that a moderator will give some update as to a possible solution. I have come accross this same issue in my evaluation of the webgrid. We may need to stick with asp.net gridveiw, since the possibility of not showing data in firefox is not an option for us.
Please help!
Thanks,Jeff