Private
FilterDescriptors
As
New
List(Of FilterDescriptor)
Private
Sub
GridView1_FilterChanging(sender
As
Object
, e
As
Telerik.WinControls.UI.GridViewCollectionChangingEventArgs)
Handles
GridView1.FilterChanging
e.Cancel =
True
For
Each
f
In
e.NewItems.OfType(Of FilterDescriptor)()
FilterDescriptors.Add(f)
Next
LoadData() 'Load data here
End
Sub
I am trying to conditionally switch between a Command Bar Button and a Command Bar Drop-Down Button with this code:
if (A)
{
if (commandBarStripElement1.Items.Contains(cbbCopy))
{
location = commandBarStripElement1.Items.IndexOf(cbbCopy);
commandBarStripElement1.Items[location] = cbDropDownButtonCopy;
}
}
else
{
if (commandBarStripElement1.Items.Contains(cbDropDownButtonCopy))
{
location = commandBarStripElement1.Items.IndexOf(cbDropDownButtonCopy);
commandBarStripElement1.Items[location] = cbbCopy;
}
The code works fine when A is true, but the second time the function is entered and A is false. I get this error:
System.InvalidOperationException: Element already added
The error is thrown from this line:
commandBarStripElement1.Items[location] = cbbCopy;
I've debugged in and checked all of the items in commandBarStripElement1 and cbbCopy is not in there. Is there some other way to swap items in the Command Bar while maintaining their position?
radPropertyGrid2.PropertySort = PropertySort.CategorizedAlphabetical;
RadPropertyStore store = new Telerik.WinControls.UI.RadPropertyStore();
store.Add(new PropertyStoreItem(typeof(double), "Foobar", 1.234, "ahdfl fdlskhs hjdfd", "Ack"));
this.radPropertyGrid2.SelectedObject = store;
I’d like to change the format which the calendar control uses to display the current date, to the left of the "Today" button. (Please see the attached screenshot – it's the format of the section circled in red which I’d like to change.) I’m specifically trying to use dd/MM/yy and have already tried this:
radDateTimePicker1.Format = DateTimePickerFormat.Custom;
radDateTimePicker1.CustomFormat = "dd/MM/yy";
Would you please describe how to change the date format to the left of the “Today” button?
Thank you,
Ben
void radTreeView1_DragDrop(object sender, DragEventArgs e)
{
Console.WriteLine("dragdrop ");
}
void radTreeView1_DragOver(object sender, DragEventArgs e)
{
Console.WriteLine("drag over");
}
void radTreeView1_DragEnter(object sender, DragEventArgs e)
{
Console.WriteLine("drag enter");
}