Hi everyone, I want to know if is it possible possible to work in the encrypted grid with public or private key?
If possible, how would it be?
Thank you
Hello,
Please tell some scenario or sample demo how you wish to implement keys in datagrid.
This is doable using on_update event handler where you can write your own php code. https://www.gridphp.com/docs/grid-events/
It’s supported in full version.
Thank you very much, I had already reviewd that bibliography, but my question is, if it is possible to show the content in the grid but with being encrypted.
Yes, You can use on_data_display filter mentioned in the demo of custom events and do the field encryption in that function.
My question is, if it is possible to show decrypted information in the grid for certain users
Please refer this section of documentation.
https://www.gridphp.com/docs/column-options/#conditional-content
For extended conditional data, you can also have callback function, that will allow you to display based on row data. You can use decryption there. For e.g.
$col["on_data_display"] = array("display_keyword","");
function display_keyword($data) { $kw = $data["keyword_name"]; $numKeywords = count(explode("\n",$pass)); if ($numKeywords > 3) return $numKeywords." Keywords"; else { $pass = str_replace("+"," ",$pass); return $pass; } }