Telerik Forums
UI for WinForms Forum
6 answers
191 views
I would like to show the close button of the TabStripItem only when the user moves the mouse over the tab strip item.
I have set the ShowToolCloseButton property of the RadDock object to true.
When I dock my control, I set the visibility of the CloseButton to Hidden and I attach the MouseHover and MouseLeave events.

MyTab tab = new MyTab();
var win = this.dock.DockControl(tab, DockPosition.Fill, DockType.Document);
win.TabStripItem.CloseButton.Visibility = ElementVisibility.Hidden;
win.TabStripItem.MouseHover += new EventHandler(TabStripItem_MouseHover);
win.TabStripItem.MouseLeave += new EventHandler(TabStripItem_MouseLeave);

On MouseHover I set the button visibility to Visible, On MouseLeave I set the button visibility to Hidden
void TabStripItem_MouseLeave(object sender, EventArgs e)
{
    var tabStripItem = (TabStripItem)sender;
    tabStripItem.CloseButton.Visibility = ElementVisibility.Hidden;
}
 
 
void TabStripItem_MouseHover(object sender, EventArgs e)
{
    var tabStripItem = (TabStripItem)sender;
    tabStripItem.CloseButton.Visibility = ElementVisibility.Visible;
}

My problem is that the close button "flickers" when I mouve the mouse over the TabStripItem. What am I doing wrong? Is it possible to achieve this behavior?

Thanks,
Silvano
Silvano
Top achievements
Rank 1
 answered on 08 Nov 2013
1 answer
74 views
Hi, 

I have a GridView with 

grid.MultiSelect = true;
grid.SelectionMode = GridViewSelectionMode.CellSelect;

How can I achieve a behavior where the user can only multiselect cells of one row? I tried to use the gridFehlzeitenuebersicht_SelectionChanging Event without success. I think I just need a nice hint in the right direction. Thank you in Advance. 

I'm using C# and RadControls for WinForms V. 2013.3.1016.40. 

Best, 

Peter 
Stefan
Telerik team
 answered on 08 Nov 2013
5 answers
240 views
Hello,

I've used the RadDropDownList with style "DropDown". So I can use the autocomplete behavior. So far so good.
Each progammatically added item has an image (48x48). Wenn I opens the dropdown the items will be displayed with image.
But when I enter some text the matched items in the dropdown will be not displayed with image. Why?

Also the selected item will be not displayed with image. Only when I change the dropdown style to "DropDownList" the image will be displayed also. But then there is no possibility to use autocomplete behavior. That's bad.

As workaround I change the dropdown style on the fly. When clicking the control I change the style like:

private void CountrySelector_MouseClick(object sender, MouseEventArgs e)
{
this.CountrySelector.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;
  this.CountrySelector.DropDownListElement.ShowImageInEditorArea = false;
}

Now I can use the autocomplete behavior.

And in SelectedIndex_Changed event method I change the style to "DropDownList" like:

private void CountrySelector_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
{
  this.CountrySelector.DropDownListElement.ShowImageInEditorArea = true;
  this.CountrySelector.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
}

Then the selected item image will be displayed.

Cool. But I need to display the image of matched items in dropdown when entering text using the autocomplete behavior.
How to?

Regards,
Ralf
Stefan
Telerik team
 answered on 08 Nov 2013
1 answer
559 views
Hi, I'm having some issues with setting SelectedValue on a dropdownlist. 

In my application I have a site selection dropdownlist which helps distinguish different transaction sets. 
When edits are currently being made in any of the screens and the user tries to change the site using the dropdownlist, it asks whether or not the user wants to continue (checkDirtyLabour() below). If the user chooses to NOT continue with the site change (stay on same form) I want to ensure the dropdownlist doesn't change as well - or in fact, in this case, reverts back to the original value.

As such I try to set rddlSite.SelectedValue = Globals.CurrentSite (shared public variable). I have also tried this with the currentGlobalSite. Neither of these things are working presently, when stepping over these lines the assignation doesn't cause any errors yet also doesn't assign the value. ValueMember for rddlSite = "LookupID" of the LookUpRow record. For instance, the default Globals.CurrentSite value is 7, and changing it to 9 via selection, then cancelling the change when prompted does not return the SelectedValue to 7. 

If someone could help me figure out what's going on, I'd love some help. 

The following snippet is in rddlSite_SelectedValueChanged
Dim lu As LookupRow = DirectCast(rddlSite.SelectedItem.DataBoundItem, LookupRow)
If lu.LookupID <> Globals.CurrentSite Then
    Dim currentGlobalSite As Integer = Globals.CurrentSite
    If Globals.CurrentSite > 0 AndAlso checkDirtyLabour() Then 'if dirty and selected to not change, but not when Globals.CurrentSite not set
        rddlSite.SelectedValue = Globals.CurrentSite
        lh.rddlSite.SelectedValue = Globals.CurrentSite
        Return
    End If
    lh.rddlSite.Text = ""
    Globals.CurrentSite = lu.LookupID
    lh.rddlSite.SelectedText = lu.FieldID
    If Globals.CurrentSite > 0 Then refreshLabourOnSiteChange()
End If

Thanks, 
Vijay
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Nov 2013
3 answers
169 views
Hello Support,
I load your demo on blog http://blogs.telerik.com/careypayette/posts/13-08-30/take-full-control-of-your-projects-with-radganttview-for-winforms, But I see that the time displayed on Graphic view incorrectly. Is it?
I also try some data of your link http://www.telerik.com/help/winforms/ganttview-working-with-data-data-binding-basics.html, I still get the error.
 Please see attachment for more information.
Thanks in advance.
George
Telerik team
 answered on 06 Nov 2013
0 answers
100 views
I have a problem when click in any cell of a row the event launh .
I need to know how to get the event of a cell click of column number 2  for example in Gridview

User must click in a cell of a column name or column number  in any row

please help
Smayr
Top achievements
Rank 1
 asked on 06 Nov 2013
1 answer
228 views
I have tried setting AutoSizeItems and/or AutoSize to true on every element within the Dropdownlist, but I can not get the listbox to draw correctly when using the DescriptionTextMember.  See screenshot.  Any advice?  What am I missing?


George
Telerik team
 answered on 05 Nov 2013
4 answers
1.9K+ views

Hi,

    is it possible to enable or disable a specific cell in Gridview. i am using Winforms Q1 2010 SP1 version. 

Regards,

Nitin

Stefan
Telerik team
 answered on 05 Nov 2013
1 answer
166 views
Hi,

Treeview.SelectedNodes.Clear Not working when MultiSelect = false

Don't know if this is by design or a bug but in my opinion, when you invoke Treeview.SelectedNodes.Clear whatever is selected should no longer be selected, regardless of the MultiSelect setting.

In addition, if MultiSelect = false and you invoke Nodes.Clear(), SelectedNodes still contains an object. SelectedNodes shoud clear as well.

-Kim
Ralitsa
Telerik team
 answered on 05 Nov 2013
1 answer
184 views
On the save of the appointment I need to differentiate between the save of new appointment vs. an existing appointment.

I am aware that the save of a new appointment triggers the following event:

this.radSchedulerControl.AppointmentAdded += new EventHandler<AppointmentAddedEventArgs>(radSchedulerControl_AppointmentAdded);

 



And the save of the existing event triggers the following event with the action of the event = "ItemChanged"

this.radSchedulerControl.Appointments.CollectionChanged += new Telerik.WinControls.Data.NotifyCollectionChangedEventHandler(Appointments_CollectionChanged);
....however the problem with this event is that it get triggered multiple times based on what was changed for on the existing appointment.

A different thread suggested using the ApplySettingsToEvent function in the CustomAppointmentEditDialog class when saving an appointment to add my custom logic. However, in ApplySettingsToEvent I could not determine how to differentiate when a new Appointment is created vs an existing one is saved since this function gets executed on both the creation of a new appointment and the save of an existing.

Your help in determining how to execute custom logic only on the save of an existing appointment and have it triggered only once would be appreciated.

Thanks!
Vijay

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Nov 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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?