7 Answers, 1 is accepted
Thank you both for writing.
The solution proposed by Laksmono is the right way to go in case you do not want the property to ever be added to the items collection of RadPropertyGrid. Another options is to set the Visible property of the particular item in the property grid Items collection:
I hope this is useful. Should you have further questions, I would be glad to help.
the Telerik team
I want to hide collections and Browsable is what I wanted but I can't use it because it prevents binding. Visible works well.
I have to use this ".Visible" trick instead of using [Browsable(false)] attribute, because I have to use binding on these properties in another form.
It works fine, but unfortunaly the height of the RadPropertyGrid scrollbar don't ignore the hidden items (the scrollbar is the same if all items are shown or if i hide some of them. Please see attached image).
Thank you for writing.
When you modify the item's visibility, it is necessary to wrap it in a BeginUpdate/EndUpdate block. Thus, the PropertyTableElement will be refreshed properly and the scroll-bar will recalculates its value:
I hope this information helps. Should you have further questions, I would be glad to help.
See What's Next in App Development. Register for TelerikNEXT.