Grid custom render

Custom rendering achieved using mods that override grid api methods

Merge grid row cells vertically 

Drag a column header and drop it here to group by that column
Id
Person
Food
Location
1243AaronCheesecakeVisit
2307AppleDiner
2399PizzaRestaurant
2611PizzaVisit
2631CheesecakeDiner
2863CheesecakeTavern
1823AdamCheesecakeUniversity
2047Hot BeverageTavern
2783AppleVisit
3015Hot BeverageCentral Perk

Grid Cards View 

Drag a column header and drop it here to group by that column
Id
Person
Food
Location
Date
Country
Chef
Id:
3675

Person:
Eve

Food:
Pizza

Location:
Home

Date:
10/11/2018

Country:
Ironforge

Chef:
Chef Chef

Id:
3671

Person:
Phil

Food:
Apple

Location:
Tavern

Date:
3/9/2017

Country:
Hatton Garden

Chef:
Casse Croute

Id:
3667

Person:
Richard

Food:
Cheesecake

Location:
University

Date:
3/19/2016

Country:
Loch Modan

Chef:
Charles Duchemin

Id:
3663

Person:
Scott

Food:
Shepherd's pie

Location:
Home

Date:
10/7/2015

Country:
Winterspring

Chef:
Josh Baskin

Id:
3659

Person:
Monica

Food:
Banana

Location:
Home

Date:
7/25/2016

Country:
Jisina

Chef:
Gaia Earth

Id:
3655

Person:
Sylvain

Food:
Oat meal

Location:
Diner

Date:
4/11/2012

Country:
Westfall

Chef:
Casse Croute

Id:
3651

Person:
Trey

Food:
Big Salad

Location:
University

Date:
6/11/2018

Country:
Feralas

Chef:
Tom Smykowski

Id:
3647

Person:
Megan

Food:
Banana

Location:
Restaurant

Date:
1/19/2022

Country:
Ironforge

Chef:
Omu Man

Id:
3643

Person:
Leonard

Food:
Pizza

Location:
Visit

Date:
2/7/2018

Country:
Orgrimmar

Chef:
Chronos Timpus

Id:
3639

Person:
Gordon

Food:
French toast

Location:
Home

Date:
6/3/2018

Country:
Regent

Chef:
Demeter Harvest



show code
Grid cards view achieved by overriding api methods, columns can be reordered, hidden/shown, and the changes will be reflected in the rendered card. The column headers width is ignored for calculating grid content width, so when you shrink the browser window the grid content won't get a horizontal scrollbar. On touch you can scroll the grid header horizontally by dragging from the left an right sides of the grid header.

Grid Custom Render with Inline Editing 

Drag a column header and drop it here to group by that column
Name
Date
Chef
Meals
Bonus Meal
Organic
 
 
675
Name:
asdasd
Date:
1/9/2013
Chef:
Phoebe Phoebes
Bonus Meal:
Carrot
Organic:
Yes
Meals:
Carrot, Oats
673
Name:
asdasdasd
Date:
5/11/2020
Chef:
Josh Baskin
Bonus Meal:
Oats
Organic:
No
Meals:
Mango, Banana, Walnuts
671
Name:
qqqewq
Date:
3/27/2018
Chef:
Gaia Earth
Bonus Meal:
Onion
Organic:
No
Meals:
Cherry
669
Name:
qweqeqw
Date:
10/21/2022
Chef:
Phoebe Phoebes
Bonus Meal:
Tomato
Organic:
No
Meals:
Rice
667
Name:
qweqweq
Date:
7/21/2016
Chef:
Fromage Sandwich
Bonus Meal:
Wheat
Organic:
No
Meals:
Potato, Lettuce, Oats
665
Name:
Snacks and movie
Date:
11/7/2010
Chef:
Charles Duchemin
Bonus Meal:
Cucumber
Organic:
No
Meals:
Onion
663
Name:
Apero
Date:
5/21/2018
Chef:
Chronos Timpus
Bonus Meal:
Chestnuts
Organic:
Yes
Meals:
Cauliflower, Buckwheat
661
Name:
petit dej
Date:
11/19/2016
Chef:
Charles Duchemin
Bonus Meal:
Tomato
Organic:
No
Meals:
Lettuce, Celery
659
Name:
Breakfast
Date:
5/25/2022
Chef:
Chef Chef
Bonus Meal:
Walnuts
Organic:
No
Meals:
Carrot
657
Name:
Dejeuner
Date:
9/17/2017
Chef:
Cheyenne Goldblum
Bonus Meal:
Wheat
Organic:
Yes
Meals:
Carrot

show code
Grid with custom rendering and inline editing mod applied. Edit on row click can also be used.

Tree grid with custom rendering 

Name
Id
main node 3893
node 3893 -> 3903
node 3903 -> 3905
node 3905 -> 3907
Apple 3907 -> 3909
node 3893 -> 3895
Mango 3895 -> 3901
node 3895 -> 3897
leaf 3897 -> 3899
main node 3871
Artichoke 3871 -> 3891
node 3871 -> 3875
node 3875 -> 3885
Carrot 3885 -> 3889
Barley 3885 -> 3887
node 3875 -> 3877
Artichoke 3877 -> 3883
node 3877 -> 3879
Hazelnuts 3879 -> 3881
Banana 3871 -> 3873
main node 3865
Tomato 3865 -> 3869
Artichoke 3865 -> 3867


show code
Using custom render mod to override api methods and render the grid using divs with padding instead of the default table.

Tree grid nested cards  

Drag a column header and drop it here to group by that column
Name
Id
main node 3893
node 3893 -> 3903
node 3893 -> 3895
main node 3871
Artichoke 3871 -> 3891
node 3871 -> 3875
Banana 3871 -> 3873
main node 3865
Tomato 3865 -> 3869
Artichoke 3865 -> 3867


show code
Rendering the grid nodes as cards and placing the child nodes inside the parent card. The grid is also using lazy loading.



Comments