User Profile & Activity

xu guochun Member
Page
of 9
Posted: May 2, 2012 12:59 AM

I am using  WebGrid 7 build 417 and WebUI.NET Framework 3 build 767

Posted: May 1, 2012 9:52 PM

please Look at the video of my operation!

LayoutSettings i set AllowEdit="Yes" AllowBatchUpdate="true".

 

Posted: December 29, 2011 10:25 PM

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?

Posted: December 29, 2011 12:16 AM
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

Posted: December 28, 2011 10:28 PM

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"> 

Posted: December 28, 2011 10:16 PM

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

Hello ,

  Anyone can help me to solve this problem ? I am looking forward to your answer eagerly . Thanks a lot !

Hello Yudi ,

  I am also confused about what you said . In WebGridSamples project , there are many files and I do not know which one is I want . Can you tell me more about that ?  If you can send me a sample , I will appreciate that .

Hello Yudi ,

   Thank you for your reply . You tell me the mistake , but how should I solve this problem and  make the grid show the checked checkbox ?

   Thanks a lot !

Posted: October 11, 2011 2:50 AM

Hello Hendrik ,

   Thank you for your reply . My simple sample is just to simulate the function of Delete . I click the icon of the last column named Delete to invoke the javascript code of showing the message box , then if I confirm to delete the item , it will trigger a hidden button to invoke the background program of Delete .

  If the problem is coming from UpdatePanel itself , why it shows normal in IE Browser and there will be a problem in Firefox Browser ?  If the method of showing the message box is "confirm" , there will be ok in the two Browsers . But the method of showing the message box is "ShowInfoBox" you provide , there will be the problem in Firefox Browser .

  I have changed my code , and there is no  "wdlg_ButtonOK_Clicked(dlgBox.EpointParams)" . The problem is the same with before . Thank you for your help .

All times are GMT -5. The time now is 9:45 PM.
Previous Next