Telerik Forums
UI for WinForms Forum
9 answers
407 views
Hi,
we have check box in header cell of acheck box column and it is working fine for the version (2009.3.9.1203)
when we upgrade the dlls to new version (2010.2.10.713) its not working.

/// Class to Display check box Header cell
    public class CheckBoxHeaderCell : GridHeaderCellElement
    {
    }
I am getting some problem in the above class.

please give the work around for the new dlls.

Thank you,
Shashi


Stefan
Telerik team
 answered on 12 Jan 2015
1 answer
197 views
I'm playing around with the Ribbon bar and have multiple tabs which displays user controls for different sections of the program i'm playing around with. One section is products that is basically a datagrid with add, edit and delete functionality, this is all on a single user control. Normally I'd put the add, edit and update buttons in this user control so the main view doesn't get cluttered with code.

What is the best or most proper way to access the ribbon buttons from a user control?

  

Stefan
Telerik team
 answered on 12 Jan 2015
1 answer
250 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
138 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
456 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
108 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
538 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
308 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
858 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
149 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
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?