EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: tooletime on June 06, 2016, 06:54:10 AM



Title: Numberspinner default in a datagrid on each row
Post by: tooletime on June 06, 2016, 06:54:10 AM
i want to set the default value for a number spinner which shows up in each row of the datagrid.  Ive tried all i can think of.
<th   data-options="field:'copies',align:'center',width:55, value:1, max:30, editable:'false', formatter:formatField,editor:'numberspinner'">Copies</th>

the value and max do not work.

Thanks in advance


Title: Re: Numberspinner default in a datagrid on each row
Post by: stworthy on June 06, 2016, 06:21:26 PM
Please try this:
Code:
editor:{
type:'numberspinner',
options:{
value: 1,
max: 30
//...
}
}