Hi,
I want the ListGrid to autofit according the contents given in setData. So I added Autofit.HORIZONTAL property. However it is not performing the fit. The code is:
However when i resize using mouse, the columns are getting adjusted accordingly. How to autofit the grid according to initial contents?
VERY URGENT, so plz reply :D
Thanks,
Venu
I want the ListGrid to autofit according the contents given in setData. So I added Autofit.HORIZONTAL property. However it is not performing the fit. The code is:
Code:
ListGrid gd = new ListGrid(); gd.setWidth(100); gd.setHeight(400); gd.setAutoFitData(Autofit.HORIZONTAL); gd.setData(myrecords); RootPanel rp = RootPanel.get("mainPanel"); rp.add(gd);
VERY URGENT, so plz reply :D
Thanks,
Venu
Comment