You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need DataTable inline editors to appear for some particular cells only, based on a parameter which is passed in json along the data.
(Here is yui2 code snippet from an app which has to be ported to yui3: http://jsfiddle.net/Anode/w4u1j6fh/)
I've put yui3 code into: http://jsfiddle.net/Anode/jd0cvmq8/2/ which still does not implement the old functionality fully.
BTW In the new (yui3) code refresh of the table data (by selecting a tab) "kills" the possibility to access properties (making an error) from DOM, this is the second problem I have, so please do not change tabs after initial run*.
So the 1st question is: how to cancel/hide inline editor in yui3 in the same way as we were doing it in yui2 (so, only green cells are editable, as in the table on the first link)?
Why e.stopPropagation() does not work (line 225)? If it is wrong way to cancel event bubbling up, then how to cancel the editor by other means?
Y.delegate('click', function(e){
...
if(state!='w'){
e.stopPropagation(); //this does not consume the event
alert('why stop propagation has been ignored and editor created?');
return;
}
}
Thanks
Vasili
To reproduce: a) reload the table. Not clicking on tabs - click on a cell (alert will appear); b) Select a different tab (DataTable will be completely recreated). Click on a cell. No alert due to error ("Cannot read property 'get' of null", after getRecord() call)
The text was updated successfully, but these errors were encountered:
Hi,
We need DataTable inline editors to appear for some particular cells only, based on a parameter which is passed in json along the data.
(Here is yui2 code snippet from an app which has to be ported to yui3: http://jsfiddle.net/Anode/w4u1j6fh/)
I've put yui3 code into: http://jsfiddle.net/Anode/jd0cvmq8/2/ which still does not implement the old functionality fully.
BTW In the new (yui3) code refresh of the table data (by selecting a tab) "kills" the possibility to access properties (making an error) from DOM, this is the second problem I have, so please do not change tabs after initial run*.
So the 1st question is: how to cancel/hide inline editor in yui3 in the same way as we were doing it in yui2 (so, only green cells are editable, as in the table on the first link)?
Why e.stopPropagation() does not work (line 225)? If it is wrong way to cancel event bubbling up, then how to cancel the editor by other means?
Thanks
Vasili
The text was updated successfully, but these errors were encountered: