Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
How to programmatically enter edit mode?
posted

How do you programmatically enter edit mode (for UltraComboEditor and UltraTextEditor)?

Parents
No Data
Reply
  • 37774
    Suggested Answer
    posted

    This is basically going to be the same for both the UltraTextEditor and the UltraComboEditor; the following code is for the UltraTextEditor, but simply replace the UltraTextEditor instance with the UltraComboEditor instance and it should work:

    private void button1_Click(object sender, EventArgs e)
    {           
        EmbeddableUIElementBase embeddableElement = this.ultraTextEditor1.UIElement.GetDescendant(typeof(EmbeddableUIElementBase)) as EmbeddableUIElementBase;
        if(embeddableElement != null)
            this.ultraTextEditor1.Editor.EnterEditMode(embeddableElement);
    }

    -Matt

Children