Comments (1)
Hi Julie,
You shouldn't need to call dataBind()
, as long as you set the scope data object it should be enough to trigger the directive's watch and we will do that for you. Are you getting any error messages that can help us figure out the issue?
The Master/detail sample uses the same approach with a mocked service provider (source):
dataService.getAll().then(function(homes){
$scope.homes = homes;
}, function(error){
$scope.error = error;
});
While the options are not defined in the scope, the end result is the same as the grid ends up with $scope.homes
as dataSource.
To answer the question anyway, calling angular.element()
will return the same jQuery(Lite) wrapped DOM element which is equivalent of $(".selector"), so calling any widget method/option is standardly done as parameter like .igGrid( "dataBind" );
P.S.: In the scope(controller) column settings like headerText
should also follow the API column options, although those are definately not causing the entire grid to stop working.
from igniteui-angularjs.
Related Issues (20)
- igTree performance HOT 1
- exitEditMode after rebinding causes igGrid data to revert to old data HOT 4
- Angular JS Data Chart
- Error when setting datasource of combo editor provider of igGrid HOT 5
- Samples are broken
- igLayoutManager sample is not propertly working
- Error: cannot call methods on igGrid prior to initialization; attempted to call method 'destroy' HOT 1
- igTileManager sample is not loading correctly HOT 1
- Create igniteui-angularJS quickstart application HOT 1
- Help please HOT 2
- igCombo: setter method for the "mode" option HOT 1
- Update the npm package to match the updated repository name
- Can't type spaces (with space bar) in iggrid filter HOT 5
- Combo appends text after Shift-tabbed action
- Samples are broken on github.io HOT 1
- The igCombo directive misses a model.$isEmpty implementation
- Project build is failing
- Migrate protractor test to karma or enable them in github actions
- igCheckboxEditor does not update its model when ngModel is specified
- [igMap] Github pages sample is not shown HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from igniteui-angularjs.