ISGrid Row'sHeight Adaptive

8 replies. Last post: January 2, 2012 11:12 PM by Handy Surya
Tags :
  • (None)
xu guochunMember

Hello ,

  I found IN IE8 ,Row's Height can't Adaptive,but in FireFox is fine.Anyone can help me to solve this problem ?

2 attachments

All Replies

Hello,

What property that you set? I am able to set RowHeight by using RowHeightDefault property. 

Regards,
Handy

 set RowHeight by using RowHeightDefault property is ok,How to make  RowHeight  adaptive?

Hello,

What property that you set? I am able to set RowHeight by using RowHeightDefault property. 

Regards,
Handy

My LayoutSettings:

<LayoutSettings AllowSorting="Yes" AllowSelectColumns="Yes" AlwaysShowHelpButton="false"
                        AllowMultipleSelection="No" AllowColumnFreezing="No" StatusBarVisible="true"
                        AutoHeight="true" AutoWidth="false" AutoFitColumns="true" AllowGrouping="No"
                        PagingMode="ClassicPaging" PagingLoadMode="Custom" PagingSize="15" PagingDataRetrievalMode="ReturnPartialRows"> 

Hello,

What is the font size for "1111" red font? I also need your current Row Height size. You current layout does not help me at all to see your current issue. Have you also set vertical allignement middle for that cell/row?

Regards,
Handy
Hello,

What is the font size for "1111" red font? I also need your current Row Height size. You current layout does not help me at all to see your current issue. Have you also set vertical allignement middle for that cell/row?

Regards,
Handy

<ISWebGrid:WebGrid ID="WG1" runat="server" UseDefaultStyle="True" DefaultStyleMode="Win7"
                    BindingOperationMode="ServerBinding" DataSourceID="IDS1">
                    <RootTable GridLineStyle="NotSet" DataKeyField="MessageGuid">
                        <Columns>
                            <ISWebGrid:WebGridColumn AllowGrouping="No" AllowSorting="No" Bound="False" ColumnType="CheckBox"
                                EditType="Checkbox" IsRowChecker="True" Name="colChk" ShowInSelectColumns="No"
                                Width="25px" IsAutoWidth="false">
                                <CellStyle HorizontalAlign="Center">
                                </CellStyle>
                            </ISWebGrid:WebGridColumn>
                            <ISWebGrid:WebGridColumn Name="Content" Caption="信息内容" ColumnType="Template" Width="300px" IsAutoWidth="false"
                                EditType="NoEdit">
                                <CellTemplate>
                                    <%#DataBinder.Eval(Container, "DataItem.Content")%>
                                </CellTemplate>
                            </ISWebGrid:WebGridColumn>
                            <ISWebGrid:WebGridColumn Caption="发送时间" ColumnType="Text" DataMember="SendTime" Name="SendTime"
                                Width="120px" IsAutoWidth="false" EditType="NoEdit" DataType="System.DateTime"
                                DataFormatString="yyyy-MM-dd HH:mm">
                            </ISWebGrid:WebGridColumn>
                            <ISWebGrid:WebGridColumn Name="FromUserDisplayName" Caption="发送者" ColumnType="Template" Width="80px" IsAutoWidth="false"
                                EditType="NoEdit">
                                <CellTemplate>
                                    <%#GetSendUserContent(DataBinder.Eval(Container, "DataItem.FromUserDisplayName"),DataBinder.Eval(Container, "DataItem.FROMUSERGUID"))%>
                                </CellTemplate>
                            </ISWebGrid:WebGridColumn>
                            <ISWebGrid:WebGridColumn Name="ToUserDisplayName" Caption="接收者" ColumnType="Template" Width="80px" IsAutoWidth="false"
                                EditType="NoEdit">
                                <CellTemplate>
                                    <%#GetReceiveUserContent(DataBinder.Eval(Container, "DataItem.ToUserDisplayName"), DataBinder.Eval(Container, "DataItem.TOUSERGUID"))%>
                                </CellTemplate>
                            </ISWebGrid:WebGridColumn>
                            <ISWebGrid:WebGridColumn Name="IsRead" Caption="已读取" ColumnType="Template" Width="50px" IsAutoWidth="false"
                                EditType="NoEdit">
                                <CellStyle HorizontalAlign="Center"></CellStyle>
                                <CellTemplate>
                                    <%#getSignInfoLink(DataBinder.Eval(Container.DataItem, "ToUserGuid"), DataBinder.Eval(Container.DataItem, "OrgReadTime"))%>
                                </CellTemplate>
                            </ISWebGrid:WebGridColumn>
                        </Columns>
                    </RootTable>
                    <LayoutSettings AllowSorting="Yes" AllowSelectColumns="Yes" AlwaysShowHelpButton="false"
                        AllowMultipleSelection="No" AllowColumnFreezing="No" StatusBarVisible="true"
                        AutoHeight="true" AutoWidth="false" AutoFitColumns="true" AllowGrouping="No"
                        PagingMode="ClassicPaging" PagingLoadMode="Custom" PagingSize="15" PagingDataRetrievalMode="ReturnPartialRows">
                        <ClientSideEvents OnInitialize="WG1_OnInitialize" OnAfterInitialize="WG1_OnAfterInitialize"
                            OnRowContextMenu="WG1_OnRowContextMenu" />
                        <TextSettings Language="UseCustom" UseLanguage="zh-CN">
                        </TextSettings>
                        <HeaderStyle CssClass="WG-Header" />
                        <RowHeaderStyle CssClass="WG-RH">
                        </RowHeaderStyle>
                        <RowStyle CssClass="WG-Row"></RowStyle>
                        <AlternatingRowStyle CssClass="WG-AR" />
                        <SelectedRowStyle CssClass="WG-SR" />
                        <LostFocusRowStyle CssClass="WG-LFR">
                        </LostFocusRowStyle>
                        <EditTextboxStyle CssClass="WG7W-ET">
                        </EditTextboxStyle>
                    </LayoutSettings>
                </ISWebGrid:WebGrid>

 

 

"11111111111111111"  in my Database is

“<P><FONT color=#ff0000 size=6 face=幼圆>11111111111111111</FONT></P>”

and I don't  set vertical allignement middle for that cell/row

Hello,

That because you use Template type. In template, the size would be based on RowHeightDefault.
In IE the rendering is not the same with others behaviour. In IE, the rendering based on the pixel, not auto grow. To make this adaptive, you can set RowHeightDefault property to -1.

Regards,
Handy

Hello,

That because you use Template type. In template, the size would be based on RowHeightDefault.
In IE the rendering is not the same with others behaviour. In IE, the rendering based on the pixel, not auto grow. To make this adaptive, you can set RowHeightDefault property to -1.

Regards,
Handy

Thank you for your reply, I tried to set RowHeightDefault property  to -1, but it does not work.Other related properties need to be configured?

Hello,

It should work. OR can you provide runable sample to me? I need to investigate your issue. Based on my test, it works. Here, I attach my sample.

Regards,
Handy

1 attachment
All times are GMT -5. The time now is 1:15 PM.
Previous Next