我无法滚动包含CheckBox列的RadGrid。问题是CheckBox不会滚动其他列网格,CheckBoxes的位置变为静态。
这是我在html中的代码:
<Rad:RadGrid ID="grid1" Width="800px" Height="415px" runat="server" AllowSorting="True" AllowPaging="false" AllowMultiRowSelection="false" AllowFilteringByColumn="false" AutoGenerateColumns="False" OnNeedDataSource="CustomFormTemplatesGrid_NeedDataSource" >
<MasterTableView Width="800px" TableLayout="Fixed" EnableHeaderContextMenu="true">
<HeaderStyle Wrap="true" />
<Columns>
<Rad:GridBoundColumn DataField="FormName" UniqueName="FormName" HeaderText="Form Name" HeaderStyle-Wrap="true" DataFormatString="<nobr>{0} </nobr>"/>
<Rad:GridBoundColumn DataField="FormDisplayName" UniqueName="FormDisplayName" HeaderText="Form Display Name" HeaderStyle-Wrap="true" DataFormatString="<nobr>{0} </nobr>" />
<Rad:GridBoundColumn DataField="Version" UniqueName="Version" HeaderText="Version" HeaderStyle-Wrap="true" DataFormatString="<nobr>{0} </nobr>" />
<Rad:GridBoundColumn DataField="ModuleName" UniqueName="ModuleName" HeaderText="Selected Module Name" HeaderStyle-Wrap="true" DataFormatString="<nobr>{0} </nobr>" />
<Rad:GridBoundColumn DataField="CreatedDateTime" UniqueName="CreatedDateTime" HeaderText="Created Date/Time" HeaderStyle-Wrap="true" CurrentFilterFunction="NoFilter" DataFormatString="<nobr>{0} </nobr>" />
<Rad:GridBoundColumn DataField="CreatedBy" UniqueName="CreatedBy" HeaderText="Created By" HeaderStyle-Wrap="true" DataFormatString="<nobr>{0} </nobr>" />
<Rad:GridCheckBoxColumn DataField="Deleted" UniqueName="Deleted" HeaderText="Deleted" />
</Columns>
<SortExpressions>
<Rad:GridSortExpression FieldName="FormName" SortOrder="Ascending" ></Rad:GridSortExpression>
</SortExpressions>
</MasterTableView>
<ClientSettings AllowDragToGroup="False" EnableRowHoverStyle="false">
<Resizing AllowColumnResize="True" EnableRealTimeResize="false" ResizeGridOnColumnResize="false" AllowResizeToFit="true" ></Resizing>
<Selecting AllowRowSelect="true" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="False"></Scrolling>
<ClientEvents OnRowSelected="gridCustomFormTemplates_RowSelected" />
</ClientSettings>
</Rad:RadGrid>
我正在加载代码后面的网格数据源并正确绑定。
显示数据,但CheckBoxes的问题仍然如上所述
有什么建议吗?
答案 0 :(得分:1)
我很久以前就遇到过这个问题。可能这个问题是由IE中的错误引起的。解决此问题
.RadGrid .rgDataDiv
{
position: relative;
}
希望这会有所帮助:)。