Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Grid Jumps to Top on Editor Cancel

Received: by 10.101.131.19 with SMTP id i19mr2315363ann.4.1311716222585;
        Tue, 26 Jul 2011 14:37:02 -0700 (PDT)
X-BeenThere: slickgrid@googlegroups.com
Received: by 10.101.139.29 with SMTP id r29ls3156950ann.2.gmail; Tue, 26 Jul
 2011 14:37:01 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.185.10 with SMTP id m10mr759517anp.7.1311716221879; Tue,
 26 Jul 2011 14:37:01 -0700 (PDT)
Received: by i19g2000yqj.googlegroups.com with HTTP; Tue, 26 Jul 2011 14:37:01
 -0700 (PDT)
Date: Tue, 26 Jul 2011 14:37:01 -0700 (PDT)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18)
 Gecko/20110614 Firefox/3.6.18,gzip(gfe)
Message-ID: <5e955c24-7b07-4a23-b1b9-91d8c6118577@i19g2000yqj.googlegroups.com>
Subject: Grid Jumps to Top on Editor Cancel
From: Quint <miste...@gmail.com>
To: SlickGrid <slickgrid@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

Hello Everyone,

I created a custom editor that is a jquery dialog with a few fields to
collect information. When the user is done editing, whether they click
Cancel or Save, the grid jumps back to the top. I stepped through the
code and traced it to a line that looks like it puts the focus back on
the grid. It is line 1945 of slick.grid.js - it just calls setFocus()
which in turn calls $canvas[0].focus(). As soon as the script hits
this line, the grid jumps back to the top.

I have tried this in both Firefox and Chrome with the same result.

Thanks for your help,