有关树视图的问题 [英] issues regarding treeview

查看:63
本文介绍了有关树视图的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用asp.net的树视图控件
有两个问题:

1)使用表格放置树形视图,当我将其展开时,树形视图会下降,如果树形视图增大,我想固定其高度,因此它应在特定的td或区域内增大,并且应该有向下滚动的栏.我需要处理这个问题,否则它会将整个页面向下推,并且我的保存按钮也将下降,因为如果我固定了树视图的区域或td,那么它将在其特定区域中长大,而其余布局仍保留在其上

2)在此层次结构的树形视图中有复选框
大父亲->父亲->孩子
全部带有复选框.
当用户在JavaScript的帮助下单击复选框时,我使用onclick来使用_dopostback来使用检查树视图的更改事件"来执行某些功能.问题是当我们使用...时如何正确使用更新面板...


此函数Onclick onntreeview

I am Using tree view control of asp.net
there are 2 problems:

1) using table to place tree view and when I expand it the tree view goes down I want to fixed the height if tree view grows so it should grow in specific td or area and there should be scroll bar to go down. I need to handle this else it pushes whole page down and my save button also goes down because of if I fixed the area or td of tree view so it will grow up in its particular region and rest of layout remain on it place

2)There are Check-boxes in tree view in this hierarchy
Grand Father -->Father -->Child
All with check boxes.
When user click on check box with the help of JavaScript I use onclick to use _dopostback to use "check change event of tree view" to do some functionality. Problem is How can use Update Panel properly as we use ...


This function Onclick onntreeview

function postBackByObject()
{
    var o = window.event.srcElement;
    if (o.tagName == "INPUT" && o.type == "checkbox")
    {
       __doPostBack("","");
    }
}





需要帮助,因为项目截止日期即将结束





Need Help Because Deadline Of Project Coming Close

推荐答案



您将treeview保留在面板中.并在其中设置一些高度和滚动条.
Hi ,

You keep the treeview inside a panel . And set some hieght and scroll bar there.


这篇关于有关树视图的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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