Read Only Property with button functionality |
Post Reply |
Author | |
LittleJK
Senior Member Joined: 13 April 2006 Status: Offline Points: 168 |
Post Options
Thanks(0)
Posted: 06 June 2007 at 5:02pm |
Hi can there be a way to set an item to being readOnly = true and still have the in place button inside that item still fire? we are trying lock down the item so it forces the user to make all the changes in a popup fired by the button.
Thanks |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You can remove ItemHasEdit flag from Item.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Fossil
Groupie Joined: 29 April 2006 Status: Offline Points: 46 |
Post Options
Thanks(0)
|
What we tried was Item.Flags=Not ItemHasEdit and that added a Expand Button to the Item. What I am doing is setting the forecolor of both the caption and value to gray text color and in request_edit setting cancel to true. Which seems to work. Did you mean something else?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Its also nice solution.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
apuhjee
Senior Member Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
Post Options
Thanks(0)
|
Oleg -
What would this logical syntax look like in C#? Obviously the compiler is not happy with item.Flags = !(PropertyItemFlags.ItemHasEdit);
I would like to make all property items read-only without changing their visual appearance (item.ReadOnly dims the item).
Thanks ~ jp
EDIT: Not too sure if this is a clear way of doing it... but item.Flags = 0; did what I wanted it to
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes, you need Item.Flags = 0.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |