Custom Editor in Grid - NumericTextBox Exception

4 posts, 0 answers
  1. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 31 Mar 2015 Link to this post

    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
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 02 Apr 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 02 Apr 2015 in reply to Alexander Valchev Link to this post

    I moved the custom NumericTextBox to the UnitPrice field and still getting those exceptions!

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

    Thanks
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 06 Apr 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready