Skip to content

Instantly share code, notes, and snippets.

@veriojon
Created March 5, 2011 03:00
Show Gist options
  • Save veriojon/856054 to your computer and use it in GitHub Desktop.
Save veriojon/856054 to your computer and use it in GitHub Desktop.
excel error stuff
var ErrorListView = new Ext.list.ListView({
store: ExcelErrorStore,
autoScroll: true,
columns: [{
header: 'SSID',
width: .2,
dataIndex: 'ssid'
},{
header: 'Error Type',
width: .3,
dataIndex: 'etype'
},{
header: 'Error Description',
width: .5,
dataIndex: 'edesc'
}]
});
var ErrorSummaryListView = new Ext.list.ListView({
store: ExcelErrorSummaryStore,
columns: [{
header: '#',
width: .2,
dataIndex: 'num'
},{
header: 'Error Type',
width: .8,
dataIndex: 'type'
}]
});
var ExcelErrorPanel = new Ext.Panel({
id: 'ExcelErrors',
width: 300,
height: 1500,
autoScroll: true,
layout: 'fit',
title: 'Excel Import Error Detail',
items: ErrorListView
});
var ExcelErrorSummaryPanel = new Ext.Panel({
id: 'ExcelSummary',
width: 300,
height: 250,
layout: 'fit',
title: 'Excel Import Error Summary',
items: ErrorSummaryListView
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment