开发者

ExtJS Gridpanel

I want to dispaly 'Report' hyperlink on G开发者_开发知识库ridpanel 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


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>'
});


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}}
           ]
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜