Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






How to hide password characters in column (formatter:password is ignored)

No Tags
UserPost

19:03
03/07/2011


kobruleht

Member

posts 144

I tried to use formatter:password but password characters are still displayed as open text on grid column.
How to hide password characters if password is displayed in grid column ?


colModel: [{ "name":"Password","fixed":true,
"editable":true,
"width":50,
"formatter":"password",
"edittype":"password"
}]

20:17
03/07/2011


OlegK

Germany

Member

posts 1210

After I read the post I verivied in both documantation and the source code, but didn't found the formatter:'password'. So everything is clear. The formatter:'password' do not much more as formatter:'blablabla'. Both do nothing because both not exist. To tell the trust I don't understand which sence has to have a column having only *** inside. In the case is much better don't have it at all or don't display such column (with respect of hidden:true property). I would prefer not have such column at all.

Best regards
Oleg

21:13
03/07/2011


kobruleht

Member

posts 144

Oleg,

thank you.

Password column is used for two purposes:

1. It allows to verify the presence of password for specific user
2. It allows to chnage password using inline edit.

I was able to add password formatter using

jQuery.extend($.fn.fmatter , {
    password : function(cellvalue, options, rowdata) {
    return "click to change";
  }
});

so this issue is solved. Thank you very much for your hard work on jqGrid.

Andrus.

No Tags

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

215


Currently Online:

33 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 10268

Posts: 30346

Membership:

There are 11032 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1210

markw65 – 179

kobruleht – 144

phicarre – 132

YamilBracho – 124

Renso – 118

Administrators: admin (60 Posts)

Moderators: tony (7375 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information