private
RadButtonElement btnAddTradingRule =
new
RadButtonElement();
btnAddTradingRule.Image = Resources.Plus24;
btnAddTradingRule.ImageAlignment = ContentAlignment.MiddleCenter;
btnAddTradingRule.Click += BtnAddTradingRuleClick;
btnAddTradingRule.MinSize =
new
Size(28, 28);
rpvModelRule.RootElement.Children[0].Children[0].Children[1].Children.Insert(0, btnAddTradingRule);
//foreach (var button in rpvModelRule.RootElement.Children[0].Children[0].Children[1].Children.Where(a => a.GetType() == typeof(RadPageViewStripButtonElement)))
//{
// button.Visibility = ElementVisibility.Hidden;
//}
var radPageViewStripElement = rpvModelRule.ViewElement
as
RadPageViewStripElement;
if
(radPageViewStripElement !=
null
)
{
radPageViewStripElement.ShowItemCloseButton =
false
;
radPageViewStripElement.StripButtons = StripViewButtons.None;
}
I'm new to Telerik and testing it, so my question is probably simple, but after some experiments I must confess, I am confused.
My scenario is very simple: the user click on the button (ribbon) and a new search result (grid) should appear as a new form inside of the toolwindow. At the beginning, there is no toolwindow at all. Each new result should be contained in the same, only one, toolwindow (tooltabstrip?), so the user can float it all at once.
I tried to use:
if (host == null)
{
host = this.radDock1.DockControl(form, DockPosition.Left);
}
else
{
this.radDock1.DockControl(form, host, DockPosition.Fill);
}
It seems to be working fine, but, when I float this tollwindow and use the procedure obove I the floating state, then, after docking (per double click), all the windows created in the floated state, appeared as additional toolwindows.
My questions are:
Thanks.
Pirx
Hi.
I am using RadPropertyGrid to reflect the fields of my own class which is inherited from RadTreeNode. RadPropertyGrid displays all properties from my class and all properties from RadTreeNode but I need to filter only Valuable ones. I was using ICustomTypeDescriptor interface for solve this. This solution works fine for System.Windows.Forms.PropertyGrid but does not work with RadPropertyGrid. Please help me with my problem.