This is a migrated thread and some comments may be shown as answers.

Hyperlink column in pop up editing grid not calling javascript function

1 Answer 173 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Just
Top achievements
Rank 1
Just asked on 20 Aug 2012, 02:55 PM
I've a pop-up editing grid with custom pop up template. This works find for Edit/Add button clicks.

In grid I've a hyperlink column defined like below:
{field:"Count", title:"Settings", filterable: false, width: 100, 
    template:'<a href="\\#" onlick="editSettings();">#=Count#</a>'

But the JS method editSettings() is not invoked.

In the JS method I want to show a modal popup defined on the page. Any ideas what's wrong?
Thanks.

1 Answer, 1 is accepted

Sort by
0
Just
Top achievements
Rank 1
answered on 20 Aug 2012, 03:22 PM
Ok, got it. Nothing to do with Kendo grid. The javascript was in the wrong place.
It looks like below:
{field:"Count", title:"Settings", filterable: false, width: 100,
    template:'<a href="javascript:editSettings();" >#=Count#</a>'

Thanks.
Tags
Grid
Asked by
Just
Top achievements
Rank 1
Answers by
Just
Top achievements
Rank 1
Share this question
or