Telerik Forums
UI for WinForms Forum
4 answers
206 views
I created a RadContextMenu and added it to my RadGridView, but the menu appears to have no theme. It doesn't look anything like the default menu and the ThemeName is blank.

I tried this but the the RootElement doesn't seem to have a ForceApplyTheme() method anymore.
Jay
Top achievements
Rank 1
 answered on 27 Feb 2013
6 answers
582 views
Hi guys,
This is how I use this event. It worked fine in Q3 2011.
this.radGridView1.ContextMenuOpening += new Telerik.WinControls.UI.ContextMenuOpeningEventHandler(this.radGridView1_ContextMenuOpening);

private void radGridView1_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
       {
          //implementation code here
              e.ContextMenu = radContextMenu1.DropDown;
         
       }
Since I started using Q3/2012, this event doesnt seem to work anymore. Any suggestion?
Helen
Top achievements
Rank 2
 answered on 27 Feb 2013
1 answer
151 views
Hi.  I'm working with the winforms chartview and exploring what it can do.  I've noticed that If I scroll and zoom my chart with control/mouse-wheel and click/drag operations, the labels fly off the X axis and start scrolling with the chart... I've attached a pic and some code.

Ideas?

ChartPanZoomController panZoomController = new ChartPanZoomController();
panZoomController.PanZoomMode = ChartPanZoomMode.Both;
chart.Controllers.Add(panZoomController);
private void DrawChart(string ticker)
{
    chart.Series.Clear();
    chart.ShowPanZoom = true;
 
    CandlestickSeries series = new CandlestickSeries();
    List<DailyOHLCV> prices = hStocks[ticker];
    foreach (DailyOHLCV dayPrice in prices)
        series.DataPoints.Add(
            new OhlcDataPoint(dayPrice.open, dayPrice.high, dayPrice.low, dayPrice.close, dayPrice.date));
 
    DateTimeCategoricalAxis axis = new DateTimeCategoricalAxis();
    axis.LabelFormat = "{0:dd-MMM-yy}";
    axis.LabelRotationAngle = 90;
    axis.LabelFitMode = AxisLabelFitMode.Rotate;
    axis.MajorTickInterval = chart.Width / 10;
    series.HorizontalAxis = axis;
    chart.Series.Add(series);
}
Ivan Petrov
Telerik team
 answered on 27 Feb 2013
1 answer
539 views
How do I get the RadTextBox to respond to the Return key by moving to the next control on the form?
Stefan
Telerik team
 answered on 27 Feb 2013
3 answers
127 views
I have a grid anchored on all sides in its container (radPageViewPage).

I have set 
    AutoSizeColumnsMode = Fill
    AutoSizeRows = False or True
    HorizontalScrollState = AlwaysShow or AutoHide

However, the Horizontal Scroll Bar is *never* shown.

However, when I set
    AutoSizeColumnsMode = None

The HSB is displayed. However, the behaviour is erratic when I also set 
    AutoSizeRows = True

because when I change the size of a column, the width of the grid changes.

Because some of the columns have a minimum width, the fact that the HSB *never* is displayed with
   AutoSizeColumnsMode = Fill
even when some of the columns are hidden, seems like a bug to me.

Helen
Anton
Telerik team
 answered on 27 Feb 2013
1 answer
515 views
How can I sort the child nodes of a particular node?
Svett
Telerik team
 answered on 27 Feb 2013
1 answer
191 views
I want my RadTextBox to undo the current changes when the user hits the Esc key.  I am using the OnKeyUp event of the RadTextBox.

However, unlike the standard Windows Forms text box, there is no Undo method on the RadTextBox.  Really???

Curiously, there is a CanUndo property on the RadTextBox...

How do I get the behavior I want?
private void radTextBox_Base_KeyUp(object sender, KeyEventArgs e)
{
    if (e.KeyCode == Keys.Escape)
        (sender as RadTextBox).????
}

Stefan
Telerik team
 answered on 27 Feb 2013
7 answers
1.0K+ views
I need to create one RadDropDownList control in which user can enter only digits but not characters.
Hope I Will get answer soon, Thanks
Stefan
Telerik team
 answered on 27 Feb 2013
6 answers
253 views
e.NodeElement.BackgroundImage = myImage;

See attached image. I want to place this extra icon to the right. Something like "Right-align background image!". Is this possible?
Kristoffer
Top achievements
Rank 1
 answered on 26 Feb 2013
2 answers
279 views
Hi, I am using a RadGridView and have a column that is a GridViewComboBoxColumn.
The ComboBox is bound to a collection of values that are :

ValueMember : DisplayMember
"" : [None]
A : A
B : B
C : C

If the user selects value member A, B or C, all is fine and the associated display member is displayed.
But if the user selects the value member "" (an empty string) the display member [none] is not displayed and the ComboBox displays nothing.  It is like as if when I select an empty string the list will by default go back to selectedIndex = -1.

Here's a code example:

public class ItemComboBox
    {
        public string CleItem { get; set; }
        public string ValeurItem { get; set; }
    }
 
List<ItemComboBox> liste = new List<ItemComboBox>();
liste.add(new ItemComboBox("", "[None]"));
liste.add(new ItemComboBox("A", "A"));
liste.add(new ItemComboBox("B", "B"));
liste.add(new ItemComboBox("C", "C"));
 
//cboInsRslCd is my ComboBoxColumn
cboInsRslCd.DataSource = liste;
cboInsRslCd.ValueMember = "CleItem";
cboInsRslCd.DisplayMember = "ValeurItem";

Anyway, to have my [None] display member to be displayed correctly when the empty string value is selected?
Thanks!
Svett
Telerik team
 answered on 26 Feb 2013
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
Bronze
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
Bronze
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?