The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I''ve implemented a custom TreeCell based on the sample
Windows\Grid.Windows\Samples\In Depth\VirtTreeGrid
GridControl.ListBoxSelectionMode = SelectionMode.MultiExtended, the TreeCellRenderer is derived from TextBoxCellRenderer, the indent of a treenode is viewed simply setting style.BorderMargins.Left and I paint the +- images before the TextBox''s left margin.
Problem is, that clicking on the +- image doesn''t always trigger OnClick() event: if the row is selected, I must click 2 times but if I wait on the row, the cursor transforms to "mousearrow + rectangle" (denoting StartDrag???) and in this case I must click 3 times in order to have an OnClick() event.
Help!
ADAdministrator Syncfusion Team June 20, 2005 09:52 AM UTC
That sample uses the renderer.OnMouseDown to manage the click on the cell. Have you using that method to manage your +/- click?
ADAdministrator Syncfusion Team June 20, 2005 01:20 PM UTC
No, the sample uses the OnMouseClick() event. OnMouseDown() is used for the right button (to view the context menu). (Interestingly for the left button the OnMouseDown() method won''t be called in the sample!)
Now I''ve found that the Drag&Drop logic of GridControl swallows this event. If I (and the sample does it!) set Me.ControllerOptions = (Me.ControllerOptions And Not (GridControllerOptions.OleDataSource)) then everything worx fine!