jsgrid
jsgrid copied to clipboard
Export JS Grid data
Can anyone help/sample example on how to use exportData feature in jsgrid?
Thanks in advance
I get
Cannot read property 'apply' of undefined
and I don't know how to fix that ...
ah, there are no such a function...
this fork is with export https://github.com/artyomLisovskij/jsgrid
but you have to add fixes into _itemToCsv():
if (item)/*this*/ Object.keys(item).forEach(function(key,index) {
and right below
if (fields.length > 0){
//find proper index
var field = null//fields[index];
$.each(fields,function(keyF,valueF){
if (valueF.name==key){
field=valueF
return false
}
})
if (field){