EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: elmorekevin on February 06, 2017, 02:58:29 PM



Title: Datagrid Editor Remote Filter/Sort add link to header
Post by: elmorekevin 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


Title: Re: Datagrid Editor Remote Filter/Sort add link to header
Post by: jarry 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>


Title: Re: Datagrid Editor Remote Filter/Sort add link to header
Post by: elmorekevin on February 07, 2017, 02:54:30 PM
Success, thanks!