How to get value of cell in grid?
there is fragment of code :
gridInRight:this.gridInRight=Ext.createByAlias('widget.gridInRight',{
layout:
{
padding:5,
margin:5,
},
listeners:
{
itemdblclick :function(arg1,arg2,html,ind)
{
var data=Ext.createByAlias('store.clientLocalData',{});
data.clearFilter(true);
var criteria=Ext.getCmp('main').comboClient.getRawValue();
alert(html+' '+ind);// here i want get know value //of cells. I have number of row but how can i get value of second cell in this raw?
if(ind==0)
{//BillWithout
data.clearFilter(true);
data.filter({property:'client_dsc',value:criteria});
data.filter({property:'client_owner',value:/^$/});
var vdata = Ext.pluck(data.data.items, 'data');
Ext.getCmp('main').leftSide.store.loadData(vdata);
//all.leftSide.changeStore(all.leftSide,data);
}else if(ind==1)
.......................
.......................
I am grateful for any suggestion
With best regards , kramal
How to get json or array from Ext.data.Store ?
Thank you !
And I have a question:
There is fragment of code:
var temp=Ext.createByAlias('store.clientData',{ queryMode:'remote',}).getRange();
alert(temp.length);// it return 0 , ???
I can`t to get array or json object from it. Always i have been getting 0.
What is matter , I dont know.
I am grateful for any answer
With best regards
kramal.
where 'store.clientData' defined as:
Ext.define('PM.store.Clients', {
extend: 'Ext.data.Store',
model:'PM.model.Client',
//autoload:true,
alias:'store.clientData',
//data:[{client_n:'34',client_owner:'32',client_dsc:'online'},{client_n:'342',client_owner:'23',client_dsc:'online'}],
proxy:
{
type:'ajax',
url:'data/Clients.json',
reader:
{
type:'json',
root:'rows',
successProperty:'success'
}
}
});