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

Custom Editor in Grid - NumericTextBox Exception

3 Answers 62 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Bilal
Top achievements
Rank 2
Bilal asked on 31 Mar 2015, 06:42 PM
Hi,

I am facing a problem using a custom editor NumericTextBox inside a Grid.

Check this dojo please: http://dojo.telerik.com/@bhaidar/oSaxA

I am facing same problem locally. The data bound to the custom editor is a number.

Regards
Bilal

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 02 Apr 2015, 04:27 PM
Hi Bilal,

The error occurs when the user clicks on a "Category" cell. The errors occurs because you are trying to edit an object field with NumericTextBox widget which is not supported.

I put a console log in the custom editor function. Please run the example and check the console.log output which shows that the bound data is object.


Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bilal
Top achievements
Rank 2
answered on 02 Apr 2015, 06:09 PM
I moved the custom NumericTextBox to the UnitPrice field and still getting those exceptions!

http://dojo.telerik.com/@bhaidar/ASApi

Thanks
0
Alexander Valchev
Telerik team
answered on 06 Apr 2015, 04:20 PM
Hi Bilal,

The problem comes from the quotation marks. See the updated example:

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