在dropdownlist中的树视图结构 [英] Tree view structure in dropdownlist

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

问题描述

我想显示下拉列表项目,如树形视图,我已在下面显示



在下拉列表中,我想要以下结构



----- AssetAccounts ---

Csh在手

银行账户



-----责任账户---

Axiss BankAccount

储蓄账户

---- - 收入账户-----

应付账款

账单账户





这是非常紧急的一个...



请帮助我



在此先感谢.. 。

i want to display drop down list items as like tree view which i have been shown below

In side the dropdown i want the following structure

-----AssetAccounts---
Csh In hand
Bank Account

-----Liability Accounts---
Axiss BankAccount
Savings Account
-----Income Accounts-----
Accounts Payable
Billing Accounts


This is Highly Urgent One...

Please Help me

Thanks In Advance...

推荐答案

首先,它对您来说只是紧急。除非你付出了支持,否则没有人会关心你认为这有多紧迫。



其次,你没有在你的例子中描述树视图。它只是一个简单的列表,偶尔会在子列表上标题。你有几个选择:



1)只需在你添加到列表中的项目中使用空格字符就可以适当地缩进它们:

First, it''s only "urgent" to you. Unless you''re paying out the nose for support, noone cares how urgent you think this is.

Second, you''re not describing a treeview in your example. It''s just a simple list with the occasional header over a sub list. You have a couple of options:

1) Just use space characters in the items you add to the list to indent them appropriately:
Asset Accounts--------
    Cash On Hand
    Bank Account

Liability Accounts----
    Axis Account
    Savings Account

Income Accounts-------
    Accounts Payable
    Billing Accounts



2)设计和构建你自己的支持树视图布局的DropDownList控件。坦率地说,这是一条昂贵的路线,因为它需要你学习如何制作自定义控件。



3)在网上搜索一个控件库下拉控件,支持您想要的内容。这可能会花费数百甚至数千美元,但仍然可能比从头构建自己的控件便宜。






哎呀!忽略被击中的部分。我没有在帖子上看到ASP.NET标签。


2) Design and build you''re own DropDownList control that supports a treeview layout. Frankly, this is an expensive route to go as it will require you to learn how to make custom controls.

3) Search the web for a control library that has a dropdown control that supports what you want. This will probably run you hundreds, if not thousands, of dollars, but still may be cheaper than building your own control from scratch.



Whoops! Ignore the struck portions. I didn''t see the ASP.NET tag on the post.


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

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