Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Jsonize for GridCtrl
Jsonize for GridCtrl [message #36158] |
Mon, 07 May 2012 12:25 |
|
koldo
Messages: 3394 Registered: August 2008
|
Senior Veteran |
|
|
Hello Daniel
It would be good if you could add Json to GridCtrl.
The function could be:
template<> void Jsonize(JsonIO& json, GridCtrl& g) {
Vector<Vector<Value> > v;
if(json.IsLoading()) {
json("data", v);
g.SetValues(v);
} else {
v = g.GetValues();
json("data", v);
}
}
Best regards
Iñaki
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 13:07:26 CEST 2024
Total time taken to generate the page: 0.03228 seconds
|