1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Leipzig, Germany
    Posts
    75
    Vote Rating
    1
    A.Rothe is on a distinguished road

      0  

    Default DnD feedback

    DnD feedback


    Hi,

    how I can change the feedback text "x items selected" to another language/content?

    Thanks
    Andre

  2. #2
    Sencha User
    Join Date
    Sep 2011
    Location
    Leipzig, Germany
    Posts
    75
    Vote Rating
    1
    A.Rothe is on a distinguished road

      0  

    Default [Solved] DnD feedback

    [Solved] DnD feedback


    Code:
    DragSource.setStatusText("{0} elements to move");

    Andre

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Location
    Leipzig, Germany
    Posts
    75
    Vote Rating
    1
    A.Rothe is on a distinguished road

      0  

    Default [Solved] DnD feedback

    [Solved] DnD feedback


    It is also possible to override TreeGridDragSource.onDragStart(DNDEvent e) to depend the feedback on the number of selected items:

    Code:
    protected void onDragStart(DNDEvent event) {
            List<ModelData> selection = treeGrid.getSelectionModel().getSelectedItems();
            setStatusText("{0} visit" + (selection.size() > 1 ? "s" : "") + " marked");
            super.onDragStart(event);
        }
    ~Andre

Tags for this Thread