I have a raddock and i add a usercontrol to the raddock DocumentWindow using :
HostWindow host2 = this.rdkMain.DockControl(estPanel2, winProject, Telerik.WinControls.UI.Docking.DockPosition.Fill,DockType.Document);
The window shows up correctly in the RadDock, however the underlying type is HostWindow (which behaves like a ToolWindow) and not a DocumentWindow. I need a DocumentWindow so that when I Float this window it appears like my other DocumentWindows. See attached images.
TabsDocked image shows the tabs appear correctly when docked, HostWindow is Estimate2, the DocumentWindow is documentWindow1
TabsFloating you can see that the tabstrip displays differently between floating as a HostWindow and a DocumentWindow because the HostWindow is "interpreted" as a ToolWindow. I know there are other differences between ToolWindows and DocumentWindows, so I want to stay with the full DocumentWindow implementation and appearance if at all possible...
How can i add a usercontrol to the Dock as a DocumentWindow?
Many thanks in advance
Hi,
I need to format the text in a GroupElement calculated on a datetime field, removing the time part [I want 10/04/19 instead of 10/04/2019 00:00:00].
I found a suggestion in this forum and wrote this code :
private void rpvtGrid_GroupElementFormatting(object sender, PivotGroupElementEventArgs e) {
object laCosa = e.GroupElement?.Data?.Group?.Name;
if (laCosa != null && laCosa is DateTime) {
DateTime laData = (DateTime)laCosa;
e.GroupElement.Text = laData.ToString("dd/MM/yy") + " Total";
}
}
The last line of the method assign the correct value to e.GroupElement.Text but on the inteface nothing changes and I still see the original text [10/04/2019 00:00:00].
What did i miss ?
[This may be someway related to my previous post.]
I have a ranking system, I'm about to make a "sub-leader" rank. In that relation I am removing some pages/tabs, depending on the user access level.
This is the code I have. The problem is it does not remove all the pages. As shown in the screenshot attached, not all pages are removed.
for (int i = 0; i < radPageView2.Pages.Count; i++)
{
if(radPageView2.Pages[i].Text == "Emails" || radPageView2.Pages[i].Text == "Products" || radPageView2.Pages[i].Text == "Customers" || radPageView2.Pages[i].Text == "Verify sales" ||
radPageView2.Pages[i].Text == "Salary" || radPageView2.Pages[i].Text == "Leads control" || radPageView2.Pages[i].Text == "Agents")
{
radPageView2.Pages.RemoveAt(i);
}
}
Thanks in advance!
Hi,
is it an easy way to save/load all print settings for PivotGrid?
Thanks
Alex
Hi,
If we try to get serial number of harware like BIOS, Motherboard or Monitor using WMI Service, and this service is Disabled by the Admin of the computer, what will happen?
Can we start it programatically? I think no because the program may be run by a limited user, not an administrator.
I don't want to use WMI Services.
So what we must do?
please help me, thanks.