-
30 Jul 2010 5:48 AM #761
on the gridpanel this was my way of doing it
unsure if its the right way to do it but it works like a charmCode:listeners: { cellclick:function(grid,row,column,event) { var r = livegrid.getStore().getAt(row); var fieldName = grid.getColumnModel().getDataIndex(column); if(fieldName != 'name'){ opennewDialog(r.get('spo'),'index.php?action=view&pid='+r.get('pid')+'&nomenu=1',r.get('pid')) } if(r.get('status_change') == 'true' && fieldName == 'name'){ changestatus('Po id '+r.get('pid')+' - '+r.get('jobname'),'index.php?&id='+r.get('pid')+'&moduleid=44|status&nomenu=1&cat=1'); } } } ,selModel : new Ext.ux.grid.livegrid.RowSelectionModel()
not the expert, kinda fumbling thru it...
-
11 Aug 2010 12:55 PM #762
I am trying to use the livegrid with no plugins. Everything works fine on initial load, then I get this error when scrolling & a new query is sent:
"record is undefined"
http://localhost/js/extjs/ext-all-debug.js
Line 43895
This is that line in the code in the doRender method:
None of the POST parameters are missing, and it returns formatted JSON data, which is rendered (partially sometimes)Code:meta.value = column.renderer.call(column.scope, record.data[column.name], meta, record, rowIndex, i, store);
I am using v3.2.1. I see this problem when I scroll more than a 1/3 of the way down in the grid and it starts buffering. I am also not applying any filters at this point, so it's just doing the standard query. I am also using the same SQL statement for both types, just one returns the records, the other returns the count, then I bundle them together as the json response like in the example, just starts happening when I scroll. When I do see the error and stop scrolling, the entire grid is not filled, just blank space in the bottom 1/2.
As a final note, I am noticing that the onLoad method only gets touched on the initial load. is that intended?
Any tips on what the problem may be?
<edit>
It appears it is only dropping 133 records in the store instead of the 300 I return (bufferSize is set to 300 as well). I will keep digging to see why
-
24 Aug 2010 9:26 AM #763
Editing a cell in live grid shows the wrong cell's content
Editing a cell in live grid shows the wrong cell's content
I have two live grids on a page. The first one seem to work fine.
The second one, however, has the following problem: If i select a cell for editing, then scroll down enough to trigger the buffer load, the selection will flip from the original selected row to the approximate equivalent on the newly scrolled area. The value in the editor will be of another row's cell.
The first working grid uses a CheckboxSelectionModel but the second problematic one is a standard live grid rowselectionmodel
has anyone sees something like this before? I don't hvae any more hairs to pull. :o(
Harel
-
24 Aug 2010 10:45 AM #764
I'll answer my own problem after spending the day with it - My second query was not paginating using the start and end parameters passed so although the grid was scrolling visually , the store was always holding the full data.

-
21 Sep 2010 10:50 PM #765
Ext.ux.LiveGrid works ok, but there is a problem for GridView.adjustScrollerPos - it does not work in IE and Opera. Obviously this is because of use
scrollDom.scrollTop += pixels; (GridView.js, line 1780)
_setting_ scrollTop property works in FF, but does not is IE and Opera. This is a known issue, and AFAIR, scrollTop is not W3C supported dom property.
Or may be there is the other way to save scroll position after store reloading? What I do is save lastScrollPos on beforerefresh and set it back on refresh using adjustScrollerPos(savedScrollTop, true). Works nice in FF (scrolled to top by onLoad, then back to savedScrollTop), but grid scroll stays on its top in other browsers.
-
22 Sep 2010 1:15 AM #766
First I like livegrid very much. I have a small problem and could not find a solution. I just want to append some records to the grid. I do this with the insert function with the bufferSize as index. So far this seems to work fine. Now I would like that the last inserted record is shown. I didn't find any solution for that without a server roundtrip. Any ideas?
-
22 Sep 2010 3:11 AM #767
-
22 Sep 2010 11:54 PM #768
adjustScrollPosition does not work in Chrome too. Although Ext is VERY fast in Chrome.
-
29 Sep 2010 5:33 AM #769
Extremely need Ext.ux.LiveGrid with column groups. I think it should be aggregate code of Ext.ux.LiveGrid and GroupHeaderGrid from this thread:
http://www.sencha.com/forum/showthre...-headers/page5
-
12 Oct 2010 12:43 PM #770
K...I feel stupid....I can't get this to work. I have downloaded the livegrid sample, and put it in and modified the locations of the .css and .js files and all I get is a error in the browser:
Object Expected: Line 466, char 13 - livegrid-all-debug.js
No idea what the problem is. Does anyone have a nice working example or tutorial on how to use this thing?
Jim



Reply With Quote