Password column showing in plain text

4 posts, 0 answers
  1. Shawn
    Shawn avatar
    50 posts
    Member since:
    Jul 2016

    Posted 30 Jan 2017 Link to this post

    I have a kendo grid that contains a ClientDetailTemplateId.  The Client Details grid contains a column in which the data type from the model is set to Datatype.Password.  The grid is also set up for InCell editing.

    When the detail grid shown, all values in the Password column are visible in plain text. When I click in the cell, the password is then converted to the typical password field characters to hide the password.  When I click out of the cell, the changes are shown in plain text again.

    How can I prevent the password column from showing the passwords in plain text when not in 'edit' mode.  I thought that adding the Datatype attribute to the view model would handle this, but apparently only in edit mode.

    Regards,

    Shawn

  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    1239 posts

    Posted 01 Feb 2017 Link to this post

    Hi Shawn,

    As the Kendo Grid does not offer the possibility to configure a column as s "password", I would suggest you to define a ClientTemplate for the Password field to properly mask its text:
    columns.Bound(p => p.Password).ClientTemplate("<span>#: Array(data.Password.length).join('*') #</span>");

    Regards,
    Veselin Tsvetanov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Shawn
    Shawn avatar
    50 posts
    Member since:
    Jul 2016

    Posted 02 Feb 2017 in reply to Veselin Tsvetanov Link to this post

    Veselin,

    Thanks for the answer.  That sorted me out.

    Regards,

    Shawn

  4. arodriguezbr
    arodriguezbr avatar
    1 posts
    Member since:
    Mar 2007

    Posted 09 May 2020 in reply to Veselin Tsvetanov Link to this post

    thanks man. this trick saved me.
Back to Top