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
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.
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;
}
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.
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
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();
}