This is a migrated thread and some comments may be shown as answers.

[Solved] Numeric text box step size depending on other cell

1 Answer 216 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CS
Top achievements
Rank 2
CS asked on 19 Sep 2014, 01:46 PM
Is it possible to set the step size of a field in dependency of a cell in the same row of that field, and maybe to a different value for every row? For example I have a value 100 in the first row and a cell which should only increment by 100, and in the second row a value 10 so the same cell in that row should increment by 10.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 22 Sep 2014, 01:18 PM
Hi Stefan,

You have two options:

1. Use a custom field editor and initialize the NumericTextBox with the increment step value that you need.

http://demos.telerik.com/kendo-ui/grid/editing-custom

Using the above example as a starting point, all values of the data item are available in options.model

===

2. Use the edit event to set the step value of the NumericTextBox on the fly

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-edit

http://docs.telerik.com/kendo-ui/api/javascript/ui/numerictextbox#methods-step


Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
CS
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or