Hi,
Can anyone help me out explaining how to add a hyperlink in a cell for a
gridpanel?
I could set simple data into my grid but unable to find out how to add a
hyperlink in one of the columns.
Please let me know.
Here is a piece of code:
*GridPanel gridPanel = **new SampleGrid(new int**[]{0,1,2,3},list);*
*gridPanel.setWidth(900);*
*gridPanel.setHeight(400);*
*p.add(gridPanel);*
**
////
*public* SampleGrid(*int*[] columnIndexes, List<Car> list) {
*this*.searchlist = list;
*this*.columnIndexes = columnIndexes;
Object[][] data = getStringArrayFromList();//new String[][]{{"RR", "*Redrock
*", "12/12/2009", "state"},{"LT", "*Infotech*", "11/11/2008","state"}};
MemoryProxy proxy = *new* MemoryProxy(data);
ArrayReader reader = *new* ArrayReader(*new* RecordDef(
*new* FieldDef[]{
*new* StringFieldDef("cid"),
*new* StringFieldDef("title"),
*new* DateFieldDef("lastChanged"),
*new* StringFieldDef("status")
}
));
store = *new* Store(proxy, reader);
store.load();
setStore(store);
ColumnModel columnModel = getColumnConfigs();
setColumnModel(columnModel);
setFrame(*true*);
setStripeRows(*true*);
setIconCls("grid-icon");
}
--
-Regards,
Sowjanya.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---