| |

VerySource

 Forgot password?
 Register
Search
View: 1064|Reply: 9

How to implement infinite classification to display a list of categories in a drop-down box (to be hierarchical)?

[Copy link]

4

Threads

10

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-1-22 17:00:01
| Show all posts |Read mode
How to implement infinite classification to display a list of categories in a drop-down box (to be hierarchical)?
Reply

Use magic Report

0

Threads

58

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 China

Post time: 2020-2-2 05:36:01
| Show all posts
Simple can be filled with spaces in front of text to display the hierarchy
Reply

Use magic Report

4

Threads

10

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-2-4 12:00:01
| Show all posts
Just use | Chengdu Company
       -| Chengdu First Company
       -| DChengdu Second Company
         -| Marketing
         -| Second Division
      | Chengdu Company
       -| Chengdu First Company
       -| DChengdu Second Company
         -| Marketing
         -| Second Division
To be displayed in the drop-down window. How to achieve it?
Reply

Use magic Report

0

Threads

73

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-2-5 23:15:02
| Show all posts
Similar to the generation of TREE, it is not difficult to implement it recursively.
Reply

Use magic Report

0

Threads

64

Posts

35.00

Credits

Newbie

Rank: 1

Credits
35.00

 China

Post time: 2020-2-8 19:45:01
| Show all posts
Use table, textbox (or label, embedded in TableCell), htmlbutton (embedded with Textbox in TableCell), panel (embedded in another TableCell to automatically generate scroll bars), menu each, and the button on the client to change the menu display style To achieve the purpose of pull down.
Reply

Use magic Report

0

Threads

64

Posts

35.00

Credits

Newbie

Rank: 1

Credits
35.00

 China

Post time: 2020-2-8 23:00:01
| Show all posts
Using a user control for the layout control, it seems that the control code to be written does not exceed 10 lines (mainly used to dynamically generate several pieces of javascipt code, such as the onclick event code to generate htmlbutton), it is still very simple.
Reply

Use magic Report

4

Threads

10

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-2-9 09:00:02
| Show all posts
Can you point the source code, let the younger brother learn
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-3 11:15:01
| Show all posts
thumbs up
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-4 16:15:01
| Show all posts
Give some code,
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-4 17:15:02
| Show all posts
I also need it, can the expert give an example of the code (the drop-down box under html, not swing)
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list