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

kendo.data.Model fields options

4 Answers 340 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
João
Top achievements
Rank 1
João asked on 06 Jan 2012, 02:55 AM
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!

4 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 06 Jan 2012, 05:14 PM
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!
0
Joshua
Top achievements
Rank 1
answered on 01 Mar 2012, 01:02 AM
What are the different data types that are available for use in the fields object?
0
Nathan
Top achievements
Rank 2
answered on 11 Sep 2015, 04:55 PM
Do we have a definitive list yet?  The link no longer works, and I've also found "from" and "validation".
0
Rosen
Telerik team
answered on 14 Sep 2015, 07:16 AM

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!
 
Sarah
Top achievements
Rank 1
Iron
commented on 21 Jun 2021, 11:19 AM

This link no longer works. Please can you post an updated link, I'm struggling to find documentation on this.
Neli
Telerik team
commented on 24 Jun 2021, 06:09 AM

Hi Sarah, 

Please find below links to the Kendo API  where you could see the Model fields and methods. 

https://docs.telerik.com/kendo-ui/api/javascript/data/model

https://docs.telerik.com/kendo-ui/api/javascript/data/model/methods/define

I hope this helps

Regards,

Neli

Tags
Data Source
Asked by
João
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Joshua
Top achievements
Rank 1
Nathan
Top achievements
Rank 2
Share this question
or