-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grid *Edit* demo broken #442
Comments
Not only is the demo itself broken (due to renaming of the attribute as above), but the actual implementation somewhere inside ng-grid is also broken (see below). Focussing on an editable cell and changing the contents results in this JS error: TypeError: undefined is not a function I talked with Misko about this, and he looked at the error above and concluded: "$eval('row.entity.' + col.field) = 10 <-- this is meaningless" Perhaps it's just a typo in ng-grid.js? Please investigate. Thanks. Steve |
I'll take a stab at taking the $eval out. I don't know why it was added so therefore I don't know what to test when it's gone, but allowing people to do their own templates pretty much demands that COL_FIELD be the naked property. |
Awesome, thank you guys for looking at it. Since I am hoping to make progress w/o waiting for 2.0.6 or future branches to be official, is there some way I can hack around this problem myself? I.e., can you prescribe a quick fix for me? Thanks heaps. Steve |
Shane, that change works brilliantly for my purposes, and unblocks me. Thank you! I like that it's now pretty standard (using ng-model; and adding my own ng-blur directive works great). I'll just hack this into my copy for now. :-) |
-Removed the $eval on COL_FIELD placeholder -Simplified ng-input to only be concerned with hiding keystrokes and using ESC to backout edit -Use ng-model in EditableCellTemplate to do actual binding
-Removed the $eval on COL_FIELD placeholder -Simplified ng-input to only be concerned with hiding keystrokes and using ESC to backout edit -Use ng-model in EditableCellTemplate to do actual binding
This works in 2.0.7. (was fixed in 2.0.6) |
I am trying the Edit On Focus Cell Selection Example demo, and it does not allow me to edit. In the Plunker, the
gridOptions
does not have theenableCellEdit: true
attribute.Also, this demo does not teach people how to bind the view and data model. And I have not figured it out either :( Please update the demo, with data model binding example.
Thanks.
The text was updated successfully, but these errors were encountered: