我有以下模式:
...
quantity: {
type: 'number',
validation: {
min: 0
}
}
...
在我的网格中,您可以单击以内联编辑值。What I would like to do is, is when the quantity field is selected and is ready for the user to start inputting numbers, I want the max possible value to be set to the value of another column that was returned to my grid eg quantityMax
.
quantityMax
我的网格中的每一行都会有所不同。
我怎样才能做到这一点?输入更改的处理程序是:
$('#salesGrid').on('change', '.k-input', function(){
handleChange()
})
function handleChange()
{
sGrid.dataSource.sync(); // Write changes.
sGrid.dataSource.read(); // Read updated grid.
}