Skip to content

Replies

0
Talha Anwer
Talha Anwer answered on Nov 18, 2022 5:12 PM

It can be added to Grid Configuration as well, as in:

  1. <script type="text/javascript">
  2. var adventureWorks = [{“ProductID”:1},{“ProductID”:2},{“ProductID”:3},{“ProductID”:4},{“ProductID”:5},{“ProductID”:6}];
  3.     $(window).load(function () {
  4.     $("#grid1").igGrid({
  5.         columns: [
  6.             { headerText: “Product ID”, key:“ProductID”, dataType:“number”, width: “100px”}
  7.         ],
  8.         autoGenerateColumns: false,
  9.         dataSource: adventureWorks,
  10.         rendered: function() {$("#grid1_ProductID").attr("title", "my custom title");}
  11.     });
  12. });
  13. </script>