[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

    Hello,

    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" />
    </ext:Column>
    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');
            }
    </script>
    Last edited by Daniil; Oct 14, 2011 at 6:20 PM. Reason: [CLOSED]
  2. #2
    Hi,

    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, 1: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, 1:52 PM
  3. Replies: 6
    Last Post: Feb 22, 2012, 5: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, 1:40 PM
  5. Replies: 3
    Last Post: Apr 08, 2010, 5:28 PM

Posting Permissions