A workaround for using Ext.ux.CardPanel

I ran into a bug in Ext.ux.CardPanel today. Within a CardPanel object, I included a GridPanel. I could not set the title of GridPanel no matter what I tried. I used the title configuration option and called setTitle public method. The title would not show up.

To work around this issue, I had to enclose the GridPanel within a Panel object. Here is an example:

var tempPanel = new Ext.Panel({ items:[myGridPanelObject]});
var myCardPanel = new Ext.ux.CardPanel({
  activecard: 0,
  items:[tempPanel, otherPanel]
});
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s