Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6095547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:49:27+00:00 2026-05-23T12:49:27+00:00

I am loading a full treegrid but i would like to have it collapse

  • 0

I am loading a full treegrid but i would like to have it collapse to only show level 1 (versus showing everything expanded)

is there anyway to specify initial view (collapsed or expanded) when my jqgrid treegrid loads and reloads

again, i DO want to load everything to the client, but just show things collapsed as the inital view.

i don’t see any option on the main documentation page

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:49:28+00:00Added an answer on May 23, 2026 at 12:49 pm

    You don’t included in the question neither jqGrid definition nor the test JSON or XML data which you use to fill the three grid. I suppose, that you filled the ‘expanded’ column of the tree grid with true. The hidden column ‘expanded’ exist in the tree grid for both mode Nested Set Model and Adjacency Model. If you would set false in the column the tree will be not expended. See here an example.

    You should take a look in the next-to-last column of the AdjacencyTree.json. It contains false, so no tree node will be expanded. The contain of the hidden columns from the JSON file are the following

    level parent isLeaf expanded loaded
    -----------------------------------
      0          false    false   true
      1     1    false    false   true
      2     2     true    false   true
      2     2    false    false   true
      3     4     true    false   true
      2     2     true    false   true
      1     1    false    false   true
      2     7    false    false   true
      3     8     true    false   true
      3     8     true    false   true
      2     7     true    false   true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing lazy loading and almost done with it. But would like to
i would like make a script that detect if the page is full loading
I have a big file full of integers that I'm loading in. I've just
I have seen lot of threads about loading a PDF in Android Webview. But
I have string variable which represents the full path of some file, like: x
Does silverlight provide a mechanism like full .NET framework's AppDomain for loading and unloading
I have a data file full of numbers I'm loading into a vector of
I would like to know how can I force a model loading in development
I'm loading a list view full of items via getJSON. But when I tap
I have a UIWebView that I am loading with a string full of HTML.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.