Telerik Forums
UI for WinForms Forum
1 answer
104 views

If RadGropBox have

1) non odd height (for example, 179 instead of 180) and

2) font set for Tahoma with size 8 

lower boundary is lost. See this picture for example.

I use Telerik RadControls for WinForms version 2009.2.729.

Nick
Telerik team
 answered on 19 Aug 2009
2 answers
177 views
Hi,
We want to buy your product so we try it now to see if it's feet us.
we want a carousel with images,The images will be added in runtime
here is my code:
--------------------------------------------------------------------------------------------------------------------------------------------

RadButtonElement

 

radB = new RadButtonElement();

 

 

 

Image Image = SaveBitmap(f); //My Faunction which returns an image

 

radB.CanFocus =

true;

 

 

 

radB.DisplayStyle = Telerik.WinControls.

 

 

DisplayStyle.Image;

 

 

radB.Image = Image;

radB.Name =

"radButtonElement";

 

 

 

radB.Text =

"radButtonElement";

 

 

 

((Telerik.WinControls.Primitives.

 

 

FillPrimitive)(radB.GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Hidden;

 

((Telerik.WinControls.Primitives.

 

BorderPrimitive)(radB.GetChildAt(2))).Visibility = Telerik.WinControls.ElementVisibility.Hidden;

 

 

 

this.leoSchachterCarousel1.Items.Add(radB);
---------------------------------------------------------------------------------------------------------------------------------------

the Problem Is that the Image is to big and when I set it smaller it is cut...
how can I set an AutoSize and Stretch Image to RadButtonElement ?
Thank You,

 

 

chaily pardes
Top achievements
Rank 1
 answered on 19 Aug 2009
8 answers
160 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
206 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
148 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
109 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
174 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
178 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
180 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
143 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
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?