Welcome to the Xceed Community Sign in | Join | Help
Community Search  

custom CellEditor trouble

Sort Posts: Previous Next
  •  05-13-2008, 5:49 PM Post no. 12227

    custom CellEditor trouble

    I'm trying to implement a custom cell editor but I don't know how to preserve some of features seen in the default editors. In my implementation I am inheriting from CellEditor and implementing its EditTemplate

    <xcdg:CellEditor.EditTemplate>

    <DataTemplate>

    <TextBox PreviewKeyDown="TextBox_PreviewKeyDown" Text="{xcdg:CellEditorBinding}" HorizontalAlignment="Right" BorderThickness="0" BorderBrush="Transparent" />

    </DataTemplate>

    </xcdg:CellEditor.EditTemplate>

    Problem 1: Navigation 

    My controls are based on TextBox and I want it to navigate to the adjact cells when hitting the arrow keys.

    Problem 2: Highlighting

    In the default editors, the editor selects all the text in the textbox when focus is given to the cell. How do I achieve the same affect? 

     

     

     

  •  05-14-2008, 8:04 AM Post no. 12238 in reply to 12227

    Re: custom CellEditor trouble

    You can use the AutoSelectTextBox included with the grid if you want to preserve the same features as the default editors.
    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  05-15-2008, 6:46 PM Post no. 12315 in reply to 12238

    Re: custom CellEditor trouble

    Thank you.

    I ended up getting it to work using that and some of the other built in controls

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.