Page 1 of 1

custom grid widget question

Posted: Wed Oct 19, 2011 1:10 pm
by leatherlips
I was trying to create a custom grid using the info provide in the online documentation. All seems fine except for one thing.
In the .js file, I put additional "default" settings for header height, row Height, csv export and filename. The height items work fine, but the csv export flag set to true doesn't show up on the grid when added to a screen.
Here's the "default" settings from the .js file:

leaf: true,
defaults: {
"header height": "20",
"row height": "17",
"csv export": "true",
"csv file name": "data",
"css class": "custom-grid1"
}

here's the result when added to the designer:
csv expoert1.png
csv expoert1.png (21.66 KiB) Viewed 1066 times
If I "de-select" the "true" on csv export, then re-select, it shows the export to excel as intended.
Am I specifying the defaults correctly or is there something else I need to do for those values to "take" when the grid is added to the designer?

THANKS

Re: custom grid widget question

Posted: Fri Nov 25, 2011 7:33 pm
by Alex
This is now fixed in our upcoming update (version 3.1.9)

Re: custom grid widget question

Posted: Fri Nov 25, 2011 7:38 pm
by leatherlips
GREAT!! Thanks once again!