Filter input placeholder text

5 posts, 1 answers
  1. Michael
    Michael avatar
    9 posts
    Member since:
    Feb 2015

    Posted 19 Feb 2015 Link to this post

    Hi,

    Is it possible to add placeholder text to an input (text box) shown on the grid row filter?

    Thanks,

    Michael
  2. Michael
    Michael avatar
    9 posts
    Member since:
    Feb 2015

    Posted 19 Feb 2015 in reply to Michael Link to this post

    I should add, I achieved what I wanted with the following code but I was looking for a "cleaner" built in property to set on the grid if it exists?

    var today = new Date();
    $("[data-text-field=formatted_dob]").attr("placeholder", moment(today).format("DD MMM YYYY"));
  3. Answer
    Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2596 posts

    Posted 20 Feb 2015 Link to this post

    Hello Michael,

    There is no built-in way to achieve this. And what you do is using a standard jQuery method, so I am not really sure why you are considering it "dirty"?

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  4. Vidya
    Vidya avatar
    6 posts
    Member since:
    Mar 2016

    Posted 08 Jun 2016 Link to this post

    Hi,

    I'm looking for the same thing to add a placeholder for all the filter text boxes in the grid. For date columns the filter text box should show the date format like mm\dd\yyyy. How to achieve this for all columns in the grid?

  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2596 posts

    Posted 09 Jun 2016 Link to this post

    Hello Vidya,

    As the question differs from the original topic - can you please open a separate support request and we will be happy to help.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top