knockout.js - Kendo UI Grid View Doesn't re-bind data- attributes -


i using kendo-ui's grid along knockout-kendo scripts , i've come across problem think i'm missing silly for.

i have few links posted in 1 of grid columns, , in i'm using knockout set of attributes including data- attribute so:

<a class="copybooking" data-bind="attr: { 'data-bookingid': bookingid }">copy</a>

i have small piece of javascript set run when link clicked:

$(".copybooking").click(function(){ var bookingid = $(this).data("bookingid"); //code access function via ajax' }); 

all seems fine on initial load code within javascript runs , alert comes expected results. however, when change pages in kendo grid (i have data paged show 10 results @ time) stops javascript functioning.

according html generated in firebug or it's equivalent in chrome, data- attribute set correctly in html, i'm no sure if .click isn't firing correctly or if data- attribute isn't being picked correctly.

does have suggestions?

as element doesn't exist after page through grid. need have function run on databound event after grid re-rendered applied 'new' dom element.

the other option extend knockout model of rows function , click-bind that.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -