Hi,
My scenario is like below:
1: There is an asp.net UpdatePnale that I defined a RadGrid inside it.
2: I have defined a Pager Template for RadGrid. Template is a user control that contains some javascript and some server controls to navigate RadGrid.(Javasripts used for client events)
3: RadGrid shows some result search and it will appear when user clicks search button and updates UpdatePanel. So there is no any RadGrid in page at first view .
4: My javascript codes of pager uc is rounded by RadScriptBock tag.
My problem is:
1: When I click search button, server fill RadGrid and it appears correctly. But all client evenst that i have attached to pager uc server controls are undefinded and Javascript error appears in the page. This causes that some controls like RadCombobox renders incorectly.
2: When I click next page button of pager, after server response, all things become ok. So my problem is at first view of appearing RadGrid.
My Idea:
I think when request handles by asp.net update panel it ignores my javascript block . But second time that request handles by RadAjaxManager it registers my javascipts correctly. Am i right? Is there any solution for this?
Any Idea or solution is appreciated.
My scenario is like below:
1: There is an asp.net UpdatePnale that I defined a RadGrid inside it.
2: I have defined a Pager Template for RadGrid. Template is a user control that contains some javascript and some server controls to navigate RadGrid.(Javasripts used for client events)
3: RadGrid shows some result search and it will appear when user clicks search button and updates UpdatePanel. So there is no any RadGrid in page at first view .
4: My javascript codes of pager uc is rounded by RadScriptBock tag.
My problem is:
1: When I click search button, server fill RadGrid and it appears correctly. But all client evenst that i have attached to pager uc server controls are undefinded and Javascript error appears in the page. This causes that some controls like RadCombobox renders incorectly.
2: When I click next page button of pager, after server response, all things become ok. So my problem is at first view of appearing RadGrid.
My Idea:
I think when request handles by asp.net update panel it ignores my javascript block . But second time that request handles by RadAjaxManager it registers my javascipts correctly. Am i right? Is there any solution for this?
Any Idea or solution is appreciated.