Telerik Forums
UI for WinForms Forum
4 answers
486 views

I have a user control that contains a radlabel and a radmaskedtextbox. I need to change the backcolor of the textbox to match the forecolor of the radlabel when the user control is disabled. Everything works fine if the user control is initially enabled. However, If I set the initial state of the user control disabled, then upon running the program, the maskedtextbox's backcolor is black while the forecolor of the radlabel is gray. Here is the code: 

Color disableColor;
 
private void maskedTextBox_EnabledChanged(object sender, EventArgs e)
{
 
        if (!this.maskedTextBox.Enabled)
        {                 
            //Set disable color the same as the label text color
            this.radLabel.LabelElement.VisualState = "RadLabelElement.Disabled";                   
            disableColor = this.radLabel.LabelElement.ForeColor;
 
            //Change the backcolor of the maskedtextbox
            this.maskedTextBox.MaskedEditBoxElement.TextBoxItem.BackColor = disableColor;
 
        }
        else
        {
            //Reset values
             
        }
    }
     
}
Dimitar
Telerik team
 answered on 21 Mar 2016
1 answer
119 views

Im use this function for editing the style (ex color, font) of radelement

RadElementHierarchyEditor

http://www.telerik.com/products/winforms/element-hierarchy-editor.aspx

Now i need to change the color of form element but radform does not have RadElementHierarchyEditor

How to change the color Green to Red for example?

I found several solutions in our forum, but all change the "theme", not only the color.

I develop many applications in C #. Net for Windows Forms and am considering the purchase of various frameworks, according to the most changeable.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Mar 2016
6 answers
243 views
Hi,

I have a strange problem with trackballs. It happens when the chartview has multiple y-axis and multiple types of series (e.g. line series and bar series). The problem is that the trackball shows only for one or two categories starting from the left. I have attached a picture, in which there is a chartview with four categories, three series and two y-axis. In this case the trackball shows for the first two categories only. When I move the mouse over the third or fourth category, no trackball appears.

This problem seems to have something to do with two things:
1.) the order the different serie types are added to the chartview
2.) incomplete series

 In my case the problem happens when the bar series is added first to the chartview and then the line series, and the series are incomplete. However, it doesn't happen for all cases having these two conditions, so there must be some third factor affecting to this.

I'm populating the chartview dynamically from datatable. The trackball is added to the chartview like following:

     Dim Trackball As New ChartTrackballController()
     AddHandler Trackball.TextNeeded, AddressOf trackball_textNeeded
     Trackball.InfoElementOffset = New System.Drawing.Point(0, -20)
     rChartView.Controllers.Add(Trackball)

The formatting for the trackball texts is done in trackball_textNeeded  event handler.

I'm using Telerik Q1/2013
Dimitar
Telerik team
 answered on 21 Mar 2016
3 answers
417 views

    The Web-Version of RadGridView, has the EditForm Mode, to edit the Content of a row, with some customized Control.

In the WinForms Version of RadGridView I'm missing this Mode.

There are GridViewTemplates and Grouping and Hierarchy Staff, that 'expand' a Row,

that link to different tables or different rows.

 

I haven't found any example, to expand just an Edit Control of the Row, with a more appealing presentation, when inside cells, for example.

How do I edit the row itself in the expanded part - without having a Hierarchie of anything.

The overwie page, has something almost like that:

http://docs.telerik.com/devtools/winforms/gridview/overview
But this is Non-Edit (I assume)

and it does not come with the source Code.

Also the Webinar does not handle GridViewTemplates.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Mar 2016
5 answers
630 views

Hello,

  I have created a GridViewTextBoxColumn(), on _CellPaint() I am painting three images starting from the left to right.  I would like to detect a mouse click on the rectangle that corresponds to the image but I can't get the Cell.Size information on the CellClick() event.

I have tried creating a custom control that holds three buttons but the UI doesn't fit my needs.

In order to determine what was clicked on the cell, I need to know the click x/y and the current cell rectangle.

Thanks!

 

void grid_CellPaint(object sender, GridViewCellPaintEventArgs e)
        {
            GridDataCellElement dataCell = e.Cell as GridDataCellElement;
            if (dataCell != null && dataCell.ColumnInfo.FieldName == "ID")
            {
                Size cellSize = e.Cell.Size;
                Rectangle rct = new Rectangle(0, 0, cellSize.Height, cellSize.Height);
                //using (Pen p = new Pen(Color.Black))
               // {
                 
  //Flag
                    rct.Inflate(-2, -2);
                    e.Graphics.DrawImage(global::DIRC.UITools.Properties.Resources.Flag_red_icon16x16, rct);
           

                    //Information Icon
                    rct = new Rectangle(cellSize.Height, 0, cellSize.Height, cellSize.Height);
            
                    rct.Inflate(-2, -2);
                    e.Graphics.DrawImage(global::DIRC.UITools.Properties.Resources.information_icon_16x16, rct);

                    //Comment Icon
                    rct = new Rectangle(cellSize.Height * 2, 0, cellSize.Height, cellSize.Height);
                     
                    rct.Inflate(-2, -2);
                    e.Graphics.DrawImage(global::DIRC.UITools.Properties.Resources.comment_icon16x16, rct);
               // }
            }
        }

Hristo
Telerik team
 answered on 18 Mar 2016
8 answers
417 views

I'm creating a GridViewColorColumn and I would like to modify it's look. I just want the color box showing the color and the button, no text. It would be nice if I could make the color box wider also.

 VB code please.

   Private Sub grdMainGrid_DataBindingComplete(sender As Object, e As GridViewBindingCompleteEventArgs) Handles grdMainGrid.DataBindingComplete

        Dim colorBoxColumn As New Telerik.WinControls.UI.GridViewColorColumn
        colorBoxColumn.DataType = GetType(Color)
        colorBoxColumn.HeaderText = "Staff Color"
        grdMainGrid.Columns(2) = colorBoxColumn
        grdMainGrid.AllowEditRow = True
        grdMainGrid.Columns(2).ReadOnly = False

​end sub

 

Later

Art

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Mar 2016
4 answers
229 views

I'm using 2016 Q1 Jan and the VisualStudio2012Light theme. I'm using a RadDropDownList with AutoCompleteMode = SuggestAppend.

I have a problem where if the values for the items in the list are very long then when you start typing and the suggestions appear then they overlap and make it very difficult to read.

When viewing the items in the list normally there is no problem and the items have ellipses.

Can you please assist?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Mar 2016
4 answers
692 views

I need to change the background color of many Rad controls when they are disabled, RadDropDownList is one of them. I have searched up the forum but have not found a satisfactory answer. I am wondering if there is a built-in property that I can just set, so that each time RadDropDownList is disabled, its background color changes to black or gray, instead of the default disable-color. 

I understand that there is a built-in property to set default disable paint to false, it is shown in the code below. But then, how can I set up a custom disable paint? 

UseDefaultDisabledPaint = false;  

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Mar 2016
2 answers
161 views

From filtering box, when I select Null and then select All then the following error occurs:

Item has already been added. Key in dictionary: '(Blanks)'  Key being added: '(Blanks)'

Please see the attached screenshot.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Mar 2016
1 answer
475 views

Hello,

I've had issues using Telerik for WinForms for a couple of weeks.

I thought I had cured it all last week when I updated my Telerik Control Panel and then updated the suite of controls.

The WinForms app I am working on will not allow me to add any Telerik controls to any Telerik form.

I tried repairing the Telerik WinForms components which didn't work.

I then uninstalled the Telerik WinForms components and re-installed them. Everything appears to install fine but my project will still not allow me to add controls (I can add RadForms though).

Every time I try to add ANY control I get a messagebox saying: "Failed to created component Rad.... The error message follows"....

Why is trying to re-add a reference to Telerik.WinControls.UI every time a new control is placed onto a form?

I am running Windows7 64-Bit - The references in my app are:

Telerik.WinControls

Telerik.WinControls.UI

TelerikCommon

Paths to files are:

C:\Program Files (x86)\Telerik\UI for WinForms Q1 2016\Bin40\Telerik.WinControls.dll

C:\Program Files (x86)\Telerik\UI for WinForms Q1 2016\Bin40\Telerik.WinControls.UI.dll

C:\Program Files (x86)\Telerik\UI for WinForms Q1 2016\Bin40\TelerikCommon.dll

Which are the latest downloads via Telerik Control Panel this afternoon.

 

Has anyone else experienced this issue? It's holding me up a lot.

Thanks.

 

Dimitar
Telerik team
 answered on 17 Mar 2016
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?