OPEN A WINDOW WITH A TOOLBAR

53 Views Asked by At

I use a tbar in my grid and I want open a window when I click the button toolbar ..

But It is not work ..

My code is :

tbar : [
        {
           text : 'Accès à une campagne',
       handler: function(val, meta, record){ 
          return '<a href ="/gedeo/camp/dossier/id/' + id + '" target="_blank">' + val + '</a>';
                }
            }
        ],

If someone can help me please

1

There are 1 best solutions below

0
On

Just use window.open:

{
   text : 'Accès à une campagne',
   handler: function(val, meta, record){ 
     window.open('/gedeo/camp/dossier/id/' + id);
   }
}