Ok, last try:
public void loadTable(){
RecordDef recordDef = new RecordDef(
new FieldDef[]{
new DateFieldDef("created"),
new StringFieldDef("description"),
new StringFieldDef("author")
}
);
MemoryProxy proxy = new MemoryProxy(getNotesData());
ArrayReader reader = new ArrayReader(recordDef);
Store store = new Store(proxy, reader);
ColumnConfig configDate = new ColumnConfig("Creado",
"created", 100, true);
configDate.setRenderer(new Renderer() {
public final String render(Object value, CellMetadata
cellMetadata, Record record, int rowIndex, int colNum, Store store) {
return format.format((Date) value);
}
});
ColumnConfig[] columns = new ColumnConfig[] { configDate,
new ColumnConfig("Descripcion", "description", 350, true),
new ColumnConfig("Autor", "author", 150, true)
};
ColumnModel columnModel = new ColumnModel(columns);
notesTable = new GridPanel(store, columnModel);
notesTable.setStripeRows(true);
notesTable.setWidth(700);
GridView view = new GridView();
view.setForceFit(true);
notesTable.setView(view);
this.add(notesTable);
this.doLayout();
//The lines:
store.load();
notesTable.getView().refresh(true);
}
let see...
Leo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---