Hi,
Following error is happening:
Unhandled exception at line 108, column 1 in http://aspnet-scripts.telerikstatic.com/ajaxz/2012.3.1308/Ajax/Ajax.js
0x800a138f - JavaScript runtime error: Unable to get property 'id' of undefined or null reference...
In Ajax.js dynamic file
I have
This is happening only if radio button rbType has Selected="true".
If we click radiobutton first and fill the form and click search it is showing loading panel.
But If we don't click radiobutton and fill the form and click search it is giving error.
So I would assume some id is not set in the first load. It is giving error.
And when post back happened i.e after clicking radio button the id got loaded and it is working.
How to solve this?
Best Regards,
Damodar
Following error is happening:
Unhandled exception at line 108, column 1 in http://aspnet-scripts.telerikstatic.com/ajaxz/2012.3.1308/Ajax/Ajax.js
0x800a138f - JavaScript runtime error: Unable to get property 'id' of undefined or null reference...
In Ajax.js dynamic file
if(this.Type=="Telerik.Web.UI.RadAjaxManager"){if(e.get_postBackElement()!=this.get_element()){var h=this._updatePanels.split(","); if(Array.contains(h,e.get_postBackElement().id))
I have
<asp:Panel ID="divMain" runat="server" CssClass="maincenterDiv" ClientIDMode="Static">
<asp:RadioButtonList ID="rbType" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="rbTrip_SelectedIndexChanged" RepeatLayout="Flow"> <asp:ListItem Value="One"> One Way </asp:ListItem> <asp:ListItem Value="Two" Selected="True"> Two Way </asp:ListItem> </asp:RadioButtonList>
<telerik:RadComboBox ID="RadCBDestination" runat="server" ShowDropDownOnTextboxClick="false"> <Items> <telerik:RadComboBoxItem runat="server" Text="Australia (AUS)" Value="AUS" /> <telerik:RadComboBoxItem runat="server" Text="ASIA (ASIA)" Value="ASIA" /> </Items> </telerik:RadComboBox>
<telerik:RadDatePicker ID="radStartDate" runat="server" Culture="en-AU" HiddenInputTitleAttibute="Visually hidden input created for functionality purposes." WrapperTableSummary="Table holding date picker control for selection of dates." Skin="Metro"> <ClientEvents OnDateSelected="radStartDate_OnDateSelected" /> </telerik:RadDatePicker></asp:Panel><asp:Panel ID="pnlUpdate" CssClass="rowSection" runat="server"><telerik:RadDatePicker ID="radEndDate" runat="server"> </telerik:RadDatePicker> </asp:Panel><telerik:RadAjaxManager ID="RADAM" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="rbType"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="pnlUpdate" UpdatePanelRenderMode="Inline" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="btnSearch"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="divMain" LoadingPanelID="RADAJPanelBooking" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel runat="server" Skin="MetroTouch" ID="RADAJPanelBooking" ClientIDMode="Static" Style="top: 0; left: 0; position: absolute; height: 100%; width: 100%" IsSticky="True"> </telerik:RadAjaxLoadingPanel><asp:Button ID="btnSearch" CssClass="roundbutton" runat="server" AlternateText="Search" OnClick="btnSearch_Click" />
<
telerik:RadCodeBlock
ID
=
"radcode"
runat
=
"server"
>
<
script
type
=
"text/javascript"
src
=
"https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"
></
script
>
<
script
type
=
"text/javascript"
id
=
"telerikClientEvents"
>
function radStartDate_OnDateSelected(sender, args) {
var RADEndDate = $find("<%=radEndDate.ClientID%>");
var date = sender.get_selectedDate();
var retDate = RADEndDate.get_selectedDate();
RADEndDate.set_selectedDate(date);
RADEndDate.set_minDate(date);
}
}
function RequestStart(sender, eventArgs) {
var
eventTarget
=
eventArgs
.get_eventTarget();
if (eventTarget.indexOf("btnSearch") != -1) {
eventArgs.set_enableAjax(false);
}
}
</script>
</
telerik:RadCodeBlock
>
This is happening only if radio button rbType has Selected="true".
If we click radiobutton first and fill the form and click search it is showing loading panel.
But If we don't click radiobutton and fill the form and click search it is giving error.
So I would assume some id is not set in the first load. It is giving error.
And when post back happened i.e after clicking radio button the id got loaded and it is working.
How to solve this?
Best Regards,
Damodar