The Grid Cloumns are being displayed but the row data is not being diplayed.
But again I have a event Listener added to the grid. and the event is working perfectly fine. I am able to get the Selected Model data from the event Object and pass it to the next Widget.
Has someone experienced a similar problem. Appreciate any help
public class PersonDTO extends BeanModel implements Serializable{
which did not work.I thought this should work because I found this info from a lot of examples online and in may forums. What actually worked was the below
public class PersonDTO implements BeanModelTag,Serializable{
I havent checked it in firbug. But I am sure it is present in the grid and just not visible.
I am saying that because the same data is being passed to the Event. But will check it in firebug anyways
Do you have any idea how to make the data visible. I tried setting all kinds of sizes for both the ContentPanel and the Grid . Which dint work ofcourse
I am sorry for being so sure abt the grid containing data. Turns our my Grid does not contain any data, but as weird as it gets the grind event works fine.
Ok getting back to my concern , I realised that I missed out mentioning a very imp point.
Actually I am using uibinder GXT Grid.
So I went back and tried a sample first ( a simple test) just to make sure , and the sample also did not work for me. So my question is does the uibinder GXT Grid work at all.
I did use Form and other panels in uibinder GXT which worked great for me. I am stuck with the Grid.
LayoutContainer c = new LayoutContainer();
private ColumnModel cm;
public SearchResultsViewImpl() {
createView();
initComponent(c);
}
private Presenter presenter;
public void setPresenter(Presenter presenter) {
this.presenter = presenter;
}
public void createView(){
c.setLayout(new FlowLayout(10));
List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
ColumnConfig column = new ColumnConfig();
column.setId("id");
column.setHeader("id");
column.setWidth(200);
configs.add(column);
column = new ColumnConfig();
column.setId("firstName");
column.setHeader("firstName");
column.setWidth(100);
configs.add(column);
ListStore<PersonDTO> store = new ListStore<PersonDTO>();
store.add(new PersonDTO(new Integer(0),"test","test","test","test","test","test","test","test","test",
new Integer(0),new Date(),new Integer(0),new Date(),"test","test","test","test","test","test","test"));
That is not a simple standalone testcase implementing EntryPoint. That are just code snippets. You really should take the time to reproduce your issue in a small standalone testcase that everyone can run, so your problem can get resolved.
public class PersonDTO extends BeanModel implements Serializable{
which did not work.I thought this should work because I found this info from a lot of examples online and in may forums. What actually worked was the below
public class PersonDTO implements BeanModelTag,Serializable{