Telerik Forums
UI for WinForms Forum
8 answers
202 views
Hi!

Is its possible to add a button next to the close button in the far right corner of a dock control in mdi tab mode ?

I want to have a "create new tab" button next to the close button :)

Regards,
Per
Julian Benkov
Telerik team
 answered on 19 Aug 2009
1 answer
241 views
Hi,

I am trying to provide my user with a "open in new window" capability from the RadDock interface. The user will generally open new screens in new tabs but there is an extra button which will allow them to "float" any particular tab so it becomes an independent window.

I'm guessing the best way to achieve this within the RadDock framework is to create a new floating ToolWindow for the Document when the user presses the "open in new window" button. This way we can allow them to re-dock it to the DockManager later if they wish.

My approach would be

ToolWindow tw = new ToolWindow; // create the new toolwindow
tw.CloseAction = CloseAndDispose; // I always do this.
this.documentTabStrip.ControlsAdd(tw); // Add the toolwindow to the tab strip.
this.radDock.ActiveWindow.Parent = tw; // Switch the parent of the current document to the toolwindow
tw.Float(new Rectangle(0,0,500,500)); // Float the new toolwindow

Unfortunately it doesn't seem that simple. I got a couple of problems doing this;
1) The change of parent for a large form (40-50 textboxes) takes a long time, and causes visual flickering and glitching.
2) The transferred DockWindow is not dock.Fill inside the ToolWindow. It retains the size it was at the point where ownership was transferred. I can't seem to find a way of getting the transferred DockWindow to resize itself when transferred.
3) The transferred DockWindow seems to have a blank TabItem associated with it, so doesn't visually work - it leaves  gap for displaying the tab at the top of the toolwindow.

Subsequently I changed my approach to transfer the internal top level control for the DockWindow rather than the DockWindow itself, like this;

ToolWindow tw = new ToolWindow();
tw.CloseAction = CloseAndDispose;
Control controlToBeTransferred = this.radDock.ActiveWindow.Controls[0]; // Assumes a containerControl at top level.
ths.documentTabStrip.Controls.Add(tw);
controlToBeTransferred.Parent = tw;
tw.AutoScroll = true;
this.radDock.ActiveWindow.Close(); // It no longer has anything in it.
tw.Float(new Rectangle(0,0,500,500));

And this seems to work fine now. Thought the Forum would be interested.
Nick
Telerik team
 answered on 19 Aug 2009
2 answers
178 views
Hi,
I have setup CommandBinding on my RadSpinEditor with Command as FocusCommand. Upon pressing the shortcut using keyword, spinEditor does not gain focus.

I see similar problems with RadComboBox also. Please help me in setting up focus on these controls using keyboard shortcut.

Thanks
Ankur
Ankur Khator
Top achievements
Rank 1
 answered on 19 Aug 2009
0 answers
144 views
Hi,

I am working on the hierarchical gridview. I need to display all the customers in the Parent grid and orders by the customer in child grid.
I want to load all the customers when the form loads and to click on the expand row to view the orders related to that customer.
Is it possible and how? do the gridview supports load on demand?

Thanks.
yaqub
Top achievements
Rank 2
 asked on 19 Aug 2009
1 answer
202 views
Hey Guys,

DataBindingComplete Event for GridView Didn't fire when execute this code


BL.CodeData.AccountTypeCodes.FillAccountTypeCodes(_CurrencyCodesEc, null);   // _CurrencyCodesEc is an entityCollection 
        bindingSource2.DataSource = _CurrencyCodesEc;

Is there any thing missing ???


Telerik version 2009 Q2
windows 2008
VS 2008
.Net framework 3.5
Victor
Telerik team
 answered on 18 Aug 2009
8 answers
221 views
Hello again, I have seen in the theme that controls VistaTelerik editors of color filters is equal to the letter from the editor background color. Ie, the color of the letter is white like the background color, can help with this, ie VistaTelerik to change the theme of the color or black letter is a code for this change, giving hope to ented . Thanks for all the assistance and thanks in advance
Boryana
Telerik team
 answered on 18 Aug 2009
5 answers
216 views
Hi,

I programmatically create interfaces rather than use VS.net Designer, and almost all Telerik Windows Forms controls work Ok with this, however I cannot get the toolstrip to render correctly using the default application theme. If I switch default application themes having created and loaded my new toolstrip it renders correctly but until I toggle the theme it looks poor.

I try to work around this by calling  the following for each control I create at runtime;

 

private void applyThemeToGeneratedControl(Telerik.WinControls.RadControl control)

 

{

control.ThemeName = Telerik.WinControls.

ThemeResolutionService.ApplicationThemeName;

 

control.RootElement.ForceReApplyStyle();

control.RootElement.ForceApplyTheme();

}

which does work for the majority of controls, but not for toolstrip.

Any ideas what I'm doing wrong here ?

Thanks,
Phillip

Nick
Telerik team
 answered on 18 Aug 2009
1 answer
180 views
Hello,

I am having trouble applying a theme to the DocumentTabStrip which is created when adding a Tabbed Document to a RadDock.  I have the Visual Style Builder to create a style for a RadTabStrip which functions perfectly but cannot be applied to the DocumentTabStrip.  I tried to create a style for the DocumentPresenterControl but when I load the default theme for it there are no states defined for the FillPrimitive for the DockableTab (even though the preview shows different states for Selected/MouseOver/etc.).  I am able to get my RadTabStrip theme to show in the design view of VS2008 by loading documentTabStrip from assembly in Visual Style Builder and modifying a setting so that I can save it to my .xml file and apply my custom theme to documentTabStrip1 in my project, but when I run the program the theme returns to the default theme.

Where am I going wrong?  I have been trying for quite some time to apply a custom theme to the DocumentTabStrip and am at a loss on what to try next.  Also, when I did load the documentTabStrip into Visual Style Builder from the assembly, nothing appeared in either Design View/Preview but there were elements in the Control Structure.

Thanks!

Boryana
Telerik team
 answered on 18 Aug 2009
1 answer
166 views
The Q2 2009 RadDock control does not SetStyle(ControlStyles.ContainerControl) and so is not seen in .net as a ContainerControl. This causes problems when calling Form.ValidateChildren or Control.Validate to force validation of controls held in a RadDock window.

My workaround is to explicitly handle the radDock_Validating event in my code like this;

private void radDock_Validating(object sender, CancelEventArgs e)
{   
    if(! ((ContainerControl)this.radDock.ActiveWindow).Validate())
    {
        e.Cancel = true;
    }
}

The .net framework behaves oddly when cascading the Validate event through a control stack, and instead of simply iterating a controls .Controls collection, it explicitly checks to see if a the Control.GetStyle(ControlStyles.ContainerControl) is true before deciding to iteratve the .Controls collection. Because RadDock does not set this property it is in effect telling the .net Framework "I don't have any children, so don't bother looking any further". By manually cascading the Validating event as shown above, we jump this gap.
 
I don't know if this particular pattern is followed in any other cascading functionality in the .net framework.
Julian Benkov
Telerik team
 answered on 18 Aug 2009
1 answer
167 views
When I Refresh a Datasource, mi binding go to First Position and my RadGridView Collapse, the problem is that the user have to re group again to go the row specific...

I need to know how to avoid this, or if exist any other method..

I have two Windows, one is only to edit or insert data, when i close the modal popup i return to previous where i have the radgridview thats why i neet to refresh it, to show the data updated.
Victor
Telerik team
 answered on 18 Aug 2009
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?