Sandeep Gosavi
Sandeep Gosavi

Reputation: 640

How to set value to cell in grid in extjs

I need to set value to particular cell from outside of grid.

My value is in session and i want to set this value to a cell in 2nd column and 0th row. How i can do this in extjs?

Upvotes: 8

Views: 26202

Answers (1)

user2452092
user2452092

Reputation: 142

you must use the store associated with your grid

var grid = ...
var models = grid.getStore().getRange();
models[0].set(fieldName, "new value");

Upvotes: 9

Related Questions