javascript - Angularjs grid selectedItems always returning undefined? -
Will not show angularjs grid in my sample? This is, any time I try to try the selected references, I get "undefined". I have tried in Chrome and IE with the same result.
I have made a planker that is not the "original" item on the coiler grid page. Plnkr:
Relat code:
$ scope.gridOptions = {data: 'myData', selected items: $ scope.mySelectionChoiceChangeChange: function (line, event)) { If (row.selected) {Warning ('items selected' + $ scope.mySelections); Warning ('items selected' + $ scope.gridOptions.selectedItems)}}};
When trying to evaluate the selected items, I get "undefined", either directly through $ scope.mySelections or the grid. I have put "debugger"; Checked lines and values in "If" - no selected item properties appear on the grid?
(Edit: ** Removed from code block **. Forgotten that you can not code boldfox you have forgotten to start your $ scope.mySelections
property I
Because of this, every time you print its value, you undefined
.
Check a certain.
Of course, this is an [object object] for each, but this is one thing that you can do to your object Want Udrait.
If you want to alert your goods more sensible way, you can do something like that.
Comments
Post a Comment