EasyUI Forum
April 19, 2024, 11:58:49 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid Editor Remote Filter/Sort add link to header  (Read 4408 times)
elmorekevin
Newbie
*
Posts: 17


View Profile
« on: February 06, 2017, 02:58:29 PM »

Hi, I was able to add a link into the header as in the attached image. Problem comes about when I am trying to add a new row of information. If I click that link, then the row I was adding gets canceled! I was hoping to have a link to some reference information needed while filling out the row, but doesn't help when the work you've entered gets lost.

Is there something I can change to avoid this behavior? Here's the way the header link is written:
Code:
{field:'county',title:'County <a target="_blank" href="https://docs.google.com/spreadsheets/d/sdfg/edit#gid=asdf">Abbrs.</a>',width:50,sortable:true,editor:{type:"text"}},

Thanks,
Kevin
« Last Edit: February 06, 2017, 03:05:27 PM by elmorekevin » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: February 06, 2017, 05:41:16 PM »

Please try to use this code instead.
Code:
<a target="_blank" href="https://docs.google.com/spreadsheets/d/sdfg/edit#gid=asdf" onclick="event.stopPropagation()">Abbrs.</a>
Logged
elmorekevin
Newbie
*
Posts: 17


View Profile
« Reply #2 on: February 07, 2017, 02:54:30 PM »

Success, thanks!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!