0

Basically the DATA TABLE is exporting in Excel, But need to change the format of the table, like adding additional cell color or border in the cell. And the Data table is in class and its dynamic

I have already with all the functionalities like ,

$js .= '"createdRow": function( row, data, dataIndex){
              $(row).addClass(\'redClass\');
              }';
    $js.='customize: function(xlsx){
            var sheet = xlsx.xl.worksheets["sheet1.xml"];
            $("row c[r*="10"]",sheet).attr("s","25"); 
            },';

NO Change in the exported excel sheet

5
  • Is it MySql or Sql-Server? They are not the same. And, if you want to set color to an Excel sheet, why do you tag it as an SQL question? This is one of the best ways to get no help to solve your issue
    – nacho
    Jun 19 '19 at 7:56
  • Its in JS , So can u help me out? with the code? Jun 20 '19 at 7:31
  • If it is Javascript, don't tag it as C#, php, mysql and sql-server. Tag it as Javascript, so people expert in JS will help you
    – nacho
    Jun 20 '19 at 10:15
  • It look like you posted server side code that is composing a js object in a string. To have that code executed you have to pass it to a js engine and have code there that will load your string, interpret it as code and then execute it. Please can you provide a more relevant part of your code, just to let us know what is actually going on? Jun 21 '19 at 11:16
  • Yes sure, But i have applied library's for it. Jun 24 '19 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.