What can cause it ?
- Code: Select all
BufferView view = new BufferView();
view.setRowHeight(32);
grid.setView(view);
I have added gxt grid on absolutepanel..
when i try to render data, row height become problematic... what can cause the problem?
and how can i fix it ?
Thanks,
- Code: Select all
private class ImgCallClickHandler implements ClickHandler {
public void onClick(ClickEvent event) {
//Window.alert( "selammm" );
//Object result;
//List<DMCallLater> userList = (List<DMCallLater>) result;
List<DMCallLater> lstTemp= new ArrayList<DMCallLater>();
lstTemp.add( new DMCallLater("test", "test1", "test2" ) );
lstTemp.add( new DMCallLater("me", "me1", "me2" ) );
lstTemp.add( new DMCallLater("me", "me1", "me2" ) );
// lstTemp.add( new DMCallLater("me", "me1", "me2" ) );
//lstTemp.add( new DMCallLater("me", "me1", "me2" ) );
ListStore<DMCallLater> store = new ListStore<DMCallLater>();
store.add(lstTemp);
absolutePanel_2.remove(grdCallLater);
configs_2.clear();
clmncnfgTest = new ColumnConfig("ilk", "Test", 150);
configs_2.add(clmncnfgTest);
columnConfig_1 = new ColumnConfig("ikinci", "New Column111111111111", 150);
configs_2.add(columnConfig_1);
ColumnConfig columnConfig = new ColumnConfig("ucuncu", "New Column", 150);
configs_2.add(columnConfig);
ListStore<DMCallLater> employeeList = new ListStore<DMCallLater>();
employeeList.add( new TestData().getEmployees());
com.extjs.gxt.ui.client.widget.grid.Grid<DMCallLater> grdCallLater =
new com.extjs.gxt.ui.client.widget.grid.Grid<DMCallLater> (
employeeList, new ColumnModel(configs_2) );
//grdCallLater.getView().
grdCallLater.setSize("494px", "263px");
grdCallLater.setBorders(true);
//grdCallLater.setStripeRows(true);
//grdCallLater.getView().setForceFit(true);
absolutePanel_2.add(grdCallLater);
absolutePanel_2.setWidgetPosition(grdCallLater, 0, 0);
}
}
public class DMCallLater extends BaseModel {
public class TestData {
public List<DMCallLater> getEmployees()
{
List<DMCallLater> test12 = new ArrayList<DMCallLater>();
//DateTimeFormat f = DateTimeFormat.getFormat("yyyy-mm-dd");
test12.add(new DMCallLater( "Hollie Voss", "General Administration", "Executive Director" ));
test12.add(new DMCallLater( "Emerson Milton", "Information Technology", "CTO" ));
test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" ));
test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" ));
test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" ));
test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" ));
test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" ));
test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" ));
test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" ));
test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" ));
test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" ));
test12.add(new DMCallLater( "Christina Blake", "Information Technology", "Project Manager" ));
return test12;
}
}