Hello,
I'm trying to show and hide groups and single items of a PropertyGrid depending on the answers inside the same propertyGrid.
I've seen that a good place to set the visibility of the group is in when the grid is created, in this function:
private
void
RadPropertyGridOnCreateItemElement(
object
sender, CreatePropertyGridItemElementEventArgs e)
{
if
(e.Item
is
PropertyGridGroupItem groupItem)
{
var myItem = (MyItem)groupItem.Group.GroupItem.GridItems[0].Value;
groupItem.Visible = myItem.EnableGroup;
}
if
(e.Item
is
PropertyGridItem item)
{
var myItem = (MyItem)item.Value;
item.Visible = myItem.EnableItem;
}
}
However, I'm not able to change the visibility at a second time, since this function is not called again later.
If I try to change the visibility of the VisualItem in OnItemFormatting, the items are hidden, but the spaces are not recalculated and the design is messed up.
Also, if I try to change the visibility of an item at the end of OnEdited, OnItemFormatting goes on loop.
Any hint? :)
Thanks!
Hello,
I use a RadGalleryElement in my ribbonbar. I found that after I expanded gallery and then re-collapsed, the collapsed gallery size will be changed automatically. Please see the first attached photo. How can I keep the size of gallery unchanged (original one or the smaller one) ?
FYI,
My gallery is autosize = true, the items are added dynamically at the form loading.
I've tried autosize=false, the gallery is completely disappeared. Weird.
Second question, how can I display selected item effect as the second attached photo ? I found few theme can support selected item effect, like windows 7 theme. But I use windows 8 theme.
How can I show selected item effect in program ? If not possible, please tell me which property I can modify in theme.
Thank you.
Hi ,
I want to control tab button disable or enable in different condition, is there any way I can do this ?
hi
How can this space be reduced?
Hello, I'm trying to find the Parent container of CurrentBitmap inside of CanvasElement.
I want to ignore the current zoom and window location of the image for a custom control's mouse position relative to the image. Any help would be appreciated.
Thank you.
Hi there,
I'm using a RadGridView with a DateTime column. The property for this column is a nullable DateTime property. I read on a few forum posts that I need to add a FilterDescriptor for the nullable DateTime columns manually. So I added the descriptors the following way:
FilterDescriptor desc =
new
FilterDescriptor();
desc.Operator = FilterOperator.IsEqualTo;
desc.Value =
null
;
desc.IsFilterEditor =
true
;
col.FilteringMode = GridViewTimeFilteringMode.Date;
gv.Columns[
"WishDate"
].FilterDescriptor = desc;
When the data binding is complete, it instantly filters for null value in this column. But I don't want to filter right away. When I don't add the FilterDescriptor, the default FilterOperator for this column is "None".
What I need on startup is this nullable DateTime column with "Equal To" filter and not already filtered data.
I hope you know what I mean :)
Regards,
Danilo
Hello,
Hello,
Is there a way to set font style; size, font family (with html option or another way) of Caption Text and ContentText?
Kind regards...
Is it possible to
1. Change the arrow button to something bigger
2. Change mouse to arrow instead of resize
Pleas see image