Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Jsonize for GridCtrl
Jsonize for GridCtrl [message #36158] |
Mon, 07 May 2012 12:25  |
 |
koldo
Messages: 3432 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 Apr 25 12:07:50 CEST 2025
Total time taken to generate the page: 0.03130 seconds
|