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

Templated remote data bound grid, jquery selectors not finding generated elements

0 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 22 Mar 2012, 07:26 PM
Help! I am having some trouble with a data bound grid that uses a template whose generated html has <a> tags that need jquery click handlers. 

in essence
  $('mygrid').kendoGrid({....});
  $('.classWithInGridTemplateRowOutput').click(function(){...});
clicks installed when datasource is array data, and not installed when datasource is remote xml

In the following fiddle the array based data bound grid appears as I want _and_ the click handlers are never installed.
http://jsfiddle.net/RichardAD/U2pwe/

The fiddle was tweaked so the grid has remote XML data binding.  Tweaked page is on another site because I don't know how to use jsfiddle echo/xml for the scenario.
In this case the click handlers are NOT installed! ?
http://devenezia.com/kendo/clickProblem.html

I am speculating there is a time delay incurred loading the remote data so the DOM is not updated at the time the desired selectors are used.

Thanks,
Richard

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Share this question
or