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

[Solved] issue on load through ajax

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mahmoud
Top achievements
Rank 1
mahmoud asked on 04 Dec 2011, 07:45 AM
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 :
<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.

1 Answer, 1 is accepted

Sort by
0
mahmoud
Top achievements
Rank 1
answered on 15 Jan 2012, 10:41 AM
Any solution? Have a same problem on "combobox" too...
Tags
Grid
Asked by
mahmoud
Top achievements
Rank 1
Answers by
mahmoud
Top achievements
Rank 1
Share this question
or