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}}
]
});
精彩评论