Telerik Forums
UI for WinForms Forum
3 answers
119 views
Hello, I am experiencing a basic problem with Telerik controls concerning when the mouse down is performed on one part of the control, and the mouse up occurs on another part of the control.  The item is not selected in that case.

For example, in the case of the RadCombobox, if I click the mouse button over the drop down arrow, the combobox opens.  Without releasing the mouse button, I move the cursor over an item in the drop down, and then release the button.

Expected behavior:  the item would be selected and placed into the edit box portion of the combobox.

Actual behavior:  the item is not selected; the drop down remains open, and I must push and release the mouse button on the desired item to select it.

This happens no matter how I set the ClickMode property.

Another example is in RadMenuStrip.  If I have a simple menu:

  File
       Exit

and I click over File, it drops down the menu to show the Exit item.  Without releasing the button, I highlight Exit and release the button.

Expected Behavior:  The Exit menu item's click event is fired.
Actual Behavior:  It is not fired.  I have to click Exit and release mouse button again to select it.

I don't understand why this is the default behavior when normal Windows apps have been doing it my way for decades?  FWIW, the DevExpress menus work exactly the same way as yours, so I'm thinking there is a fundamental change of thinking with control developers!  ;)

Thanks,
David
Vassil Petev
Telerik team
 answered on 22 Jul 2008
1 answer
72 views
When I close the property builder Visual Studio is prety much locked up. When I try to kill the process it then tells me that there is still a modal dialog open. If there is it is not visable. This seems to be intermitant. One other thing. I have had on ocasion where when adding columns to a databound grid it will throw an error that the data memeber value that was entered does not exist then the window disapears.
Georgi
Telerik team
 answered on 22 Jul 2008
1 answer
140 views
Hello,

I'm using a RadTabStrip in a form where I want to contain settings. When the user has clicked around in the different tabs and made his settings I want him to be able to press 'Enter' and make the settings dialogue dissappear. My problem is that even though the AcceptButton-property is set to my OK button, it seems that nothing happens if my RadTabStripItem is focused. This means that if I click a new tab, pressing enter does nothing (pressing esc for cancel still works fine). Is there any good work around for this?
Boyko Markov
Telerik team
 answered on 21 Jul 2008
1 answer
232 views
Hello,
   
    I have unsuccesfully been trying to programmatically set the theme of a 'RadPanel' to "Office2007Blue". At Design time i have been using this them in my app. At runtime i create multiple RadPanels and would like to apply this same theme to them also. How can i do this at runtime, programatically?

    Many thanks, Michael.
Nikolay
Telerik team
 answered on 21 Jul 2008
2 answers
346 views
Doing a winform app and I've created the dropdownmenu dynamcically as shown below. Now, I can't figure out how to determine which menu item gets selected so I can execute the proper function. Can you assist?

private void radTreeView1_MouseDown(object sender, MouseEventArgs e)
{
  if (e.Button == MouseButtons.Right)
  {
    RadDropDownMenu radMenu = this.DropDownMenu;               

    RadMenuItem radMenuItem = new RadMenuItem();
    radMenuItem.Text = "Open";
    radMenu.Items.Add(radMenuItem);

    radMenuItem = new RadMenuItem();
    radMenuItem.Text = "Save";
    radMenu.Items.Add(radMenuItem);

    radMenuItem = new RadMenuItem();
    radMenuItem.Text = "Print";
    radMenu.Items.Add(radMenuItem);

    radMenu.Show(radTreeView1, e.Location);
  }  
}

Jack
Telerik team
 answered on 21 Jul 2008
1 answer
105 views
Hi there,
I want to programmatically add grouping to my datagrid like so:

radGridView1.MasterGridViewTemplate.GroupByExpressions.Add("[PeriodeID] Group By [PeriodeID]"); 


When I run this the datagrid isn't grouped by the column, only sorted by the column.
When I drag and drop the column the datagrid does get a proper grouping header.
What am i missing?

Tanx!
Robbie
Top achievements
Rank 1
 answered on 21 Jul 2008
1 answer
266 views

 

Hi Guys,

I am having a problem changing the Cursor icon to a hand while hovering or entering over a RadLabelElement within the RadGridView GridViewCommandColumn cell.  I am using the most current version of the controls.

The following is how my controls are placed:

I have a RadGridView control, with a GridViewCommandColumn that contains a RadMenuElement and 4 RadLabelElements.

My problem arises when I try to use the MouseEnter() event handler on the RadLabelElement to change the Cursor type from the default (arrow) to a Hand. It will not make the change.

The following is an outline of the source code that contains the problems described above:

  private void gvManageDocs_CellFormatting(object sender, CellFormattingEventArgs e)    
            {  
                    if (e.CellElement is GridCommandCellElement)  
                    {  
                            GridViewRowInfo gvrRow = e.CellElement.RowInfo;  
                            e.CellElement.Children.Clear();  
                            RadMenuElement buttonElement = new RadMenuElement();  
                            RadLabelElement lblLabel = new RadLabelElement();  
                                                                         
                            lblLabel.Text = "View";  
                            lblLabel.Click += new EventHandler(lblView_Click);  
                            lblLabel.MouseLeave += new EventHandler(lblLabel_MouseLeave);                                  
                            lblLabel.MouseEnter += new EventHandler(lblLabel_MouseEnter);  
                            lblLabel.ForeColor = Color.Blue;  
                            buttonElement.Items.Add(lblLabel);  
                            lblLabel = null;  
   
                            lblLabel = new RadLabelElement();  
                            lblLabel.Text = "Modify";  
                            lblLabel.Click += new EventHandler(lblModify_Click);  
                            lblLabel.MouseLeave += new EventHandler(lblLabel_MouseLeave);  
                            lblLabel.MouseEnter += new EventHandler(lblLabel_MouseEnter);  
                            lblLabel.ForeColor = Color.Blue;  
                            buttonElement.Items.Add(lblLabel);  
                            lblLabel = null;  
                            }          
                
                            e.CellElement.Children.Add(buttonElement);  
                    }  
 
 
void lblLabel_MouseEnter(object sender, EventArgs e)  
        {  
               Cursor = Cursors.Hand;  
               ((RadLabelElement)sender).ForeColor  = Color.Red;  
       }  
void lblLabel_MouseLeave(object sender, EventArgs e)  
        {  
            Cursor = Cursors.Arrow;  
            ((RadLabelElement)sender).ForeColor = Color.Blue;              
        }   
 

Please let me know what I can do to solve this issue.

Many thanks,
Mike

Martin Vasilev
Telerik team
 answered on 18 Jul 2008
1 answer
185 views
Dear telerik,

Before expanded or after expanded, the location of each node will be different.  So how do i know the location of nodes in (x,y)?


Thanks
Jordan
Telerik team
 answered on 18 Jul 2008
3 answers
255 views
Hi,
I have one application with one docking manager that contains some dockPanels and some tabbed documents.
I want to add a tabbed document (Telerik.WinControls.Docking.DocumentPane)
via C# code... what is the best way to do this?

Thanks for support
Lorenzo
Julian Benkov
Telerik team
 answered on 18 Jul 2008
1 answer
103 views
Hi,

Whenever I change the AllowEdit property your obsolete LabelEdit property gets added to my Designer and I receive a warning on compile. I then have to go and manually remove it again. This is probably because when I change AllowEdit the LabelEdit changes with it in the controls designer properties.

Though not critical it is annoying..

Regards,
Brad
Jordan
Telerik team
 answered on 18 Jul 2008
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?