|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
bug w/ gridshello,
I found a bug when sorting grids. my grid has one(or more) hidden column. when resorting my grid, the vertical separator of the hidden column appears and all next ones are visually misaligned. here is my code: var g = new rialto.widget.Grid({top:5, left: 5, height: 300, position: 'absolute', arrHeader: [ {title: "A", type: "string", width: 40}, {title: "B", type: "string", width: 80}, {title: "C", type: "string", width: 55}, {title: "D", type: "string", width: 85}], name: 'mygrid', parent: document.body, navigationMode: false, cellActive:false, sortable:true, multiSelect: true, lineHeight:16, boolPrint:true, withContextualMenu: true, switchable: false, clickable:true, autoResizableW: false, writable: true }); var t = [ ["1", "numero 1", "blabla", "blabla"], ["2", "numero 2", "blabla", "blabli"], ["3", "numero 3", "blabla", "et blabla"], ["4", "numero 4", "blabla", "et blablabla"], ]; g.fillGrid(t, 0, false); g.setColumnVisible(false, 2); another remark: the wait behaviour when filling grids is really nice. when sorting many line grids, it should be great that these wait objects appear because of the cost of execution time and the lack of any activity during it. thanks in advance mathieu |
|
|
Re: bug w/ gridsHello mathieu
In fact the problem was coming from the loading indicator. As the loading was asynchronous the setColumnVisible was call when the grid haven't finish to load. So you have 2 solution (after updating the rialto.js file) 1. Keep the asynchronous indicator you have to add a property in the constructor asynchLoad:true and overwrite the onfillGrid method to add treatment to do after fill exemple g.fillGrid(t, 0, false); g.onfillGrid=function(){ g.setColumnVisible(false, 2); } 2.don't use the the asynchronous indicator So you can't keep your code For the sort method it is a good idea to add the ajax indicator but i need to make some test Cyril --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@...> wrote: > > hello, > > I found a bug when sorting grids. > my grid has one(or more) hidden column. > when resorting my grid, the vertical separator of the hidden > column appears and all next ones are visually misaligned. > here is my code: > > var g = new rialto.widget.Grid({top:5, left: 5, height: 300, position: > 'absolute', > arrHeader: [ > {title: "A", type: "string", width: 40}, > {title: "B", type: "string", width: 80}, > {title: "C", type: "string", width: 55}, > {title: "D", type: "string", width: 85}], > name: 'mygrid', parent: document.body, navigationMode: false, > cellActive:false, sortable:true, multiSelect: true, lineHeight:16, > boolPrint:true, withContextualMenu: true, switchable: false, > clickable:true, autoResizableW: false, > writable: true > }); > > var t = [ > ["1", "numero 1", "blabla", "blabla"], > ["2", "numero 2", "blabla", "blabli"], > ["3", "numero 3", "blabla", "et blabla"], > ["4", "numero 4", "blabla", "et blablabla"], > ]; > g.fillGrid(t, 0, false); > g.setColumnVisible(false, 2); > > > another remark: > the wait behaviour when filling grids is really nice. > when sorting many line grids, it should be great that these > wait objects appear because of the cost of execution time and > the lack of any activity during it. > > thanks in advance > > mathieu > |
|
|
Re: bug w/ gridshello Cyril,
sorry but it doesn't work I've updated my rialto.js file and I can't find the onfillGrid definition... what's wrong? thanks Mathieu --- In rialto-dev@..., "Cyril Balit" <cbalit@...> wrote: > > Hello mathieu > > In fact the problem was coming from the loading indicator. As the > loading was asynchronous the setColumnVisible was call when the grid > haven't finish to load. > > So you have 2 solution (after updating the rialto.js file) > > 1. Keep the asynchronous indicator > you have to add a property in the constructor > asynchLoad:true > and overwrite the onfillGrid method to add treatment to do after fill > > exemple > > g.fillGrid(t, 0, false); > g.onfillGrid=function(){ > g.setColumnVisible(false, 2); > } > > 2.don't use the the asynchronous indicator > So you can't keep your code > > For the sort method it is a good idea to add the ajax indicator but i > need to make some test > > Cyril > > --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@> > wrote: > > > > hello, > > > > I found a bug when sorting grids. > > my grid has one(or more) hidden column. > > when resorting my grid, the vertical separator of the hidden > > column appears and all next ones are visually misaligned. > > here is my code: > > > > var g = new rialto.widget.Grid({top:5, left: 5, height: 300, position: > > 'absolute', > > arrHeader: [ > > {title: "A", type: "string", width: 40}, > > {title: "B", type: "string", width: 80}, > > {title: "C", type: "string", width: 55}, > > {title: "D", type: "string", width: 85}], > > name: 'mygrid', parent: document.body, navigationMode: false, > > cellActive:false, sortable:true, multiSelect: true, lineHeight:16, > > boolPrint:true, withContextualMenu: true, switchable: false, > > clickable:true, autoResizableW: false, > > writable: true > > }); > > > > var t = [ > > ["1", "numero 1", "blabla", "blabla"], > > ["2", "numero 2", "blabla", "blabli"], > > ["3", "numero 3", "blabla", "et blabla"], > > ["4", "numero 4", "blabla", "et blablabla"], > > ]; > > g.fillGrid(t, 0, false); > > g.setColumnVisible(false, 2); > > > > > > another remark: > > the wait behaviour when filling grids is really nice. > > when sorting many line grids, it should be great that these > > wait objects appear because of the cost of execution time and > > the lack of any activity during it. > > > > thanks in advance > > > > mathieu > > > |
|
|
Re: bug w/ gridsHello Mathieu,
Sorry i made a mistake it is the onfill method. Cyril --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@...> wrote: > > hello Cyril, > > sorry but it doesn't work > I've updated my rialto.js file and I can't find the onfillGrid > definition... > what's wrong? > thanks > > Mathieu > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > Hello mathieu > > > > In fact the problem was coming from the loading indicator. As the > > loading was asynchronous the setColumnVisible was call when the grid > > haven't finish to load. > > > > So you have 2 solution (after updating the rialto.js file) > > > > 1. Keep the asynchronous indicator > > you have to add a property in the constructor > > asynchLoad:true > > and overwrite the onfillGrid method to add treatment to do after fill > > > > exemple > > > > g.fillGrid(t, 0, false); > > g.onfillGrid=function(){ > > g.setColumnVisible(false, 2); > > } > > > > 2.don't use the the asynchronous indicator > > So you can't keep your code > > > > For the sort method it is a good idea to add the ajax indicator but i > > need to make some test > > > > Cyril > > > > --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@> > > wrote: > > > > > > hello, > > > > > > I found a bug when sorting grids. > > > my grid has one(or more) hidden column. > > > when resorting my grid, the vertical separator of the hidden > > > column appears and all next ones are visually misaligned. > > > here is my code: > > > > > > var g = new rialto.widget.Grid({top:5, left: 5, height: 300, > > > 'absolute', > > > arrHeader: [ > > > {title: "A", type: "string", width: 40}, > > > {title: "B", type: "string", width: 80}, > > > {title: "C", type: "string", width: 55}, > > > {title: "D", type: "string", width: 85}], > > > name: 'mygrid', parent: document.body, navigationMode: false, > > > cellActive:false, sortable:true, multiSelect: true, lineHeight:16, > > > boolPrint:true, withContextualMenu: true, switchable: false, > > > clickable:true, autoResizableW: false, > > > writable: true > > > }); > > > > > > var t = [ > > > ["1", "numero 1", "blabla", "blabla"], > > > ["2", "numero 2", "blabla", "blabli"], > > > ["3", "numero 3", "blabla", "et blabla"], > > > ["4", "numero 4", "blabla", "et blablabla"], > > > ]; > > > g.fillGrid(t, 0, false); > > > g.setColumnVisible(false, 2); > > > > > > > > > another remark: > > > the wait behaviour when filling grids is really nice. > > > when sorting many line grids, it should be great that these > > > wait objects appear because of the cost of execution time and > > > the lack of any activity during it. > > > > > > thanks in advance > > > > > > mathieu > > > > > > |
|
|
Re: bug w/ gridsCyril,
the first load of grid is correct but it fails when resorting it... the event is not called when sorting the grid by clicking its headers Mathieu --- In rialto-dev@..., "Cyril Balit" <cbalit@...> wrote: > > Hello Mathieu, > > Sorry i made a mistake it is the onfill method. > > Cyril > > --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@> > wrote: > > > > hello Cyril, > > > > sorry but it doesn't work > > I've updated my rialto.js file and I can't find the onfillGrid > > definition... > > what's wrong? > > thanks > > > > Mathieu > > > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > > > Hello mathieu > > > > > > In fact the problem was coming from the loading indicator. As the > > > loading was asynchronous the setColumnVisible was call when the grid > > > haven't finish to load. > > > > > > So you have 2 solution (after updating the rialto.js file) > > > > > > 1. Keep the asynchronous indicator > > > you have to add a property in the constructor > > > asynchLoad:true > > > and overwrite the onfillGrid method to add treatment to do after > > > > > > exemple > > > > > > g.fillGrid(t, 0, false); > > > g.onfillGrid=function(){ > > > g.setColumnVisible(false, 2); > > > } > > > > > > 2.don't use the the asynchronous indicator > > > So you can't keep your code > > > > > > For the sort method it is a good idea to add the ajax indicator > > > need to make some test > > > > > > Cyril > > > > > > --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@> > > > wrote: > > > > > > > > hello, > > > > > > > > I found a bug when sorting grids. > > > > my grid has one(or more) hidden column. > > > > when resorting my grid, the vertical separator of the hidden > > > > column appears and all next ones are visually misaligned. > > > > here is my code: > > > > > > > > var g = new rialto.widget.Grid({top:5, left: 5, height: 300, > position: > > > > 'absolute', > > > > arrHeader: [ > > > > {title: "A", type: "string", width: 40}, > > > > {title: "B", type: "string", width: 80}, > > > > {title: "C", type: "string", width: 55}, > > > > {title: "D", type: "string", width: 85}], > > > > name: 'mygrid', parent: document.body, navigationMode: false, > > > > cellActive:false, sortable:true, multiSelect: true, lineHeight:16, > > > > boolPrint:true, withContextualMenu: true, switchable: false, > > > > clickable:true, autoResizableW: false, > > > > writable: true > > > > }); > > > > > > > > var t = [ > > > > ["1", "numero 1", "blabla", "blabla"], > > > > ["2", "numero 2", "blabla", "blabli"], > > > > ["3", "numero 3", "blabla", "et blabla"], > > > > ["4", "numero 4", "blabla", "et blablabla"], > > > > ]; > > > > g.fillGrid(t, 0, false); > > > > g.setColumnVisible(false, 2); > > > > > > > > > > > > another remark: > > > > the wait behaviour when filling grids is really nice. > > > > when sorting many line grids, it should be great that these > > > > wait objects appear because of the cost of execution time and > > > > the lack of any activity during it. > > > > > > > > thanks in advance > > > > > > > > mathieu > > > > > > > > > > |
|
|
Re: bug w/ gridsMathieu
I fixed it. I also add the ajax indicator when you sort the grid. But on the sort the onfill method is not call. Just update your rialto.js file Cyril --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@...> wrote: > > Cyril, > > the first load of grid is correct but it fails when > resorting it... > the event is not called when sorting the grid by clicking > its headers > > Mathieu > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > Hello Mathieu, > > > > Sorry i made a mistake it is the onfill method. > > > > Cyril > > > > --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@> > > wrote: > > > > > > hello Cyril, > > > > > > sorry but it doesn't work > > > I've updated my rialto.js file and I can't find the onfillGrid > > > definition... > > > what's wrong? > > > thanks > > > > > > Mathieu > > > > > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > > > > > Hello mathieu > > > > > > > > In fact the problem was coming from the loading indicator. As the > > > > loading was asynchronous the setColumnVisible was call when > > > > haven't finish to load. > > > > > > > > So you have 2 solution (after updating the rialto.js file) > > > > > > > > 1. Keep the asynchronous indicator > > > > you have to add a property in the constructor > > > > asynchLoad:true > > > > and overwrite the onfillGrid method to add treatment to do after > fill > > > > > > > > exemple > > > > > > > > g.fillGrid(t, 0, false); > > > > g.onfillGrid=function(){ > > > > g.setColumnVisible(false, 2); > > > > } > > > > > > > > 2.don't use the the asynchronous indicator > > > > So you can't keep your code > > > > > > > > For the sort method it is a good idea to add the ajax indicator > but i > > > > need to make some test > > > > > > > > Cyril > > > > > > > > --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@> > > > > wrote: > > > > > > > > > > hello, > > > > > > > > > > I found a bug when sorting grids. > > > > > my grid has one(or more) hidden column. > > > > > when resorting my grid, the vertical separator of the hidden > > > > > column appears and all next ones are visually misaligned. > > > > > here is my code: > > > > > > > > > > var g = new rialto.widget.Grid({top:5, left: 5, height: 300, > > position: > > > > > 'absolute', > > > > > arrHeader: [ > > > > > {title: "A", type: "string", width: 40}, > > > > > {title: "B", type: "string", width: 80}, > > > > > {title: "C", type: "string", width: 55}, > > > > > {title: "D", type: "string", width: 85}], > > > > > name: 'mygrid', parent: document.body, navigationMode: false, > > > > > cellActive:false, sortable:true, multiSelect: true, > > > > > boolPrint:true, withContextualMenu: true, switchable: false, > > > > > clickable:true, autoResizableW: false, > > > > > writable: true > > > > > }); > > > > > > > > > > var t = [ > > > > > ["1", "numero 1", "blabla", "blabla"], > > > > > ["2", "numero 2", "blabla", "blabli"], > > > > > ["3", "numero 3", "blabla", "et blabla"], > > > > > ["4", "numero 4", "blabla", "et blablabla"], > > > > > ]; > > > > > g.fillGrid(t, 0, false); > > > > > g.setColumnVisible(false, 2); > > > > > > > > > > > > > > > another remark: > > > > > the wait behaviour when filling grids is really nice. > > > > > when sorting many line grids, it should be great that these > > > > > wait objects appear because of the cost of execution time and > > > > > the lack of any activity during it. > > > > > > > > > > thanks in advance > > > > > > > > > > mathieu > > > > > > > > > > > > > > > |
|
|
Re: bug w/ gridsgreat Cyril!
my sorting bug is solved with the latest version (03/07) Mathieu --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@...> wrote: > > Cyril, > > the first load of grid is correct but it fails when > resorting it... > the event is not called when sorting the grid by clicking > its headers > > Mathieu > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > Hello Mathieu, > > > > Sorry i made a mistake it is the onfill method. > > > > Cyril > > > > --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@> > > wrote: > > > > > > hello Cyril, > > > > > > sorry but it doesn't work > > > I've updated my rialto.js file and I can't find the onfillGrid > > > definition... > > > what's wrong? > > > thanks > > > > > > Mathieu > > > > > > --- In rialto-dev@..., "Cyril Balit" <cbalit@> wrote: > > > > > > > > Hello mathieu > > > > > > > > In fact the problem was coming from the loading indicator. As the > > > > loading was asynchronous the setColumnVisible was call when > > > > haven't finish to load. > > > > > > > > So you have 2 solution (after updating the rialto.js file) > > > > > > > > 1. Keep the asynchronous indicator > > > > you have to add a property in the constructor > > > > asynchLoad:true > > > > and overwrite the onfillGrid method to add treatment to do after > fill > > > > > > > > exemple > > > > > > > > g.fillGrid(t, 0, false); > > > > g.onfillGrid=function(){ > > > > g.setColumnVisible(false, 2); > > > > } > > > > > > > > 2.don't use the the asynchronous indicator > > > > So you can't keep your code > > > > > > > > For the sort method it is a good idea to add the ajax indicator > but i > > > > need to make some test > > > > > > > > Cyril > > > > > > > > --- In rialto-dev@..., "mathieu.cier" <mathieu.cier@> > > > > wrote: > > > > > > > > > > hello, > > > > > > > > > > I found a bug when sorting grids. > > > > > my grid has one(or more) hidden column. > > > > > when resorting my grid, the vertical separator of the hidden > > > > > column appears and all next ones are visually misaligned. > > > > > here is my code: > > > > > > > > > > var g = new rialto.widget.Grid({top:5, left: 5, height: 300, > > position: > > > > > 'absolute', > > > > > arrHeader: [ > > > > > {title: "A", type: "string", width: 40}, > > > > > {title: "B", type: "string", width: 80}, > > > > > {title: "C", type: "string", width: 55}, > > > > > {title: "D", type: "string", width: 85}], > > > > > name: 'mygrid', parent: document.body, navigationMode: false, > > > > > cellActive:false, sortable:true, multiSelect: true, > > > > > boolPrint:true, withContextualMenu: true, switchable: false, > > > > > clickable:true, autoResizableW: false, > > > > > writable: true > > > > > }); > > > > > > > > > > var t = [ > > > > > ["1", "numero 1", "blabla", "blabla"], > > > > > ["2", "numero 2", "blabla", "blabli"], > > > > > ["3", "numero 3", "blabla", "et blabla"], > > > > > ["4", "numero 4", "blabla", "et blablabla"], > > > > > ]; > > > > > g.fillGrid(t, 0, false); > > > > > g.setColumnVisible(false, 2); > > > > > > > > > > > > > > > another remark: > > > > > the wait behaviour when filling grids is really nice. > > > > > when sorting many line grids, it should be great that these > > > > > wait objects appear because of the cost of execution time and > > > > > the lack of any activity during it. > > > > > > > > > > thanks in advance > > > > > > > > > > mathieu > > > > > > > > > > > > > > > |
| Free Forum Powered by Nabble | Forum Help |