Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
jQuery not firing on link in igGrid
posted

I created an igGrid of user information. I'm using the rowTemplate so I can add a link in one of my cell columns. This link is called by a jQuery click event that is not firing. The link I'm creating is using two of the other column variables. If i add the link outside of the grid the jQuery fires properly. I'm wondering if I am not formatting the link correctly or not in the template. adding a basic javascript onClick event directly to the link works, but trying with jQuery doesn't. Any help would be awesome.

Here is my rwpTemplate: 

rowTemplate: "<tr><td>${groupNumber}<div id='target'>Click here</div></td><td>${idNumber}</td><td>${personCode}</td><td>${birthDate}</td><td>${lastName}</td><td>${firstName}</td><td>${effDate}</td><td>${termDate}</td><td><a href='#' class='member-window-link' id='Member' member-url='/Member/MemberInfo/MemberInfoList/${insuredKey}/${groupKey}'><img src=/images/view.gif border=0 alt=View Member title=View Member style=cursor:hand;></img></a></td></tr>",

Thanks,

  • 5105
    Suggested Answer
    Offline posted

    Hi there Terry,

    Could you inspect the source and see whether the link is populated correctly. If it is not the reason might be that the data from the other columns could not be accessed when populating the template. The solution would be to set the localSchemaTransform option of the igGrid to false.

    Let me know if this helps you!