angular-ui / ui-grid

UI Grid: an Angular Data Grid
http://ui-grid.info
MIT License
5.39k stars 2.47k forks source link

Multiple Row Freeze Feature In Ui grid #7077

Closed Singh123PankajHexa closed 4 years ago

Singh123PankajHexa commented 4 years ago
  1. Our Task is to freeze multiple rows in UI GRID but as we know UI GRID does not contain any feature to do this.

I found the way to do this: 🔷 (Best way) 🔶 (Risky way) 🔶 changes in Sorting algorithm 🔷 If we are dealing with grid there would JSON or column definition for preparing grid layout,So our task is to insert column into this and keep it is as hide or invisible and it would not effect your performance. 🔷 for Multiple row we have to do this multiple times.

SOLUTION TO DO THIS:

GRID COLUMN DEFINITION:

      `{
"Field": "pinned1",
"IsVisible": false,
"TemplateType": 41

}, { "Field": "pinned", "IsVisible": false, "TemplateType": 41 }, 🔵 In our response of data we have to insert for those row which we want to freeze this field as a true; if (_obj.Name === "Portfolio Total"(row attribute 1st one to freeze)) { _obj.pinned1 = true; } if (_obj.Name === "Cash Summary"(row attribute 2nd one to freeze)) { _obj.pinned = true; }`

HOPE THIS WILL HELP YOU

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically closed because it has not had recent activity. If you believe that this is still an issue in the latest version, feel free to re-open it. Thank you for your contributions.