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

How to make column of Grid for the password

2 Answers 857 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Leonid
Top achievements
Rank 1
Leonid asked on 17 Oct 2012, 10:21 AM

Hi

How to make column of Grid for the password in a kind " *****  "

@(Html.Kendo().Grid(Model)
    .Name("Grid")
    .Columns(columns =>
                 {
                     columns.Bound(p => p.password)
...


2 Answers, 1 is accepted

Sort by
0
Gal
Top achievements
Rank 2
answered on 23 Dec 2015, 01:06 PM

In regard to the field in edit mode ther eis this link:  

https://www.roelvanlisdonk.nl/?p=3273&cpage=1#comment-325120

 In regard to the viewing mode you need to set the template to somthing like this:

 <span>#: UserPassword == null ? ' ' : '●'.repeat( UserPassword.length) #</span>

0
Eyup
Telerik team
answered on 25 Dec 2015, 01:00 PM
Hello Gal,

Thank you for sharing your suggestion with our community. Here is a live MVC sample with columns.Template(...) approach:
http://demos.telerik.com/aspnet-mvc/grid/rowtemplate

Also, there is a public feedback item you can vote for:
http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/3770165-password-column-in-kendo-grid

Hope this helps.

Regards,
Eyup
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Leonid
Top achievements
Rank 1
Answers by
Gal
Top achievements
Rank 2
Eyup
Telerik team
Share this question
or