Code Monkey home page Code Monkey logo

Comments (1)

damyanpetev avatar damyanpetev commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.