Telerik Forums
UI for WinForms Forum
4 answers
217 views

I originally posted this in the wrong forum, so that one can be delete.

I am having an issue with SplitPanels that are added into a RadSplitContainer when those controls are inherited.  I have a base form class that has a RadSplitContainer on it, with two SplitPanels in it.  Then I create the new form based on that base form.  I can open the designer the first time and save, but once I close it and re-open it, I get "Duplicate component name 'splitPanel1'. Component names must be unique and case-insensitive"

Some things I have noticed is that the splitPanel lack the "Modifier" property. 

Any help would be greatly accepted.

Thanks


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Sep 2018
17 answers
518 views
Hi

How can i specify a location to open the DesktopAlter i.e. a specific point on the screen. I am trying to use this as an advanced tool tip screen but cannot specify X & Y coordinates to open this.

Regards
Harsh

Marc
Top achievements
Rank 1
Veteran
 answered on 06 Sep 2018
3 answers
365 views

     Hey guys, I've customized the Fluent(just changed the blue) and currently using it fine on my project. I just don't like it on RadGridView and i really liked VisualStudio2012Light on it, is there a easy way to mix my whole Fluent theme with just RadGridView of VisualStudio2012Light ?

And another question, how can I change the border color of RadForm on the Fluent Theme, couldn't find it.

Thanks in advance and sorry for bad english.

Dimitar
Telerik team
 answered on 06 Sep 2018
0 answers
127 views

Hey guys, I've inherited RadDateTimePicker to do a better handling of null value with databinding and the problem is when it got focused by Tab key it borders don't change as it should be. Ive tried setting focus to DateTimePickerElement when my picker got focus, but it didn't solve as well. 

 

 public partial class NossoRadDateTimePicker : RadDateTimePicker
    {
        public NossoRadDateTimePicker()
        {
            InitializeComponent();
            TabStop = true;
            this.ValueChanged += NossoRadDateTimePicker_ValueChanged;
            this.GotFocus += NossoRadDateTimePicker_GotFocus;
        }

        private void NossoRadDateTimePicker_GotFocus(object sender, EventArgs e)
        {
            base.DateTimePickerElement.Focus();
        }

        private void NossoRadDateTimePicker_ValueChanged(object sender, EventArgs e)
        {
            if (ShowCheckBox && checking == false)
                this.Checked = true;

        }

        [Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public new DateTime? NullableValue
        {
            get
            {
                throw new Exception("Use Value");
            }
            set
            {
                throw new Exception("Use Value");
            }
        }

        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        /// <summary>
        /// Poderá retornar null caso use o checkbox e ele não esteja checkado
        /// </summary>
        public new DateTime? Value
        {
            get
            {
                DateTime? valor = base.Value;

                if (ShowCheckBox && Checked == false)
                    valor = null;

                return valor;
            }
            set
            {
                //garantir que essa bosta n sete valor fora do range de datas
                if (value != null)
                {
                    value = value > MaxDate ? MaxDate : value;
                    value = value < MinDate ? MinDate : value;
                    Checked = true;
                }
                else if (ShowCheckBox)
                    Checked = false;

                checking = true;
                base.Value = value ?? DateTime.Now;
                checking = false;

            }
        }

        protected override void OnKeyDown(KeyEventArgs e)
        {
            if (e.KeyData == Keys.Space)
            {
                this.Checked = !this.Checked;
            }
            else
            {
                base.OnKeyDown(e);

            }
        }

        bool checking;
    }

Leandro
Top achievements
Rank 1
 asked on 05 Sep 2018
2 answers
458 views

Hello!

I need to deselect only one cell once selected.
I have tried the following code in the SelectionChanged and SelectionChanging events. But it does not work.

Any suggestions?

RadGridView1.CurrentCell.IsSelected  = false

 

 

Thanks.

 

 

 

Esteban
Top achievements
Rank 1
Iron
Iron
 answered on 05 Sep 2018
14 answers
1.4K+ views
I have a docked RADSplitContainer with 3 panels, 2 horizontal splitters. I only want the middle panel to resize when the form is resized the top & bottom are can not be resized. Will an absolute size take care of that, or do I need to do something else (and what would that be?)?

Thanks

:)
jr
Hristo
Telerik team
 answered on 05 Sep 2018
3 answers
107 views

I am trying to set the color of the bar , when a value goes below a certain amount. I have tried the below, but none of them change the color of the bar from Green to red. :

      barBat.BackColor = Color.Yellow
                        barBat.GaugeElement.BackColor = Color.Yellow
                        barBat.GaugeElement.BackColor2 = Color.Yellow
                        barBat.GaugeElement.BackColor3 = Color.Yellow
                        barBat.GaugeElement.BackColor4 = Color.Yellow

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Sep 2018
15 answers
1.1K+ views
Hi,

Is it possible to get the selected text value of a GridViewComboBoxColumn for a set cell in a row?

thanks

David
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Sep 2018
1 answer
357 views
There's a way to remove the border around the tree view control?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Sep 2018
2 answers
193 views

Hi, 

I'm struggling for something that perhaps is very easy...

I have assigned a DataTable as Datasource for my GridView.

The data is correcly shown and the boolean values are mapped on checkboxes.

I save back the values to the database getting the new values from the DataTable.

However sometimes the user open the form, click on checkboxed value, and then click on the Save button.

It seems that if you don't deselect the modified Row, the new value of the checkbox is not stored into the DataTable, so I save the old value, while in the GridView you see the new value.

Is there a way to force the sync right after the click on the checkbox?

I've tried with something like this, but without success.

private void RadGridView1OnCellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
            e.ActiveEditor.EndEdit();
            e.ActiveEditor.Validate();
}
Dimitar
Telerik team
 answered on 03 Sep 2018
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
ProgressBar
CheckedDropDownList
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
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
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?