Hello,
I got a tree with an unbound column like this:
UltraTreeNodeColumn ultraTreeNodeColumn = new UltraTreeNodeColumn(); ultraTreeNodeColumn.DataType = typeof(bool); ultraTreeNodeColumn.AllowCellEdit = AllowCellEdit.Full; ultraTreeNodeColumn.Key = notationEdit.ID.ToString(); ultraTreeNodeColumn.Tag = notationEdit; ultraTreeNodeColumn.LayoutInfo.OriginX = 0; ultraTreeNodeColumn.LayoutInfo.OriginY = -1; ultraTreeNodeColumn.LayoutInfo.MinimumCellSize = new Size(20, 20); ultraTreeNodeColumn.LayoutInfo.PreferredCellSize = new Size(20, 20); ultraTreeNodeColumn.LayoutInfo.SpanX = 1; ultraTreeNodeColumn.LayoutInfo.SpanY = 1; ultraTreeNodeColumn.AutoSizeMode = ColumnAutoSizeMode.None;
while creating nodes I want to insert a (Ultra)CheckEditor in the a cell, like this:
UltraCheckEditor checkEditor = new UltraCheckEditor(); checkEditor.Visible = false; checkEditor.UseFlatMode = DefaultableBoolean.True; checkEditor.Size = new Size(16, 16); checkEditor.Appearance.Image = Icons16.Placeholder; checkEditor.Appearance.ImageHAlign = HAlign.Center; checkEditor.Appearance.ImageVAlign = VAlign.Middle; checkEditor.CheckedAppearance.Image = Icons16.OPDProcess; checkEditor.CheckedAppearance.ImageHAlign = HAlign.Center; checkEditor.CheckedAppearance.ImageVAlign = VAlign.Middle; checkEditor.Style = EditCheckStyle.Button; checkEditor.DrawFilter = new NoFocusRectDrawFilter();
this.ExtensionManager.ExtendedObject.Controls.Add(checkEditor);
e.Node.Cells[2].EditorComponent = checkEditor;
but I got 2 problems here:
First: the image for false is not displayed at all (the placeholder image has a very eye catching color), instead no image is displayed after clicking the cell with a value of true. So changing the cell value from true to false will draw no image, the true image just disapears. Why?
Second: The check box always draws the focus rectangle, this is not desired. I was unable to get rid of it even with a draw filter that usually solved this issue.
what I already tried:
- using a CheckEditor, but this control doesnt even provide appearance for false?
- Creating the UltraCheckEditor with the designer
- deactivating all styles etc.
Any help is welcome!
Blue
Hi,
This probably had nothing to do with the issue, but just out of curiosity, why are you assigning the CheckEditor to the cell and not the column?
Anyway, I tried this out and I get the same results. I then tried the same thing using a CheckEditor in an UltraWinGrid cell and it worked fine. So it looks like this is a bug in the tree. I'm going to ask Infragistics Developer Support to create a case for you and write this up as a bug for developer review.
Regarding the focus rectangle - the DrawFilter doesn't work because you are applying a DrawFilter to the UltraCheckEditor control and that control isn't even displayed. If you want to remove the focus rectangle from the tree, you need to use a DrawFilter on the tree control.
Hello Mike,
it is just that not all cells in the column should display a checkeditor, some need empty cells.
Thanks for sending this in for a review.
Ok so the tree is assimilating the check editor to draw it, got that ;)
waiting for further findings then...
Carsten,
I have logged this behavior in our internal tracking system with a Development ID of 125624. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix or other resolution.
I will leave this case open and update you with any new information after the review. You can also continue to send updates to this case at any time.
You will receive more information through support case CAS-102038-T4K0N9 which has been opened for you.
You can view the status of the development issue connected to this case by logging into your account on our website, hovering to the "My Support Activity" dropdown and selecting the "Development Issues" tab.
The correct number for this development item is 125264. Entschuldigen Sie.
Thanks Michael.