1
votes

I want to dispaly 'Report' hyperlink on Gridpanel paging toolbar (or Title bar) how can i do it (click on Report link display window with grid data) Plz help me

Thanks in advance

2

2 Answers

0
votes

How about something very simple like this. (The default object for Toolbar's add method is Button. Have a look at ExtJS API documentation if you want something more fancy.)

gridPanel.getTopToolbar().add({
    text:'<a href="http://www.stackoverflow.com">Visit Stackoverflow.com</a>'
});
0
votes

Providing a link in the ExtJS GridPanel Titlebar.

I will be creating a button in tools config of the gridpanel, and set its ui config to plain, also you can write the handler according to your requirements.

Ext.create('Ext.grid.Panel',{
    title: 'Demo Grid Panel'
    tools: [
               { ui: 'plain',text: 'Open Window', handler : function(){ //link handler}}
           ]
});