Tuesday, February 19, 2019

setdataatt

ar:function (){

var obj={"lbl1":this.view.textbx.text}

var legthdata = this.view.seg.data;
syntax
------------------------------------------------------
dataObj1 = {globaDdataId1:"label1", globaDataId2:"label2", globalDataId3:"label3"};

//addAt method call ,adding the above row at 15th index position.
segment.addDataAt(dataObj1,15);
------------------------------------

this.view.segment.addDataAt(array,(legthdata.length));
}



alter way

var array =[];
ar:function (){
var cname = this.view.textbx.text;
var obj={"lbl1":this.view.textbx.text}
array.push(obj);
this.view.segment.removeAll();
this.view.seg.setdataAll(array);
}

0 comments:

Post a Comment