I have a fairly complex ajax page with an Accordian(AJAX Toolkit), a RadGrid in the upper level of the accordian and Grid Item Details in the lower part of the accordian. When the user selects an item in the grid, the accordian changes and shows the details in the bottom part of the accordian.
I have a Search "Div" on the page. When the user clicks "Search", it searchs for results, then collapses/expands the Accordian to show the results in the grid(upper accordian level).
I tried adding the RadAjax Manager and Loading Panel to the page. When the User clicks the Search Button, the RadLoading Panel shows up over the Details form and that works. But then I get a Javascript error message:
Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object
document.getElementsByTagName("head")[0].appendChild(b)
If I remove the RadAjax Loading panel and Manager, the error goes away. Here is my HTML for the RadAjax Manager and Loading Panel:
Here is my code behind for showing the search results.
Any help would be greatly appreciated.
thanks
I have a Search "Div" on the page. When the user clicks "Search", it searchs for results, then collapses/expands the Accordian to show the results in the grid(upper accordian level).
I tried adding the RadAjax Manager and Loading Panel to the page. When the User clicks the Search Button, the RadLoading Panel shows up over the Details form and that works. But then I get a Javascript error message:
Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object
document.getElementsByTagName("head")[0].appendChild(b)
If I remove the RadAjax Loading panel and Manager, the error goes away. Here is my HTML for the RadAjax Manager and Loading Panel:
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
><
br
> <
AjaxSettings
><
br
> <
telerik:AjaxSetting
AjaxControlID
=
"btnSearch1"
><
br
> <
UpdatedControls
><
br
> <
telerik:AjaxUpdatedControl
ControlID
=
"upScriptDetail"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/><
br
> </
UpdatedControls
><
br
> </
telerik:AjaxSetting
><
br
> <
telerik:AjaxSetting
AjaxControlID
=
"btnSearch"
><
br
> <
UpdatedControls
><
br
> <
telerik:AjaxUpdatedControl
ControlID
=
"upScriptDetail"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/><
br
> </
UpdatedControls
><
br
> </
telerik:AjaxSetting
><
br
> </
AjaxSettings
><
br
></
telerik:RadAjaxManager
>
Here is my code behind for showing the search results.
if
(result.Count > 0)<br> {<br>
//expand the search results...<br> this.CollapsiblePanelExtender1.Collapsed = false;<br> this.CollapsiblePanelExtender1.ClientState = "false";<br> //collapse the details...<br> this.CollapsiblePanelExtender2.Collapsed = true;<br> this.CollapsiblePanelExtender2.ClientState = "true";<br><br> bindSearchResults(result);<br> radgridSearchResults.DataBind();<br> }<br><br> private void bindSearchResults(List<CreativeSearchDataService.ScriptSearchResult> searchResults)<br> {<br> radgridSearchResults.SelectedIndexes.Clear(); //reset just in case this is a new search...<br> radgridSearchResults.DataSource = searchResults;<br> radgridSearchResults.MasterTableView.DataKeyNames = new string[] { "id" };<br> }
Any help would be greatly appreciated.
thanks