Closed sokollondon closed 2 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.
This code checks if the column is visible to the current user
$dgSettings = new DynaGridSettings(
[
'moduleId' => 'dynagrid',
'dynaGridId' => 'YOUR_dynaGridId',
'storage' => DynaGrid::TYPE_DB,
'category' => DynaGridStore::STORE_GRID,
'userSpecific' => true,
]
);
$keys = $dgSettings->fetchSettings()['keys'];
if(!$keys) return null; //no personal settings for the user
$hashCol = hash('crc32', 'YOUR_COLUMN_NAME');
$isColumnVisible = array_search($hashCol, $keys)!==false;
var_dump($isColumnVisible);
I need to get personal value of one field from DynaGridStore