|
From: <ken...@us...> - 2008-11-20 15:22:52
|
Revision: 895
http://andro.svn.sourceforge.net/andro/?rev=895&view=rev
Author: kendowns
Date: 2008-11-20 15:22:49 +0000 (Thu, 20 Nov 2008)
Log Message:
-----------
Daily x6 improvements.
Modified Paths:
--------------
trunk/andro/clib/x6.js
Modified: trunk/andro/clib/x6.js
===================================================================
--- trunk/andro/clib/x6.js 2008-11-17 14:58:03 UTC (rev 894)
+++ trunk/andro/clib/x6.js 2008-11-20 15:22:49 UTC (rev 895)
@@ -1611,6 +1611,33 @@
var uiEditRow = u.p(self,'uiEditRow','');
/*
+ * A grid may be set to receive a cacheRows event.
+ * If so, it will replace its own data with the
+ * data that has been provided.
+ */
+ if(u.p(self,'xCacheRows','')=='Y') {
+ x6events.subscribeToEvent('cacheRows_'+table,id);
+
+ self['receiveEvent_cacheRows_'+table] = function(rows) {
+ // Clear current data
+ $(this).find('.tbody').html();
+ // Add new data
+ for(var x in rows) {
+ this.addRow(rows[x]);
+ }
+ }
+ }
+
+ /*
+ * Related to the above is a simple command to add a row
+ *
+ */
+ self.addRow = function(row) {
+
+ }
+
+
+ /*
* The grid is happy to display a new row for
* editing if a certain flag has been set.
* The event uiNewRow is unconditional, it means
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|