Author Topic: export grid data error  (Read 2280 times)

dreams

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 21
    • View Profile
export grid data error
« on: March 18, 2020, 09:12:28 pm »
export grid data error:
ReferenceError: saveAs is not defined.
Is there a lack of file references?

      <!--jQuery dependency-->   
          <script src="js/jquery/jquery-1.9.1.min.js"></script>   
      
      <!--jQueryUI version >= 1.11.4 only -->
          <link rel="stylesheet" href="js/jquery-ui-1.11.4/jquery-ui.min.css" />
          <script src="js/jquery-ui-1.11.4/jquery-ui.min.js"></script>
      
      <!--ParamQuery Grid css files-->
          <link rel="stylesheet" href="js/paramquery-pro/pqgrid.min.css" />   
      
          <!--add pqgrid.ui.css for jQueryUI theme support-->
          <link rel="stylesheet" href="js/paramquery-pro/pqgrid.ui.min.css" />
      
          <!--ParamQuery Grid custom theme e.g., office, bootstrap, rosy, chocolate, etc (optional)-->
          <link rel="stylesheet" href="js/paramquery-pro/themes/bootstrap/pqgrid.css" />
      
      <!--ParamQuery Grid js files-->
          <script type="text/javascript" src="js/paramquery-pro/pqgrid.min.js" ></script>   
      
          <!--ParamQuery Grid localization file (necessary since v5.2.0)-->
          <script src="js/paramquery-pro/localize/pq-localize-zh.js"></script>
      
      <!--Include pqTouch file to provide support for touch devices (optional)-->
          <script type="text/javascript" src="js/paramquery-pro/pqTouch/pqtouch.min.js" ></script>   
      
      <!--Include jsZip file to support xlsx and zip export (optional)-->
          <script type="text/javascript" src="js/paramquery-pro/jsZip-2.5.0/jszip.min.js" ></script>   
      
      <!--Include jquery.resize to support auto height of detail views in hierarchy (optional)-->
          <script type="text/javascript" src="js/paramquery-pro/javascript-detect-element-resize/jquery.resize.js" ></script>

magfi.1234

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: export grid data error
« Reply #1 on: March 24, 2020, 12:47:31 pm »
You can create the new blob and save the data in the blob with data type as "type": "text/csv;charset=utf8;"