Remove focus rectangle in tree and grid

  1. #1

    Remove focus rectangle in tree and grid

    Is it possible to remove the blue rectangle around focused/clicked/selected row in a treepanel or gridpanel?
  2. #2
    Try return false from the focus listener. This way it won't focus. So no box
    /Z
  3. #3
    I have now tried to return false on all focus-events on TreePanel and it's TreeView, but with no luck.

                        x.TreePanel()
                            .Listeners(l=> {
                                l.Focus.Handler = "return false;";
                                l.FocusEnter.Handler = "return false;";                            
                            })
                            .View(x.TreeView()
                                .Listeners(l =>
                                {
                                    l.CellFocus.Handler = "return false;";
                                    l.RowFocus.Handler = "return false;";
                                    l.Focus.Handler = "return false;";
                                    l.FocusChange.Handler = "return false;";
                                    l.FocusEnter.Handler = "return false;";                                
                                })
                            )
  4. #4
    Try putting a fake div/ext label on page.

    Then in documentReady event of resource handler, fire it's focus event then hide it.
    /Z

Similar Threads

  1. [CLOSED] Overriding x-tab-focus to remove dotted border when selected
    By rmelancon in forum 4.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 27, 2017, 5:38 PM
  2. Replies: 1
    Last Post: Aug 17, 2015, 10:36 AM
  3. [CLOSED] How to deselect the focus for the tree node in page load?
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 15, 2009, 10:02 AM
  4. [CLOSED] How to set the focus for the tree node in page load?
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 15, 2009, 8:43 AM
  5. [CLOSED] should remove for node in tree panel
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 24, 2009, 5:19 PM

Posting Permissions