- This topic has 2 replies, 2 voices, and was last updated 8 years, 5 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Integrated Application Platform
Integrated Application Platform › Forums › General › Browse : readOnly
Hi,
Even when I specify alwaysReadOnly:true for a BrowseControl, the context menu is available by right clicking the header button or by pressing the context menu button of the keyboard. How can I change this behavior?
Thanks,
ajith
It is not that hard to figure this kind of thing out yourself. (I have to do the same.)
I looked at BrowseControl and I see List_HeaderContextMenu. If I comment this out, then there is no context menu on the header.
Hi,
Following a suggestion by Andrew by email,instead of commenting out the List_HeaderContextMenu of BrowseControl, I tried changing it to:
List_HeaderContextMenu(x, y)
{
if .readOnly
return 0
else
return ContextMenu(.menu.Copy().Add("", "Reset Columns",
at: .menu.Size())).ShowCall(this, x, y)
}
Apparently, this is working as expected with all context menus working when the Browse isnt protected and hidden when it is readOnly.
Thanks,
ajith