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?
The setting cls is common to all ExtJS components. It adds a CSS class to the main element for the component. In this case it will put the class custom-grid on the outermost <div> element. Making the grid cells appear yellow needs some CSS like this: This page is using the 'scoped' ExtJS CSS file.
The most important of these is x-panel-with-col-lines, which has an accompanying rule in the default stylesheet to put a grey border down the right-hand side of each grid cell. ... The setting cls is common to all ExtJS components. It adds a CSS class to the main element for the component.
The setting cls is common to all ExtJS components. It adds a CSS class to the main element for the component. In this case it will put the class custom-grid on the outermost <div> element.
This is an introduction to CSS styling in ExtJS 4, it does not cover theming using Sass and Compass. Styling grid cells is a common topic for help requests on the Sencha forums. There are a number of techniques available depending on exactly what styling should be applied where.
you must use the store associated with your grid
var grid = ...
var models = grid.getStore().getRange();
models[0].set(fieldName, "new value");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With