问题描述
问题:UltraWebGrid分页刚进入页面是好的,但是一移动滚动条之后分页就没效了,求大神指导!<igtbl:UltraWebGridID="grdEntry"runat="server"Height="200px"Width="99%"OnInit="grdEntry_Init"OnInitializeRow="grdEntry_InitializeRow"><Bands><igtbl:UltraGridBand><AddNewRowView="NotSet"Visible="NotSet"></AddNewRow><FilterOptionsAllString=""EmptyString=""NonEmptyString=""><FilterDropDownStyleBackColor="White"BorderColor="Silver"BorderStyle="Solid"BorderWidth="1px"CustomRules="overflow:auto;"Font-Names="Verdana,Arial,Helvetica,sans-serif"Font-Size="11px"Width="200px"><PaddingLeft="2px"/></FilterDropDownStyle><FilterHighlightRowStyleBackColor="#151C55"ForeColor="White"></FilterHighlightRowStyle></FilterOptions></igtbl:UltraGridBand></Bands><DisplayLayoutAllowColSizingDefault="Free"AllowUpdateDefault="Yes"BorderCollapseDefault="Separate"Name="grdEntry"RowHeightDefault="20px"SelectTypeRowDefault="Single"StationaryMargins="HeaderAndFooter"TableLayout="Fixed"Version="4.00"JavaScriptFileName=""JavaScriptFileNameCommon=""><GroupByRowStyleDefaultBackColor="#95B9F0"ForeColor="Black"></GroupByRowStyleDefault><ActivationObjectBorderColor="204,204,204"BorderStyle="Dotted"></ActivationObject><RowExpAreaStyleDefaultBackColor="#B3DCF8"></RowExpAreaStyleDefault><RowStyleDefaultBackColor="White"BorderColor="#FAFAFA"BorderStyle="Solid"BorderWidth="1px"Font-Bold="True"ForeColor="#666666"HorizontalAlign="Left"VerticalAlign="Middle"Width="100%"><BorderDetailsWidthLeft="0px"WidthTop="0px"/><PaddingLeft="7px"Right="7px"/></RowStyleDefault><SelectedRowStyleDefaultBackColor="#DEEEFE"></SelectedRowStyleDefault><HeaderStyleDefaultBackColor="#B3DCF8"BorderColor="White"BorderStyle="Solid"BorderWidth="1px"Font-Bold="True"Font-Size="8pt"ForeColor="Black"Height="20px"HorizontalAlign="Center"VerticalAlign="Middle"><PaddingLeft="0px"Right="0px"/></HeaderStyleDefault><RowAlternateStyleDefaultBackColor="#F2F8FF"BorderStyle="Solid"BorderWidth="1px"Font-Bold="True"ForeColor="#666666"HorizontalAlign="Left"></RowAlternateStyleDefault><EditCellStyleDefaultFont-Names="Tahoma"Font-Size="8pt"HorizontalAlign="Left"VerticalAlign="Middle"><PaddingLeft="7px"Right="7px"/></EditCellStyleDefault><FrameStyleBorderColor="#E0E0E0"BorderStyle="Solid"BorderWidth="1px"Cursor="Default"Font-Names="Tahoma"Font-Size="8pt"Height="200px"Width="99%"></FrameStyle><Pager><StyleBackColor="WhiteSmoke"BorderStyle="Solid"BorderWidth="1px"><BorderDetailsColorTop="White"WidthLeft="1px"WidthTop="1px"ColorLeft="White"></BorderDetails></Style></Pager><%--<PagerAllowPaging="True"Alignment="right"ChangeLinksColor="True"PageSize="15"PrevText="上一页"NextText="下一页"Pattern="[page:1:首页]&nbsp;[prev]&nbsp;[next]&nbsp;[page:[pagecount]:末页]&nbsp;&nbsp;&nbsp;当前第[currentpageindex]页,共[pagecount]页,每页[pagesize]条记录&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;跳转至[default]页"StyleMode="ComboBox"QuickPages="2"></Pager>--%><AddNewBox><StyleBackColor="LightGray"BorderStyle="Solid"BorderWidth="1px"><BorderDetailsColorTop="White"WidthLeft="1px"WidthTop="1px"ColorLeft="White"></BorderDetails></Style></AddNewBox><FilterOptionsDefaultAllString="(All)"EmptyString="(Empty)"NonEmptyString="(NonEmpty)"><FilterDropDownStyleBackColor="White"BorderColor="Silver"BorderStyle="Solid"BorderWidth="1px"CustomRules="overflow:auto;"Font-Names="Verdana,Arial,Helvetica,sans-serif"Font-Size="11px"Width="200px"><PaddingLeft="2px"/></FilterDropDownStyle><FilterHighlightRowStyleBackColor="#151C55"ForeColor="White"></FilterHighlightRowStyle></FilterOptionsDefault></DisplayLayout></igtbl:UltraWebGrid>
grid.DisplayLayout.AllowRowNumberingDefault=RowNumbering.ByDataIsland;//Highlighttheactiverowwithadifferentborderstylegrid.DisplayLayout.ActivationObject.BorderColor=Color.Red;grid.DisplayLayout.ActivationObject.BorderStyle=BorderStyle.Outset;grid.DisplayLayout.ActivationObject.BorderWidth=Unit.Pixel(2);//Numberpaginggrid.DisplayLayout.Pager.StyleMode=Infragistics.WebUI.UltraWebGrid.PagerStyleMode.QuickPages;grid.DisplayLayout.Pager.QuickPages=4;if(count<=0){grid.DisplayLayout.Pager.Pattern="<tablewidth=100%><tr><tdalign=left>"+FAS.Utility.UtilCulture.GetString("Page.Page")+":[currentpageindex]/[pagecount]"+FAS.Utility.UtilCulture.GetString("Page.PageSize")+":[pagesize]</td><tdalign=right>[page:first:"+FAS.Utility.UtilCulture.GetString("Page.First")+"] [page:prev:"+FAS.Utility.UtilCulture.GetString("Page.Prev")+"] [default] [page:next:"+FAS.Utility.UtilCulture.GetString("Page.Next")+"] [page:last:"+FAS.Utility.UtilCulture.GetString("Page.Last")+"]<td></tr></table>";}else{grid.DisplayLayout.Pager.Pattern="<tablewidth=100%><tr><tdalign=left>"+FAS.Utility.UtilCulture.GetString("Page.Count")+":"+count+""+FAS.Utility.UtilCulture.GetString("Page.Page")+":[currentpageindex]/[pagecount]"+FAS.Utility.UtilCulture.GetString("Page.PageSize")+":[pagesize]</td><tdalign=right>[page:first:"+FAS.Utility.UtilCulture.GetString("Page.First")+"] [page:prev:"+FAS.Utility.UtilCulture.GetString("Page.Prev")+"] [default] [page:next:"+FAS.Utility.UtilCulture.GetString("Page.Next")+"] [page:last:"+FAS.Utility.UtilCulture.GetString("Page.Last")+"]<td></tr></table>";}grid.DisplayLayout.Pager.AllowPaging=true;grid.DisplayLayout.Pager.AllowCustomPaging=true;intpageSize=Constants.PageSize;grid.DisplayLayout.Pager.PageSize=pageSize;grid.DisplayLayout.Pager.PageCount=(count/pageSize)+((count%pageSize==0)?0:1);grid.DisplayLayout.AllowSortingDefault=Infragistics.WebUI.UltraWebGrid.AllowSorting.Yes;grid.DisplayLayout.HeaderClickActionDefault=Infragistics.WebUI.UltraWebGrid.HeaderClickAction.SortSingle;//forbugfoundwhenupgradingto2006V2grid.DisplayLayout.XmlLoadOnDemandType=type;grid.DisplayLayout.ViewType=Infragistics.WebUI.UltraWebGrid.ViewType.Hierarchical;if(grid.Columns.FromKey("SELECT")!=null){grid.Columns.FromKey("SELECT").Header.ClickAction=HeaderClickAction.Select;grid.Columns.FromKey("SELECT").AllowUpdate=AllowUpdate.Yes;}
解决方案
解决方案二:
多选之后分页功能也失效!!!!
解决方案三:
封装的你需要问提供商看如何解决你可以先尝试把自定义的样式都去掉,看是不是控件本身的问题
解决方案四:
引用2楼FoxDave的回复:
封装的你需要问提供商看如何解决你可以先尝试把自定义的样式都去掉,看是不是控件本身的问题
是控件本身的问题,就是一移动滚动条和和多选checkbox之后,js调试会看到报错,无法获取未定义的什么什么,可是那里面的代码修改不了啊!