[CLOSED] Grid Checkbox Is Being Checked When User Clicks Hyperlink in a Column

  1. #1

    [CLOSED] Grid Checkbox Is Being Checked When User Clicks Hyperlink in a Column


    I have a gridview with a checkboxselectionmodel. One of my columns contains a hyperlink which spawns a popup window. When a user clicks the hyperlink, the new window pops up, but the gridview row becomes selected. I need to allow the user to click the hyperlink without causing the row to be selected.

    Any thoughts?

    Here is the code surrounding the column that contains the hyperlink:
    <ext:Column Hidden="true" Hideable="false" Header="Custom&nbsp;URL" DataIndex="customurl">
       <Renderer Fn="renderCustomURL" />
    Here is the javascript function referenced by the renderer:
    <script type="text/javascript">
            var renderCustomURL = function(value, p, record) {
            if (record.data.enablecustomurl == true) {
                    return String.format('<a href=javascript:openCustomURLWindow("{0}")>{1}</a>', record.data.customurl, record.data.customurlname)
            function openCustomURLWindow(url) {
            window.open(url, 'CustomURL', 'menubar=yes,status,resizable,scrollbars=yes,alwaysRaised,height=600,width=850');
    Last edited by Daniil; Oct 14, 2011 at 7:20 PM. Reason: [CLOSED]
  2. #2

    Please set up IgnoreTargets="a".
    <ext:CheckboxSelectionModel runat="server" IgnoreTargets="a" />
  3. #3
    That did the trick. Thanks.

Similar Threads

  1. Replies: 2
    Last Post: Jun 06, 2012, 2:17 PM
  2. [CLOSED] Grid column hyperlink throws a JS error when clicked
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 23, 2012, 2:52 PM
  3. Replies: 6
    Last Post: Feb 22, 2012, 6:43 PM
  4. Edit store record when user clicks on the row
    By Mr.Techno in forum 1.x Help
    Replies: 6
    Last Post: Aug 29, 2011, 2:40 PM
  5. Replies: 3
    Last Post: Apr 08, 2010, 6:28 PM

Posting Permissions