Hi!
I am trying to add column configs dynamically to the grid by using the grid.reconfigure method. It all seem to work well except from the fact that the grid gets dimmed out (it is like a model window has opened on top of the grid). This only applies to the grid and not to anything else in the window. I can still add more columns if i want to but I cannot interact with the grid any more.
Anyone with the same problem? Suggestions for a solution?
The problem was that I used the grid with the loadmask. It seems that if the loadmask is activated then this problem arises. Removing the load mask solves the problem.
Yes. I'm having same problem too. But I call unmask() when finish load.
eg:
loader.addLoadListener(new LoadListener() {
public void loaderLoad(LoadEvent le) {
grid.reconfigure(store, cm);
grid.el().unmask();
}
Yes. I'm having same problem too. But I call unmask() when finish load.
eg:
loader.addLoadListener(new LoadListener() {
public void loaderLoad(LoadEvent le) {
grid.reconfigure(store, cm);
grid.el().unmask();
}
Why do you reconfigure during the load event? This seems like a strange place to reconfigure the grid when the loader is loading?
I load records in xml format (work for json too). So, when every page it will load specific record and I have to reconfigure each time I load the records. If not, the grid only show same list each time it load. In beginning, I load 50 records and set 20 records for pagesize but the grid show all 50 records for every pages. So, for every toolbar click (next, previous etc button), I will sent which page the activepage, let say page no 3, the server side will return records for 151 ~ 200 (pagesize = 50) and by doing this, I will load required records for activepage only. So, here I need to reconfigure the grid with new records.
ps: sorry for my English. If you not I understand, I will try to re explain it better.
yes, I know but I can't display the records correctly in the grids. I try it with json and xml format. No problem with rpc sample. When load xml which contain 50 records with pagesize 20, the grid show all 50 records for every pages. However, the paging toolbar show correct info. I get 3 pages.