使用Ajax Control:具有gridview的手风琴或可折叠面板 [英] Using Ajax Control: accordion or collapsible panel with gridview

查看:75
本文介绍了使用Ajax Control:具有gridview的手风琴或可折叠面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我不知道是否可以这样做,但我也愿意接受新的建议.

我想要完成的是;

我有一个gridview,它返回行的X amouth. X可能会有所变化,具体取决于从数据库中提取的数据.我希望每一行看起来像可折叠面板或手风琴ajax控件的窗格.是否可以动态执行此操作或类似的操作(例如动态添加Accordian的窗格)?

如果您可以为我提供一些代码,教程或链接..我将很高兴.谢谢.

Hello all,

I don''t know if it is possible to do this or not, but I am open to new suggestions as well.

What I am trying to accomplish is;

I have a gridview and it returns X amouth of row. X may change depending on the data pulled from the db. I want each row to appear like a collapsible panel or a pane of a accordion ajax control. Is it possible to do this or something similar on the fly like adding the panes of the accordian dynamically?

If you can provide me some code, tutorial, or links.. I will be glad. Thanks.

推荐答案

将网格视图保留在启用了滚动条的面板中,您是否尝试过使用ajaxtoolkit CollapsiblePanelExtender.它需要我们必须切换的面板的ID,
keep the grid view in a panel with scroll bars enabled, and did you try using ajaxtoolkit CollapsiblePanelExtender. It takes the id of the panel which we have to toggle,
<ajaxtoolkit:collapsiblepanelextender id="collapsible" targetcontrolid="IdPanelToCollapse" .....="" xmlns:ajaxtoolkit="#unknown"></ajaxtoolkit:collapsiblepanelextender> 


好,所以我通过动态添加窗格找到了解决方案.我阅读了gridview的所有行,并将每一行插入到列表中.因此,对于每个列表项,我创建一个窗格. 此链接 [ ^ ]
Ok so I found the solution by adding the panes dynamically. I read all the rows of the gridview and insert each row to a list. So for each list item I create a pane. Referance for dynamically adding the panes is in this link[^]


这篇关于使用Ajax Control:具有gridview的手风琴或可折叠面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆