Here is the grid configuration.
$('#deptGrid').jqxGrid(
{
width: '100%',
source: dataAdapter,
sortable: true,
showfilterrow: true,
pageable: true,
filterable: true,
rtl:this.isRTL,
columns: [
{ text: that.labelData.dept_name, filtercondition: 'starts_with', datafield: 'name', width: '40%',
align: gridAlignment, cellsalign: gridAlignment},
{ text: that.labelData.head_name, filtercondition: 'starts_with', datafield: 'headName', width: '30%',align: gridAlignment,
cellsalign: gridAlignment},
{ text: that.labelData.cost_center_name, filtercondition: 'starts_with', datafield: 'costCentreName', width: '30%',
align: gridAlignment, cellsalign: gridAlignment}
]
});
}
Arabic data come from Database.
`onExportToPDF() {
$(“#deptGrid”).jqxGrid(‘exportdata’, ‘pdf’, ‘Department List’);
}
onExportToExcel() {
$(“#deptGrid”).jqxGrid(‘exportdata’, ‘xls’, ‘Department List’);
}
`
Here is the code to export to Excel and PDF; Excel working fine while PDF has issue.
Cost Center Name Head Name ‘ 3 E ‘ D B 3 E
ProductionAR N/A ‘ D ( 1 E , J ‘ *
ProductionAR N/A ‘ D ‘ / ‘ 1 )