数据绑定时如何使用过滤操作
我在网格上使用虚拟滚动。我希望我的网格也应该支持过滤操作来实现这一点我可以使用 FilterParameterName="" & FilterParameterType="" 数据绑定的属性或是否有任何其他方法可用于通过虚拟滚动实现过滤。
<telerik:GridBoundColumn DataField="SUPPNAME" HeaderText="Name" UniqueName="suppName" />
</Columns>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True">
</Scrolling>
<DataBinding Location="POProcessing.aspx" SelectMethod="GetProductData" SelectCountMethod="GetCount"
StartRowIndexParameterName="startRowIndex" MaximumRowsParameterName="maxRows" FilterParameterName="suppName" FilterParameterType="String" />
<ClientEvents OnCommand="showLoadingPanel" OnDataBound="hideLoadingPanel" OnRowClick="onRowClick"
OnRowDataBound="RowDataBound" OnRowSelecting="OnRowSelecting" OnRowDeselecting="OnRowDeselecting" />
<Selecting AllowRowSelect="true" />
</ClientSettings>
</telerik:RadGrid>
I am using virtual scrolling on the grid. I want my grid should support filtering operation too to achieve this can i make use of FilterParameterName="" & FilterParameterType="" properties of databinding or is there any other way available to achieve filtering with virtual scrolling.
<telerik:GridBoundColumn DataField="SUPPNAME" HeaderText="Name" UniqueName="suppName" />
</Columns>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True">
</Scrolling>
<DataBinding Location="POProcessing.aspx" SelectMethod="GetProductData" SelectCountMethod="GetCount"
StartRowIndexParameterName="startRowIndex" MaximumRowsParameterName="maxRows" FilterParameterName="suppName" FilterParameterType="String" />
<ClientEvents OnCommand="showLoadingPanel" OnDataBound="hideLoadingPanel" OnRowClick="onRowClick"
OnRowDataBound="RowDataBound" OnRowSelecting="OnRowSelecting" OnRowDeselecting="OnRowDeselecting" />
<Selecting AllowRowSelect="true" />
</ClientSettings>
</telerik:RadGrid>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您通过网格列过滤器文本框应用过滤器,我想它将在虚拟滚动处理后保留。数据绑定> FilterParameterName/FilterParameterType 属性很可能用于指定默认情况下传递给 Select 方法的过滤器参数的名称和类型。
If you apply filters through the grid columns filter textboxes, I suppose it will be retained after virtual scrolling processing. The DataBinding > FilterParameterName/FilterParameterType attributes can most likely be used to specify name and type for the filter parameter that will be passed to the Select method by default.