I want to distinguish between:
A) Tab close.
B) Tab being dragged out into a new parent window
Both of the above call: TabRemoving, TabRemoved
What is the proper event or technique to distinguish between A and B?
I am using your drag and drop service between grids. Code is working fine for 10 rows. Lager multirow selections error out. I have experimented and have determined that if the rows are not showing in the grid I get this error. For example, if my grid visually shows 10 rows and I select all of those rows and drag them to another grid all works fine.
If I select the first row and scroll down to select the 11th row while holding down the shift key, all eleven rows are selected. However dragging then to the other grid I get an error in the svc_PreviewDragDrop method on the line: var dragGrid = rowElement.ElementTree.Control as RadGridView;
Error Message below:
Date Time:1/9/2021 6:45:16 PM
Exception Name:Object reference not set to an instance of an object.
Event Name:System.NullReferenceException: Object reference not set to an instance of an object.
at SmartView_V2.frmMainForm.svc_PreviewDragDrop(Object sender, RadDropEventArgs e) in C:\Users\claud\Documents\Visual Studio 2019\Projects\SmartView V2\frmMainForm.cs:line 2387
Control Name:svc_PreviewDragDrop
Form Name:frmMainForm
Hi, I have a loop where I am filling the grid and immediatelly print the grid. All printed documents have the same grid values of the last loaded records to the grid DataSource. Is there something I can do to properly print the grid with correct cell values from actual records?
foreach
(var run
in
_runsToPrint)
{
FillReportedAnalytesGrid();
PrintPreview.PrintGrid(rgvReportedAnalytes, run);
}
private
void
FillReportedAnalytesGrid()
{
var records = provider.GetReportedResults();
rgvReportedAnalytes.DataSource =
null
;
rgvReportedAnalytes.DataSource = records;
rgvReportedAnalytes.BestFitColumns(BestFitColumnMode.AllCells);
rgvReportedAnalytes.Refresh();
}
public
static
void
PrintGrid(RadGridView view,
string
run)
{
var document =
new
RadPrintDocument();
view.Print(
false
, document);
}
Are there any options to make a tooltip in which you can place Text, Buttons, etc.?
Something like this:
Hello , I am new in Telerik WinForms.
My situation is group all items by its Product Name, while Product has its own price . e.g Product-1 has multiple values/items , similaly Product-2 has own items/values. I know in this situation Grouping concept is used i-e Group By Product, but I want to show Price of that Group along with Product Name.
For clarity i have attached a picture. I want this result in RadListView / Any other Control. Please help me along with coding.
Thanks
Hi,
I'm creating a usercontrol wich contains a RadCommandbar and an editor (richtext).
The commandbar contains two CommandBarDropDownList and standards radbutton.
I'm trying to prevent dropdownlists from gaining focus when I press tab, but neither can focus on dropdownlists nor tabstop on commandbar working.
Focus is still in my first CommandBarDropDownList.
I even tried https://docs.telerik.com/devtools/winforms/controls/commandbar/how-to/prevent-the-control-from-gaining-focus.
To explain exactly what's suppose to happen, when tab key is pressed the user control should gain focus, the commandbar should be skipped and the editor become the active control (kind of).
Thanks a lot for helping me.
Cf: my userControl
How set margin for Image in RadContextMenu (RadMenuItem)?
Now when setting the image to RadMenuItem, it is too close to the text and left border. How to regulate it?
RadTabbedFormControl.ContextMenuOpening += (obj, arg) => {
arg.ContextMenu.Items.Clear();
};
e.Tab.Item.MouseDown += (obj, args) => {
if
(args.Button == MouseButtons.Right)
{
ContextMenu testMenu=
new
ContextMenu();
testMenu.MenuItems.Add(
"Test"
);
testMenu.Show(e.Tab,
new
Point(args.Location.X + 5, args.Location.Y - 35));
}
};
But there was a problem with the error (Unable to display ContextMenu in invisible control) when clicking on an inactive tab.
Can you tell me another way?