jQuery UI Widgets › Forums › Grid › Nested grids with unique records
Tagged: angular grid, angular2 grid, bootstrap grid, javascript grid, jquery grid, jqwidgets grid, jqxgrid, typescript grid
This topic contains 3 replies, has 2 voices, and was last updated by Hristo 7 years, 8 months ago.
-
Author
-
Hi I already started designing a scenario for nested grids. Where the main grid is the store, second level grid is the manager, submanager, the third level grid is the employees under manager, submanager. I cannot seem to link and make each unique. All rows keeps on having same nested.
Example:
Main grid:
Columns: Company Contact Name
Row 1: Bakery->Expanded
Row 2: Pizzastore->ExpandedSecond grid: Expand of Bakery
Columns: Manager Phone
Row 1: Jake->Expanded
Row 2: Phil->ExpandedThird grid: Expand of Jake
Columns: Firstname
Row 1: Ryan
Row 2: David
Row 3: KimThird grid: Expand of Phil
Columns: Firstname
Row 1: AndrewSecond grid: Expand of Pizzastore
Columns: Manager Phone
Row 1: Chase->Expanded
Row 2: Marlo->ExpandedThird grid: Expand of Chase
Columns: Firstname
Row 1: Hank
Row 2: AshleyThird grid: Expand of Marlo
Columns: Firstname
Row 1: Bridget
Row 2: Selena
Row 3: Benny
Row 4: EllieHere is my jsfiddle:
http://jsfiddle.net/bHR3b/227/Hello dan123,
You need to set different data for each row.
Please, take a look at this example:
http://jsfiddle.net/8198ykLv/
Hope this helps.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHi Hristo, I was able to implement the second level grid with unique records. But the third level is having the same records.
So right now its doing like this:
Row 1: Bakery
Row 2: PizzastoreSecond Level nest: Good, all rows are unique. but when you try to expand its has same results as Pizzastore.
Third Level nest: Bad, the rows are not unique.
Row 1: Bakery: Third level showing records: index–>0
Ryan
Waiindex–>1
Leo
BryantRow 2: Pizzastore: Third level also showing records: index–>0
Ryan
Waiindex–>1
Leo
BryantPlease help here is my jsfiddle:
http://jsfiddle.net/9hg0vffm/33/Hello dan123,
You need to set unique data for the third level as for the second level.
Need to check what data do you receive it will become more complicated with more levels.
I would like to suggest you look at the options of the jqxTreeGrid, this could be a more useful approach for your case.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.