Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Disable arrow navigations inside editable listgird

    Hi

    I need to disable arrows navigation in an editable listgrid. setArrowKeyAction has no influence if user double-clicked on a row and entered an editable mode. Am I doing something wrong? Is there another workaround?

    Code:
            grid = new ListGrid();
            grid.setAutoFitData(Autofit.VERTICAL);
            grid.setAutoHeight();
            grid.setCanEdit(false);
            grid.setArrowKeyAction("none");
            grid.setEditEvent(ListGridEditEvent.DOUBLECLICK);
    
            ListGridField nameField = new ListGridField("name", "Name");
            nameField.setRequired(true);
    
            ListGridField continentField = new ListGridField("description", "Description");
    
            grid.setFields(nameField,continentField);
    
            grid.setAutoFetchData(true);
    Last edited by la123; 10 Jan 2011, 04:38.

    #2
    As a workaround, I added a KeyPressHandler to the formItem that is returned for editorType of the editable column. The handler blocks Arrow_Up and Arrow_Down

    Comment

    Working...
    X