Telerik Forums
UI for WinForms Forum
1 answer
179 views
Hello,

Winforms.

I have an application whereby I am creating a pop up window with a new rad form. My first dilemma was when I applied themes globally and I use the "Aqua" theme, I need to get the text to align left with the form set at FixedDialog.
I then started adding a RadTitle bar which sort of resolved the problem, however when I applied the "Aqua" theme and any other theme I lost the pop up border as seen in image and here are some settings in the load event

this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

this.MaximizeBox = false;

this.MinimizeBox = false;

Size = new Size(422, 433);

Assistant.CenterFormOnScreen(this);

this.Text = "Aqua Theme";

Also not the circle on the left is gray and the Aqua theme makes it red with an x when you mouse over it.


Now when I set the settings in the form load to change the form border and I get two titles in the form.

this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;

this.MaximizeBox = false;

this.MinimizeBox = false;

Size = new Size(422, 433);

Assistant.CenterFormOnScreen(this);

this.Text = "Aqua Theme";

It is an MDI application and these are pop up forms.
Can someone tell me if this is normal or what other settings am I missing.

Thanks

Chom


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Nov 2013
3 answers
215 views
hi every one
I tried to display large number with (14 digit or more) but rad chart display it over linear axis 
can you help me?
 
Ralitsa
Telerik team
 answered on 08 Nov 2013
6 answers
151 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
53 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
198 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
457 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
142 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
80 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
186 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.8K+ 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
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
TimeSpanPicker
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
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?