Telerik RadGrid 分组在从另一个控件自动回发后消失
我有一个带有 Telerik RadGrid 和 Telerik 下拉列表的页面。网格项使用
元素进行分组。当在下拉列表中选择一项时,页面会回发到自身,并且网格仍处于分组模式,但所有内容都位于一个未标记的组中。
是否有办法防止这种情况发生或者有没有办法通过在客户端重新绑定或其他方式来恢复正确的分组行为?
I have a page with a Telerik RadGrid and a Telerik drop-down list. The grid items are grouped using the <GroupByExpressions>
element. When an item is selected in the drop-down, the page posts back to itself and the grid is still in grouping mode, but everything is in one unlabeled group.
Is there away to prevent this or is there way to restore the correct grouping behaviour by rebinding on the client side or something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系!事实证明,在下拉选择后,网格被分配了一个新数据
没有任何具有分组字段值的项目的源。
我在检查之前问这个问题的原因是我自动假设它与控件感知到的不稳定有关。
我只是把这个留在这里,以防有人碰巧遇到同样的情况。
Nevermind! It turned out, upon the drop-down selection, the grid was assigned a new data
source that didn't have any items with a value for the grouped field.
The reason I asked the question here before checking is that I automatically assumed it had something to do with the control's perceived flakiness.
I'm just leaving this here in case anyone happened to be in the same situation.