Telerik Forums
UI for WinForms Forum
1 answer
203 views
Hello! 
I want 
the width of the dropdown's elements always matches the width of the control. Is there a simple property that can i set? I have attached an example. Thank you!
Stefan
Telerik team
 answered on 05 Jul 2012
4 answers
215 views
Hi, I'm having a problem with the RibbonBar KeyTips grabbing ALT keyboard sequences and I'd like to get them working again. I have a form with a TreeView on it. While inline editing tree node text, we used to be able to enter Alt keyboard sequences (Like ALT+130) to put special characters in the text. After adding a Ribbon Bar to the form, the Ribbon Bar is taking the ALT on the keyup and showing the KeyTips instead. 99% of the time, the Keytips are useful and we'd like to keep using them, but we need these keyboard shortcuts to work as well.
We are using v 2011.3.11.1219 for our release. I tried 2012.2.608.20 and it has the same problem.
 
I can reproduce this by creating a new application and adding a TreeView with some nodes. Before upgrading to a Telerik Windows Forms application, the ALT keyboard sequences can be entered into the TreeeView's inline edit. Upgrade the solution to a Telerik Windows Forms solution, change the Form to inherit RadRibbonForm, Add a RadRibbonBar, add a button group (I set the KeyTip to "A"), and add a Button Element. I can send the sample application if needed.

Is there a solution for this? Or plans to get the RibbonBar to only respond to a naked ALT key and pass the Key Sequences on to the Inline Edit box? I realise disabling the Keytips would probbaly pass on the keyboard sequence, but as I said, I'd like to get both working if possible.

Thanks, Kelly
Kelly Hamilton
Top achievements
Rank 1
 answered on 04 Jul 2012
1 answer
93 views
Hi all,
 I want a textbox with mask  01-FR22-02  in this format .  I set masktype as standard and mask  as 01-0000-02 , because the variable can change....But here numerics only allowed and cannot enter variables......Since 01 and 02 i want as same.... but 0 is replaced .... how can i persist that  01 and 02 as such and middle portion as varying like both variable and numerics..


please reply soon
regards lekha
Peter
Telerik team
 answered on 04 Jul 2012
3 answers
160 views
i m using dot not 2005 with rad carousel control when i m run the form the image item are rotating very slowly what is the reason? and also another question how to put the text at the bottom of the image in carousel control? plz help me.
Peter
Telerik team
 answered on 04 Jul 2012
1 answer
154 views

About the theme issue with the design mode. I have notice that's this bug didn't affect all the control.

These one doesn't work:

  • RadForm (think that's everybody have notice this one...)
  • RadRichTextBox
  • RadCommandBar

These one are working pretty good:

  • RadButton
  • RadListView
  • RadRadioButton

The ApplicationThemeName trick save my life at the runtime (I can afford with a BFOD (blue forms of death), my users can't...).

Perhaps you should write in the docs where is the best place to put these three lignes of code (I personnaly think these kind of things should be written on application level)  

 

Imports Telerik.WinControls.Themes
Imports Telerik.WinControls
  
Namespace My
  
    
    Partial Friend Class MyApplication
  
        Public Sub ApplicationStartup() Handles Me.Startup
  
            Dim theme As New Office2010SilverTheme
            theme.DeserializeTheme()
            ThemeResolutionService.ApplicationThemeName = "Office2010Silver"
  
            End Sub
  
    End Class
  
End Namespace

Jack
Telerik team
 answered on 04 Jul 2012
1 answer
211 views

Hello Telerik Team,

I have a problem with the RadLabel location. I need the label in a RadGroupBox and I did it like this:

RadGroupBox time = new RadGroupBox();
time.Text = "Zeit Wahl";
time.Left = 20;
time.Top = 280;

RadLabelElement labelTime = new RadLabelElement();
labelTime.Text = "Zeitintervall von/bis wählen:";
labelTime.Location = new Point(20, 410);

 time.GroupBoxElement.Header.Children.Add(labelTime);
panelTypeCharts.Controls.Add(time);

But The label is not moving to the location I gave it.Any suggestions?

Thanks very much

kind regards,

Alfonsina

Nikolay
Telerik team
 answered on 04 Jul 2012
3 answers
254 views
Hello, I am very new to Telerik, but others in my group have been using it for some time and nobody else experiences this issue and cannot reproduce this issue.

I am modifying a GUI that has been generated by another engineer, simply, I am moving a button by only a couple of pixels and the VS2010 designer changes nearly a hundred of lines of code in the designer.cs file.  But they only lines of code that prevent the GUI from displaying are included here, and at the bottom of the message is the exception that occurs at run-time.

Original Code (Bold code is removed by the VS designer/Telerik after button is moved):
            // 
            // radScrollablePanel1
            // 
            this.radScrollablePanel1.AutoScroll = true;
            this.radScrollablePanel1.AutoScrollMargin = new System.Drawing.Size(0, 0);
            this.radScrollablePanel1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
            this.radScrollablePanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.radScrollablePanel1.Location = new System.Drawing.Point(0, 0);
            this.radScrollablePanel1.Name = "radScrollablePanel1";
            this.radScrollablePanel1.Padding = new System.Windows.Forms.Padding(1);
            // 
            // radScrollablePanel1.PanelContainer
            // 
            this.radScrollablePanel1.PanelContainer.AutoScroll = true;
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel8);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel14);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel1);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel13);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel2);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel12);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel3);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel11);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel4);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel10);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel5);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel9);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel6);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.label12);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.panel7);
            this.radScrollablePanel1.PanelContainer.Controls.Add(this.GeneralQryResultRichTextBox);
            this.radScrollablePanel1.PanelContainer.Dock = System.Windows.Forms.DockStyle.Fill;
            this.radScrollablePanel1.PanelContainer.Location = new System.Drawing.Point(1, 1);
            this.radScrollablePanel1.PanelContainer.Name = "PanelContainer";
            this.radScrollablePanel1.PanelContainer.Size = new System.Drawing.Size(940, 530);
            this.radScrollablePanel1.PanelContainer.TabIndex = 0;


After Modification of the button control (Bold code is added by the VS/Telerik after button is moved): 
            // 
            // radScrollablePanel1
            // 
            this.radScrollablePanel1.AutoScrollMargin = new System.Drawing.Size(0, 0);
            this.radScrollablePanel1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
            this.radScrollablePanel1.Controls.Add(this.radScrollablePanel1.PanelContainer);
            this.radScrollablePanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.radScrollablePanel1.Location = new System.Drawing.Point(0, 0);
            this.radScrollablePanel1.Name = "radScrollablePanel1";
            this.radScrollablePanel1.Padding = new System.Windows.Forms.Padding(1);



During runtime I get this exception at the Bolded line in the "After" section:
*** [05 Jan 2012 10:17:25.701 WSApp     ] [ERROR] System.ApplicationException: Unable to create an instance of the B.WS.SnapIn.RV.RVControlSnapIn plugin in the assembly named B.WS.SnapIn.RV. 
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Control already added!
   at Telerik.WinControls.UI.RadScrollablePanelControlCollection.Add(Control value)
   at B.WS.SnapIn.RV.RVControlSnapIn.InitializeComponent() in C:\_dev\VS\Main\S\Apps\WS Apps\Libs\B.WS.SnapIn.RV\RVControlSnapIn.designer.cs:line 1755
   at B.WS.SnapIn.RV.RVControlSnapIn..ctor() in C:\_dev\VS\Main\S\Apps\WS Apps\Libs\B.WS.SnapIn.RV\RVControlSnapIn.cs:line 41
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at B.NE.PluginFramework.PluginManager.LoadPlugin(String typeName, String path, Hashtable parameters) in C:\_dev\VS\Main\S\SLibs\B.NE.PluginFramework\PluginManager.cs:line 438 ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Control already added!
   at Telerik.WinControls.UI.RadScrollablePanelControlCollection.Add(Control value)
   at B.WS.SnapIn.RV.RVControlSnapIn.InitializeComponent() in C:\_dev\VS\Main\S\Apps\WS Apps\Libs\B.WS.SnapIn.RV\RVControlSnapIn.designer.cs:line 1755
   at B.WS.SnapIn.RV.RVControlSnapIn..ctor() in C:\_dev\VS\Main\S\Apps\WS Apps\Libs\B.WS.SnapIn.RV\RVControlSnapIn.cs:line 41
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at B.NE.PluginFramework.PluginManager.LoadPlugin(String typeName, String path, Hashtable parameters) in C:\_dev\VS\Main\S\SLibs\B.NE.PluginFramework\PluginManager.cs:line 438
   --- End of inner exception stack trace ---
   at B.NE.PluginFramework.PluginManager.LoadPlugin(String typeName, String path, Hashtable parameters) in C:\_dev\VS\Main\S\SLibs\B.NE.PluginFramework\PluginManager.cs:line 461
   at WSContainer.WSContainerNode.AddPlugin(String typeName, String path, Hashtable parameters) in C:\_dev\VS\Main\S\Apps\WS Apps\WSContainer\WSContainerNode.cs:line 133
   at WSContainer.WSApp.LoadPlugin(Guid id, String typeName, String path) in C:\_dev\VS\Main\S\Apps\WS Apps\WSContainer\WSApp.cs:line 792
Stefan
Telerik team
 answered on 04 Jul 2012
1 answer
115 views
The following code will reproduce the exception:

RadTreeView tree = new RadTreeView();
tree.Name = "tree";
       
RadTreeNode[] nodes = new RadTreeNode[5];
for (int i = 0; i < nodes.Length; ++i)
  nodes[i] = new RadTreeNode(i.ToString());
 
tree.Nodes.AddRange(nodes);
tree.Nodes.Clear();
tree.Nodes.AddRange(nodes);

It seems that I would need to call "Remove" on each node before adding them back to the tree. But, since I'm adding them to the same TreeView, should an exception still be thrown?
Stefan
Telerik team
 answered on 04 Jul 2012
1 answer
130 views
Rather than looping through the rows, testing a cell value and determining if that value is NOT and should be deleted, is there a query against the control I can use to do the same thing?

Conceptually:

delete from radGridView1 where column["ID"].Value not in set (can be a list or some other collection)

Thanks
Stefan
Telerik team
 answered on 04 Jul 2012
3 answers
287 views
hi guys,

ive recently updated my visual studio 2008 to visual studio 2010. before doing it ive uninstalled telerik controls and also visual studio 2008.

when i installed everything again. i did not encounter any error. but when i create a new project or opened an old project, and tried to add a Radform i could not add it. normally i just do a simple add item and then select the Radform. unfortunately, now cannot select the Radform nor could not see any item for radcontrols.

hoping for your help.

thanks.

joey
Aylin
Telerik team
 answered on 03 Jul 2012
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?