在回发后保持扩展的嵌套Gridview [英] Keep expanded nested Gridview after postback
问题描述
对于儿童GridViews的扩展和折叠,我使用了jQuery。
$([src * = plus])。live(click ,function(){$(this).closest(tr)。after(+ $(this).next()。html()+)$(this).attr(src, images / minus.png);}); $([src * = minus])。live(click,function(){$(this).attr(src,images / plus.png); $(this).closest( tr)。next()。remove();});
我在子网格视图中有一个按钮来添加一个新行。添加后,它将崩溃。我想在添加新行后展开它..只需要在点击折叠按钮时折叠。在服务器端添加行。
我希望在回发后继续扩展。
请帮忙我...
提前致谢..
vineetha ..
For Expand and Collapse of the Child GridViews I have made use of jQuery.
$("[src*=plus]").live("click", function () { $(this).closest("tr").after("" + $(this).next().html() + "") $(this).attr("src", "images/minus.png"); }); $("[src*=minus]").live("click", function () { $(this).attr("src", "images/plus.png"); $(this).closest("tr").next().remove(); });
I have a button in child grid view to add a new row. After adding it, it will collapse. I want to expand it after adding new row.. only need to collapse while clicking on collapse button. Adding rows in server side.
I want after the postback to keep it expanded .
please help me..
Thanks in advance..
vineetha..
推荐答案
([src * = plus])。live(click,function(){
("[src*=plus]").live("click", function () {
(this).closest(tr )。after(+
(this).closest("tr").after("" +
(this).next()。html()+)
(this).next().html() + "")
这篇关于在回发后保持扩展的嵌套Gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!