EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 13, 2025, 02:44:56 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Password field in Propertygrid
Pages: [
1
]
« previous
next »
Print
Author
Topic: Password field in Propertygrid (Read 7898 times)
Fabrice
Jr. Member
Posts: 62
Password field in Propertygrid
«
on:
August 29, 2014, 09:34:55 AM »
how can i do to have a password field in propertygrid, i can create a new extend editor with type='password' but when i validate row, text appears clearly in propertygrid cell, i suppose it's possible with formatter but formatter is for entire column, not for one row?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Password field in Propertygrid
«
Reply #1 on:
August 30, 2014, 05:02:51 AM »
Although the 'formatter' function is applied to entire column, but you can constrain it in some specific rows.
Code:
formatter:function(value,row){
if (somecondition){
return '***';
} else {
return value;
}
}
Logged
Fabrice
Jr. Member
Posts: 62
Re: Password field in Propertygrid
«
Reply #2 on:
August 30, 2014, 08:49:45 AM »
I have added a formatter to value column of my propertygrid and check id editor.type='password' in my formatter function, then i return '***', it's work fine.
Thank's a lot
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...