Login Register

column

Add of a new editor: Button

The solution is simple, you want to have a button on a cell.
Just think about editor !
By extending the class dojox.grid.editors.AlwaysOn, the button will allways appear during the viewing of the grid.

Source code

dojo.provide("foo.Button");

dojo.require("dojox.grid._data.dijitEditors");
dojo.require("dijit.form.Button");

dojo.declare("foo.Button", dojox.grid.editors.AlwaysOn, {
_valueProp: 'cellValue',
constructor: function(inCell) {
this.text = this.text || this.cell.text;
this.deleteAfter = this.deleteAfter || this.cell.deleteAfter;

Adding extra column to grid

Hi,
i'm trying to use dojox.grind for displaying data.
Everything works fine until i try to dinamically add columns to the table.
I need to add some columns and then refresh the table, then change the extra columns and refresh the data again.
When i need to rebuild the table header i acquire the base structure in json format from a file, then i add to it the extra columns.
The array composed by base structure + extra columns is passed as argumento to setStructure. So on it works, i see the new columns.

Change column size of grid programatically

Hi,

Is it possible to change the size of a column in a grid programatically?

Thank you!
J.

Syndicate content