Hi!
1. Can I access Embeddable Editors from other controls, i.e. Embeddable Editors written in characters, when it does not has focus?
2. Can I disable checking for input characters in Embeddable Editors, in particular, checking the type Decimal?
No, I don't think there is any way to do that.
I don't need to enter "=2+2" in Active cell, I need to enter this string in ActiveCell.Editor, because ActiveCell have type "Decimal".
I did
UIElement uiElement = activeCell.GetUIElement(); EmbeddableUIElementBase embeddableElement = uiElement.GetDescendant(typeof (EmbeddableUIElementBase)) as EmbeddableUIElementBase; activeCell.EditorResolved.EnterEditMode(embeddableElement);
But after that focus go to ActiveCell from UltraGrid. Can I EnterEditMode in Editor without lost focus from UltraTextEditor?
The simple solution would be to put the cell into edit mode first. Set the ActiveCell on the grid to the cell you want. Then call grid.PerformAction(EnterEditMode).
Thanks for answer!
About first question. I have 2 controls: UltraTextEditor and UltraGrid. I want to put formula like “=2+2” (like Excel) into top control (UltraTextEditor). Also, I want do something like ultraGrid.ActiveCell.EditorResolved.Value = ultraText.Text, like on the picture. (I have my own editor for columns of "Decimal" type: ultraGridColumn.EditorControl = m_editor)
But this sample have error like “Can't access the 'Value' property when not in edit mode”, because focus on UltraTextEditor control.
How can I solve this problem?
Hi,
DimKS said:1.Other words, can I write symbols to control “Embeddable Editors” from outside/other control, when control “Embeddable Editors” doesn’t have focus?
I'm afraid I still don't understand what this means.
DimKS said:2.I’m using UltraGrid control. I want to check the type of characters, after I input them into the cell of type Decimal. I want to put, for example, string like “2+2” in Decimal cell and after press Enter I want to get value 4 and check for type “Decimal”.
There's no way to allow the user to enter text like this into a masked editor. If you use a regular text cell with no masking, then you could use a DataFilter to convert "2+2" into 4 by handling the DisplayToEditor conversion. But you would have to parse the string and evaluate it yourself.