This question is locked. New answers and comments are not allowed.
Dear Teleriks,
I have a page with a grid which works correctly. But in this page I have a ajax link that causes to load another grid completely by jQuery ajax. The problem is with the second gird's scripts :
if these line are at the bottom of the page (bellow the grid's razor scripts), I'll get the following error by browser :
Uncaught ReferenceError: attributegroup_selected is not defined
But if the mentioned script line put at the top of the page (before the grid's razor scripts) , every think will be Ok!
P.S. : If the page contains no grid before ajax call , everything will be Ok regardless of script position.
I have a page with a grid which works correctly. But in this page I have a ajax link that causes to load another grid completely by jQuery ajax. The problem is with the second gird's scripts :
<script type="text/javascript" language="javascript"> function attributegroup_selected(e) { //DO SOMTHING... } </script>
if these line are at the bottom of the page (bellow the grid's razor scripts), I'll get the following error by browser :
Uncaught ReferenceError: attributegroup_selected is not defined
But if the mentioned script line put at the top of the page (before the grid's razor scripts) , every think will be Ok!
P.S. : If the page contains no grid before ajax call , everything will be Ok regardless of script position.