Hi,

you can use getCacheContent, which includes the __rowBlockCache via 
var cache = this.getCacheContent().rowBlockCache;

Best,
Martin


Krycek wrote:
> 
> Hi,
> 
> I'm using an method like this to update a row in the remote table:
> 
>     setRowData : function(rowIndex, data)
>     {
>       var blockSize = this.getBlockSize();
>       var block = parseInt(rowIndex / blockSize);
>       var blockData = this.getRowBlockCache(block);
> 
>       if (blockData)
>       {
>         blockData.rowDataArr[rowIndex - (block * blockSize)] = data;
> 
>         // Inform the listeners
>         if (this.hasListener("dataChanged"))
>         {
>           var data =
>           {
>             firstRow    : rowIndex,
>             lastRow     : rowIndex,
>             firstColumn : 0,
>             lastColumn  : this.getColumnCount()
>           };
> 
>           this.fireDataEvent("dataChanged", data);
>         }
>       }
>     }
> 
> 
> the thing is that I need that method getRowBlockCache(block) in
> qx.ui.table.Remote class to return this.__rowBlockCache[block]; that is
> private.
> 
> My question is: is there any other way to do that?
> 
> If there isn't I would suggest to include that method (getRowBLockCache)
> in
> qx.ui.table.Remote or turn __rowBlockCache into a protected var.
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/How-to-update-Remote-Table-row-tp4260538p4265755.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to