Is there any easy way to get notified if the user changes the palette through the right click menu?
I am currently handling the ContextMenuOpening event so that I can find all of the palette menu items and add click event handler individually, but this is awkward and I was hoping for a more direct method.
I'm running into an issue with format of a datetime column when exporting to excel.
What I am trying to do is export datetime column to excel and format as the full datetime on excel, how the various approaches i have tried do not seem to work.
I can get the export to appear to show up as a datetime by:
column.ExcelFormatString = "M/d/yyyy h:mm tt"
column.ExcelExportType = DisplayFormatType.Text;
The problem with this is, that when i put I put a filter on the column in excel, it only sorts alphabetically not by date.
The closest I am able to get behavior wise is this:
column.ExcelFormatString = "M/d/yyyy h:mm"
column.ExcelExportType = DisplayFormatType.Custom;
This allows me to sort by date, but makes the time portion 24 hr format. If I try this with "M/d/yyyy h:mm tt" it ignores the AM/PM indicator and just writes "tt" at the end.
Ideally what I would like is a away to get the datetime to show up in 12 hour format in excel ("M/d/yyyy h:mm tt") while still being able to sort by Earliest/Latest instead of Alphabetically.
Any help would be appreciated, thanks.
I've got some weird custom logic to implement on a text field, for which the best solution seems to be a Custom Editor using a RadDropDownListEditorElement. I want the Enter key to commit the current selection and end editing. The default behavior when Enter is pressed is to close the Popup, but leave the editor focused in edit mode.
I tried the following (inside the Custom Editor class I defined):
radDropDownListEditorElement.KeyDown += (o, args) =>
if
(args.KeyCode == Keys.Enter)
{
var cell = parentGridView.CurrentCell;
parentGridView.EndEdit();
cell.ViewInfo.Refresh();
}
};
This works fine if the popup is already closed (for example, by pressing Enter twice, or clicking the mouse and THEN pressing Enter). But when the popup is open, KeyDown never gets fired. I've tried capturing radDropDownListEditorElement.Popup.KeyDown and PopupForm.KeyDown, with no luck. Any idea how to get keypresses when the Popup is open, or a better way to achieve this functionality? Using a Custom Editor is required for other reasons.
When a user changes their screen scaling either by resolution or DPI settings the following works for native windows controls but not for Telerik -- why is this?
this.AutoScaleMode = AutoScaleMode.None;
foreach (Control c in Controls)
{
c.Font = new Font("Segoe UI", 9);
}
Thanks in advance
I am using the WinForms 2016 version.
I have discovered that selecting the first item in the combobox in code is not calling the SelectedIndexChanged of the same control.
<b>mcc_Scaffold_Tag.SelectedIndex = 0 </b>
Am I using the right event?
Hi,
how to Group by Day and not by Resource?
Is there a way to do that?
We like to have a "DayView" where all Resources are listed at one Day/Date.
Regards
Hardy
Hi
I'm using a RadOffice2007ScreenTipElement with a RadTreeView, showing it using ScreenTipNeeded and everything is working as expected.
I do have a slight issue - if i start to Drag&Drop, the screen tip will remain visible the whole time (and block my view of other tree elements). I haven't been able to make it disappear. Is there a way to manually remove a screentip while the TreeView is still pressed/active (due to dragging)?
I am trying to create a treeview with hierarchical structure.
CIK
|__Series
|__Class
Series will be populated from the database based on the currently selected CIK value member(Id). Class will be populated from the database based on the Series ID selected.
I couldn't find the right sample in the documentation to do this. Please point me in the right direction. Thank you for your help.