Telerik Forums
UI for WinForms Forum
1 answer
208 views
I have GridView with ContextMenu, i added to this ContextMenu several options after the user click right click on item from my GridView  and i want to know how can i change the color of the item that the mouse is in, you can see he default color in the attach screenshot
Stefan
Telerik team
 answered on 12 Jan 2015
1 answer
105 views
I set the datasource of multicolumncombobox everytime dropdown opening event is fired.
But on the first instance, it only show the header and a vertical scroll like 1st.png attachment. It did have rows since if I press downbutton, a row will be selected
while on the second instance and later, it works like 2nd.png attachment.

private void combobox_DropDownOpening(object sender, System.ComponentModel.CancelEventArgs args)
        {
            combobox.DataSource = datatable;
        }

Any suggestions?
Dimitar
Telerik team
 answered on 09 Jan 2015
1 answer
403 views
Hi,
I have a radGridView control with two columns, the second one should contain string values in every cell except for the last one which should be a checkbox. I'm not able to put the checkbox inside the cell. I've tried using the "CreateCell" event of the gridview in this way:

private void radGridView1_CreateCell(object sender, GridViewCreateCellEventArgs e)
{
    if (e.Column.Index==1 && e.Row.RowInfo.Index==18)
      {
         e.CellElement = new GridCheckBoxCellElement(e.Column, e.Row);
      }
}

The problem is that e.Row.RowInfo.Index is not the "absolute" row index but it's relative to the displayed cells. So, if I have a resized form the result of e.Row.RowInfo.Index could be any number between 0 and rows.Count.
Can anyone help me? Thanks.
Hristo
Telerik team
 answered on 09 Jan 2015
1 answer
79 views
Hello

I'am trying tu use the spreasheet example, but when i tried to run it, i found 256 errors only with the data.xml , i don't know what to do
XML: Unexpected /
XML: Unexpected
...
..
Can you please help me to resolve this issue ?
Thank you 
Dimitar
Telerik team
 answered on 08 Jan 2015
3 answers
480 views
Hello everyone

I'm trying to sort a RadGridView by clicking a header cell. The name of the column which should be sorted is "priority" and it's type is double. I have some other column which has different values. All these columns together build a "priority number" like 1.0, 2.0, 2.1 etc. And this "priority number" is in column called "priority". And now I'm trying to sort the priority column. It shouldn't matter which column header i click, it just have to sort the priority column. I tried this code:

private void radGridView1_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
    if (e.RowIndex == -1)
    {
        if (e.Column.Name == "va")
        {
            if (radGridView1.Columns["priority"].SortOrder == RadSortOrder.Ascending)
            {
                radGridView1.Columns["priority"].Sort(RadSortOrder.Descending, false);
            }

            else if (radGridView1.Columns["priority"].SortOrder == RadSortOrder.Descending)
            {
                radGridView1.Columns["priority"].Sort(RadSortOrder.Ascending, false);
            }

            else
            {
                radGridView1.Columns["priority"].Sort(RadSortOrder.Ascending, false);
            }
        }
    }
}

But it doesn't work. When I hit "va" column header, it sorts the "va" column and not the "priority" column. But in debugging mode I can see it goes through this code. Can anyone please tell me why it's not sorting "priority" column?

Thank you

Regards,
Danilo
Danilo
Top achievements
Rank 1
 answered on 08 Jan 2015
5 answers
271 views
When using a RadCalendar and if a user clicks on the currently selected date, the SelectedDate value of the RadCalendear will change to the RangeMinDate.  I'm currently using version 2011.3.11.1219. Please let me know if I'm missing something or a common work around for this.

Thanks,
Chris
Stefan
Telerik team
 answered on 08 Jan 2015
11 answers
757 views
Hi:

I have a problem modifying mi RadForm Title Bar Font. I'm trying to do by design, but it does not apply, i think its because im using Office Silver theme. Anyway, there are form propperties that I could change by code just when the form initializes, like the Icon and Image (thanks for that hit :)   ); but the font it says is Read Only:

Is there a way to change the font just for the RadForm Title Bar?

Thanks
Alireza
Top achievements
Rank 1
 answered on 07 Jan 2015
3 answers
122 views
Hi,
I had some issues trying to load different raddock's layouts containing distinct numbers of Tabbed Documents. This error always occurs on as specific situation, I'm gonna explain considering this two layouts:
LAYOUT1 = 4 Tabbed Documents
LAYOUT2 = 3 Tabbed Documents

First I load LAYOUT1 on my raddock and it creates 4 new Documents without errors. Then I load LAYOUT2 and apparently raddock re-use 3 opened documents and dispose one, that's ok. Finally, when I try to load LAYOUT1 again, I get a disposed object exception as below. I simulated this situation on Q2 2013 SP1 Examples (Dock\Serialization) and got same error (this example only uses ToolWindows, but when you dock the control filling the parent it becomes a Tabbed Document property). I really need that funcionality to by your product, thanks for your attention.

************** Exception **************
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'ToolWindow'.
   em System.Windows.Forms.Control.CreateHandle()
   em System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   em System.Windows.Forms.Control.CreateControl()
   em System.Windows.Forms.Control.SetVisibleCore(Boolean value)
   em System.Windows.Forms.Control.set_Visible(Boolean value)
   em Telerik.WinControls.UI.TabPanel.set_Visible(Boolean value)
   em Telerik.WinControls.UI.TabStripPanel.SetSelected(TabPanel tabPanel)
   em Telerik.WinControls.UI.TabStripPanel.UpdateTabSelection(Boolean updateFocus)
   em Telerik.WinControls.UI.Docking.DockTabStrip.UpdateTabSelection(Boolean updateFocus)
   em Telerik.WinControls.UI.Docking.DocumentTabStrip.UpdateTabSelection(Boolean updateFocus)
   em Telerik.WinControls.UI.Docking.DockWindow.EnsureVisible()
   em Telerik.WinControls.UI.Docking.RadDock.UpdateActiveWindow(DockWindow window, Boolean forceNotify)
   em Telerik.WinControls.UI.Docking.RadDock.ActivateWindow(DockWindow window, Boolean forceNotify)
   em Telerik.WinControls.UI.Docking.RadDock.EnsureInitialized()
   em Telerik.WinControls.UI.Docking.RadDock.LoadDeserializedFloatingAndAutoHideWindows()
   em Telerik.WinControls.UI.Docking.RadDock.LoadFromNewXml(XmlReader reader)
   em Telerik.WinControls.UI.Docking.RadDock.LoadFromXmlCore(XmlReader reader, Boolean oldXmlFormat)
   em Telerik.WinControls.UI.Docking.RadDock.LoadFromXml(String fileName)
   em Telerik.Examples.WinControls.Docking.Serialization.Form1.radButton1_Click(Object sender, EventArgs e)
   em System.Windows.Forms.Control.OnClick(EventArgs e)
   em Telerik.WinControls.RadControl.OnClick(EventArgs e)
   em Telerik.WinControls.UI.RadButtonBase.buttonElement_Click(Object sender, EventArgs e)
   em Telerik.WinControls.RadItem.OnClick(EventArgs e)
   em Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
   em Telerik.WinControls.UI.RadButtonElement.OnClick(EventArgs e)
   em Telerik.WinControls.RadItem.DoClick(EventArgs e)
   em Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
   em Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
   em Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
   em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   em System.Windows.Forms.Control.WndProc(Message& m)
   em System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   em Telerik.WinControls.RadControl.WndProc(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Assemblies **************
mscorlib
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.5472 (Win7SP1GDR.050727-5400)
    Base de Código: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TelerikExamples
    Versão do Conjunto de Módulos (Assembly): 2013.2.724.20
    Versão do Win32: 2013.2.724.20
    Base de Código: file:///C:/Program%20Files/Telerik/RadControls%20for%20WinForms%20Q2%202013/Examples/QuickStart/bin/TelerikExamples.exe
----------------------------------------
System.Windows.Forms
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
QuickStart
    Versão do Conjunto de Módulos (Assembly): 2013.2.724.20
    Versão do Win32: 2013.2.724.20
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/QuickStart/2013.2.724.20__5bb2a467cbec794e/QuickStart.dll
----------------------------------------
Telerik.WinControls.UI
    Versão do Conjunto de Módulos (Assembly): 2013.2.724.20
    Versão do Win32: 2013.2.724.20
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.UI/2013.2.724.20__5bb2a467cbec794e/Telerik.WinControls.UI.dll
----------------------------------------
Telerik.WinControls
    Versão do Conjunto de Módulos (Assembly): 2013.2.724.20
    Versão do Win32: 2013.2.724.20
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls/2013.2.724.20__5bb2a467cbec794e/Telerik.WinControls.dll
----------------------------------------
TelerikCommon
    Versão do Conjunto de Módulos (Assembly): 2013.2.724.20
    Versão do Win32: 2013.2.724.20
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/TelerikCommon/2013.2.724.20__5bb2a467cbec794e/TelerikCommon.dll
----------------------------------------
System.Xml
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
sykqtklk
    Versão do Conjunto de Módulos (Assembly): 2013.2.724.20
    Versão do Win32: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Telerik.WinControls.Themes.Aqua
    Versão do Conjunto de Módulos (Assembly): 2013.2.724.20
    Versão do Win32: 2013.2.724.20
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.Themes.Aqua/2013.2.724.20__5bb2a467cbec794e/Telerik.WinControls.Themes.Aqua.dll
----------------------------------------
Telerik.WinControls.Themes.Breeze
    Versão do Conjunto de Módulos (Assembly): 2013.2.724.20
    Versão do Win32: 2013.2.724.20
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.Themes.Breeze/2013.2.724.20__5bb2a467cbec794e/Telerik.WinControls.Themes.Breeze.dll
----------------------------------------
Telerik.WinControls.Themes.Desert
    Versão do Conjunto de Módulos (Assembly): 2013.2.724.20
    Versão do Win32: 2013.2.724.20
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.Themes.Desert/2013.2.724.20__5bb2a467cbec794e/Telerik.WinControls.Themes.Desert.dll
----------------------------------------

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jan 2015
3 answers
802 views
Hi,
I need to change my application's font dynamically,when I set the font of main window without setting theme everything works fine
but unfortunately when I set the theme changing font not working.
Is there any way to change the font of controls dynamically after setting theme?
Hristo
Telerik team
 answered on 07 Jan 2015
5 answers
432 views
All the rad controls and their groups are gone from my toolbox.

I spent 2+ hours repairing VS2010 and loading updates.  I then ran the telerik toolbox configurer and they were there.  Then, while changing the Text property of a Telerik control, VS crashed.  When I reopened the project the tools were all gone from the toolbox again.

What is going on?!  This is costing me a huge amount of time!

How can I fix this quickly?
Kavish
Top achievements
Rank 1
 answered on 07 Jan 2015
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?