Change Active Tab doesn't save text

  •  08-25-2010, 3:33 PM

    Change Active Tab doesn't save text

    I am using the CuteEditor and I bind my control to some data and set the view to the preview tab. When I change the tab back to normal and add text to the control and save the data the text value isn't what is in the control.
     
    Binding:
    csResultsEditor.Text = dataRow.results.Trim();
    csResultsEditor.ActiveTab = TabType.View;
     
    User then clicks on the Normal tab and adds some text anywhere in the current text. They then click save and the csResults.Text isn't what the user entered.
     
    dataRow.results = csResultsEditor.Text; //the text value isn't what is in the control
     
    If I don't set the ActiveTab in the binding and leave the control to be the normal tab and the user changes the text the text saves without any issue.
     
    Why can't I set the activetab to preview when binding my data?
     
     
View Complete Thread