Hi Yamini, I don't think that this was what he was asking for.
Hi Satoshi, unfortunately ReadOnly property on TextBox Widget isn't bindable, then you can't set ReadOnly/Not ReadOnly on runtime.
What I would do it's add two widgets the same place, one TextBox and a ValueDisplay, and show/hide them ( visibility property it's bindable ) depending on the current user permissions.
Of course, you have to build a custom service which tells you if the user has ReadOnly or Read/Write access to the given property. This can be done checking the Group's ownership of the user, or as pointed out by Yamini, setting according permissions to the property and checking on this custom service which kind of access has the user on the given property.
To check current user's groups:
var userGroups = Resources["CurrentSessionInfo"].GetCurrentUserGroups();
To check user's permissions to a given property:
var hasReadPermission = me.CheckPermission({ name: "propertyName", type: "PropertyRead" });
var hasWritePermission = me.CheckPermission({ name: "propertyName", type: "PropertyWrite" });