When navigating through the shopping cart, users will encounter a product category tree structured as follows:
Category1
Subcategory11
Subcategory12
...
Category2
Subcategory21
Subcategory22
...
Category3
Subcategory31
Subcategory32
...
This category tree is located on the left side of the screen and initially appears in a collapsed form.
Upon opening the shopping cart, users are presented with a view similar to Screenshot1:
Toggle show all categories
Category1
Category2
Category3
Users have the ability to expand specific nodes by clicking on them. When a node such as Category2 is clicked, the other categories vanish from the screen, displaying only the selected category and its subcategories as shown in Screenshot2:
Toggle show all categories
Category2
Subcategory21
Subcategory22
The Toggle show all categories
link allows for switching between the collapsed category list (Screenshot1) and the last opened category view (Screenshot2). This functionality can be seen in action at
To implement this feature, inquiries about potential jquery or jquery-ui plugins, or customizing jqgrid for this purpose, are welcomed.
Existing category trees tend to keep the main category list visible when a subcategory is selected:
Category1
Category2
Subcategory21
Subcategory22
Category3
However, the desired outcome necessitates that unrelated categories like Category1 and Category3 disappear once a specific category like Category2 is chosen, emulating the display in Screenshot2.
The current technologies being used include ASP.NET/Mono MVC2, jquery, jquery-ui, and jqgrid treegrid. Specific decisions regarding jquery-ui and jqgrid adaptations can be made if they contribute to solving this issue.