kendo.data.Model fields options

5 posts, 0 answers
  1. João
    João avatar
    8 posts
    Member since:
    Jan 2012

    Posted 05 Jan 2012 Link to this post

    I am totally new to Kendo UI, and I am starting my first lines of code with it. My intention is to build a grid with CRUD operations on remote data (PHP + MySQL backend).

    Starting from the start, I want to create a kendo.data.Model for the grid rows... I have not found documentation about it, so I read blog posts, a few forum threads, and also browsed the source code.

    From this research, this is what I have found as available options for each one of the fields definition in the model:

    • nullable
    • editable
    • defaultValue
    • type
    • parse
    • format
    Did I miss some? I would appreciate if anyone could provide a brief description of each option. Also, I want to share more findings and some code here, if possible.

    Thank you!
  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 06 Jan 2012 Link to this post

    Hello,

    Currently the available model field properties are nullable, editable, defaultValue, type, validation and parse (which could be use to specify a custom function to convert the value from a string to its original data type). More information on the model declaration could be found in this help article.

    Regards,
    Rosen
    the Telerik team
    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. Joshua
    Joshua avatar
    27 posts
    Member since:
    Feb 2012

    Posted 29 Feb 2012 Link to this post

    What are the different data types that are available for use in the fields object?
  5. Nathan
    Nathan avatar
    39 posts
    Member since:
    Sep 2011

    Posted 11 Sep 2015 Link to this post

    Do we have a definitive list yet?  The link no longer works, and I've also found "from" and "validation".
  6. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 14 Sep 2015 Link to this post

    Hello Nathan,

    Information about Model fields supported options can be found here.

    Regards,
    Rosen
    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