0
 {
     text: 'Berkas',
     align: 'center',
     cell: {

         xtype: 'button',
         dataIndex: 'file_kp_prodi_mhs',
         text: 'View',
         handler: function(button, e) {
             window.open(file_kp_prodi_mhs);
         },

     }
 }
scebotari66
  • 3,395
  • 2
  • 27
  • 34

2 Answers2

1

Try this(change out vg.no with what you want):

<div href="https://www.vg.no" onclick="openInNewTab('https://www.vg.no')">Something To Click On</div>
    <script>
        function openInNewTab(url) {
            var win = window.open(url);
        win.focus();
        }
    </script>
0

You should get value from record like:

 {
     text: 'Berkas',
     align: 'center',
     cell: {
         xtype: 'button',
         dataIndex: 'file_kp_prodi_mhs',
         text: 'View',
         handler: function(button, e) {
             window.open(e.record.get(button.dataIndex));
         },
     }
 }
norbeq
  • 2,923
  • 1
  • 16
  • 20