Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Jsonize for GridCtrl
Jsonize for GridCtrl [message #36158] Mon, 07 May 2012 12:25 Go to next message
koldo is currently offline  koldo
Messages: 3357
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
Re: Jsonize for GridCtrl [message #36346 is a reply to message #36158] Mon, 21 May 2012 16:18 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Added, thank you!
Re: Jsonize for GridCtrl [message #36351 is a reply to message #36346] Mon, 21 May 2012 18:18 Go to previous message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Thank you.

Best regards
Iñaki
Previous Topic: Problem with IsRowEditable
Next Topic: GridCtrl Clipboard just for copying
Goto Forum:
  


Current Time: Thu Apr 25 01:25:32 CEST 2024

Total time taken to generate the page: 0.03775 seconds