Sunday, June 19, 2016

ExtJS: Clear store values

Hi

var store =  Ext.data.StoreManager.lookup('Your Store ID Name');

store.clearFilter();

ExtJS: Store value sorting and update in Grid

Hi

var store =  Ext.data.StoreManager.lookup('Your Store ID Name');

store.filterBy(function(record, id) {
        if (record.get("age") != 48) {
          return true;
        }
        return false;
      }, this);

Tuesday, May 31, 2016

ExtJS: Assign the config value

Hi

How to assign the config value in extjs

SampleController

config : {
  resultvalue:null
},

Your function

onClick:function() {
this.setResultValue(true);
}

onClick2:function() {
this.getResultValue();
}

Monday, May 30, 2016

ExtJS: Internal ID is Missing

Hi,

Internal Id is undefined error in Extjs. Please check your Model / Store .

Solution : Model/ Store -- Change the value from autoload: true to autoload: false

Wednesday, January 20, 2016

Ext JS

Extjs


Layout run failed error in extjs5

change the layout name from "xxxxxxxxxx" to "fit"

Monday, December 28, 2015

Services vs Factories in angularjs

Hi Viewers,

Both are will be return object literal.

Services

Services is a constructor function

E.g :

app.service('myservice', function(name) {
  this.sayhello = function(name) {
    return "hi" + name + "!";
  }
});

app.controller('myController', function(myservice) {
$scope.name = "Nutty";
   myservice.sayhello($scope.name);
});

Factories

Factory function is really just a function that gets called, which is why we have to return an object explicitly.

E.g :

app.factory('myfactory', function(name) {

return {
   sayhello : function(name) {
      return "Hi " + name + "!";
    }
}
});

Thanks
Nutty

How to get the parent controller value using in angularjs

Hi viewers,

Parent Controller

$username ="xxxxxxxxxxxxx";

$rootScope.$broadcast("parentValue", $username);

Child Controller 

$scope.childValue = $scope.$on('parentValue');

console.log($scope.childValue);