How to make null of the Data Type Field blank display

2 posts, 1 answers
  1. Ikou
    Ikou avatar
    12 posts
    Member since:
    Aug 2015

    Posted 23 Feb Link to this post

    Hi,

    This Gantt in has Custom Field called "actualStart".
    The default value of this field is null, but the view at this time want to blank rather than a "null" string.
    Do you have any way?

     

    actualStart: {
        from: "actualStart",
        type: "date",
        defaultValue: null
    },
    ....
     
    columns: [
        { field: "title", title: "title" },
        { field: "actualStart", title: "actualStart", format: "{0:d}" },
    ],

    thanks.

  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 24 Feb Link to this post

    Hello,

    The only way to show a different value than the actual one at the moment is to bind to the dataBound event of the gantt and manually acess the cell element and change it's html:
    http://docs.telerik.com/kendo-ui/api/javascript/ui/gantt#events-dataBound

    Regards,
    Bozhidar
    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
Back to Top