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

Error: Microsoft JScript runtime error: 'get_postBackElement().id' is null or not an object

4 Answers 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ALBERT
Top achievements
Rank 1
ALBERT asked on 16 Sep 2011, 04:58 PM
I put the code so please help me with this problem and being able to solve. thanks

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 <%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"

 Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>

 <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

 <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

    <script language="javascript" type="text/javascript">

     function onRequestStart(sender, args) {

         if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0) {

                 args.set_enableAjax(false);

                 }

       }

 </script>

</telerik:RadScriptBlock>

<table>

<tr>

 <td style="width: 100px; height: 21px">

 <asp:Label ID="LblTituloReporte" runat="server" SkinID="TituloPaginasAdm" Text="Clientes"

 Width="786px"></asp:Label><br />

 <br />

 </td>

 </tr>

 <tr>

 <td>

 <table>

 <tr>

 <td>

 <asp:Label ID="LbClientes" runat="server" CssClass="FormatLabels" SkinID="TitleLabel"

 Text="Cliente" Width="145px"></asp:Label>

 </td>

 <td style="width: 245px">

 <asp:DropDownList ID="DropDownList1Abecedario" runat="server" Font-Names="verdana"

 AutoPostBack="true" Font-Size="10pt" Width="150px" OnSelectedIndexChanged="DropDownList1Abecedario_OnSelectedIndexChanged">

 <asp:ListItem Value="0">----</asp:ListItem>

 <asp:ListItem Value="1">A-C</asp:ListItem>

 <asp:ListItem Value="2">D-F</asp:ListItem>

 <asp:ListItem Value="3">G-I</asp:ListItem>

 <asp:ListItem Value="4">J-L</asp:ListItem>

 <asp:ListItem Value="5">M-O</asp:ListItem>

 <asp:ListItem Value="6">P-R</asp:ListItem>

 <asp:ListItem Value="7">S-U</asp:ListItem>

 <asp:ListItem Value="8">V-Z</asp:ListItem>

 </asp:DropDownList>

 <asp:UpdatePanel ID="UpdatePanel1" runat="server">

 <ContentTemplate>

 <asp:DropDownList ID="DropDownList1Organizador" runat="server" Font-Names="verdana"

 Font-Size="10pt" Width="380px">

 </asp:DropDownList>

 </ContentTemplate>

 <Triggers>

 <asp:AsyncPostBackTrigger ControlID="DropDownList1Abecedario" EventName="SelectedIndexChanged" />

 </Triggers>

 </asp:UpdatePanel>

 </td>

 <td style="width: 99px;">

<telerik:RadButton ID="ImgConsultar" Text="Consultar" runat="server" Skin="Hay" OnClick="ImgConsultar_Click">

 </telerik:RadButton>

 </td>

 </tr>

 <tr>

 <td>

 &nbsp;

 </td>

 <td>

 &nbsp;

 <asp:CheckBox ID="chkVerTodos" Text="Ver todos los clientes" AutoPostBack="true"

 OnCheckedChanged="chkVerTodos_OnCheckedChanged" runat="server" />

 </td>

 <td>

 </td>

 </tr>

 </table>

 <br />

 </td>

 </tr>

 </table>

 <table>

 <tr>

 <td style="width: 121px">

 &nbsp;

 <asp:Label ID="LbTituloCliente" runat="server" CssClass="FormatLabels" SkinID="TituloPaginasAdm"

 Text="Cliente" Visible="false" Width="660px"></asp:Label>

 <asp:Label ID="LbIngresoDatos" runat="server" CssClass="FormatLabels" Enabled="false"

 SkinID="TituloPaginasAdm" Text="Ingreso de datos" Visible="false" Width="160px"></asp:Label>

 </td>

 <td>

 </td>

 <td>

 </td>

 </tr>

 <tr>

 <td>

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 <ClientEvents OnRequestStart="onRequestStart" />

 <AjaxSettings>

 <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">

 </telerik:AjaxSetting>

 <telerik:AjaxSetting AjaxControlID="RadGridHistorico">

 </telerik:AjaxSetting>

 </AjaxSettings>

 </telerik:RadAjaxManager>

 <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" HorizontalAlign="NotSet"

 Width="1195px">

 <telerik:RadGrid ID="RadGridHistorico" runat="server" Skin="Hay" AllowPaging="True"

 AutoGenerateColumns="False" GridLines="None" AllowFilteringByColumn="True" AllowSorting="True"

 ShowGroupPanel="True" ViewStateMode="Enabled" OnPreRender="RadGridHistorico_OnPreRender">

 <ExportSettings ExportOnlyData="true" FileName="Log clientes" HideStructureColumns="true"

 IgnorePaging="true" OpenInNewWindow="true" />

 <ClientSettings AllowDragToGroup="True">

 </ClientSettings>

 <MasterTableView CommandItemDisplay="Top">

 <CommandItemSettings ShowExportToExcelButton="true" />

 <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">

 </RowIndicatorColumn>

 <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">

 </ExpandCollapseColumn>

 <Columns>

 <telerik:GridBoundColumn AndCurrentFilterFunction="Contains" DataField="NitCliete"

 FilterControlAltText="Filter column column" HeaderText="NitCliete" UniqueName="column">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn AndCurrentFilterFunction="Contains" DataField="NombreCliente"

 FilterControlAltText="Filter column1 column" HeaderText="NombreCliente" UniqueName="column1">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn AndCurrentFilterFunction="Contains" DataField="ModificadoEliminado"

 FilterControlAltText="Filter column2 column" HeaderText="ModificadoEliminado"

 UniqueName="column2">

 </telerik:GridBoundColumn>

 </Columns>

 <EditFormSettings>

 <EditColumn FilterControlAltText="Filter EditCommandColumn column">

 </EditColumn>

 </EditFormSettings>

 </MasterTableView>

 <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">

 </ClientSettings>

 <GroupPanel Text="Arrastre la cabecera de la columna y sueltela sobre esta &#225;rea para agrupar los registros por esa columna.">

 </GroupPanel>

 <FilterMenu EnableImageSprites="False">

 </FilterMenu>

 <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Hay">

 </HeaderContextMenu>

 </telerik:RadGrid>

 </telerik:RadAjaxPanel>

 </td>

 </td>

 </tr>

  </table>

 <table>

  <tr>

 <td style="width: 100px">

 </td>

 </tr>

 </table>

 </asp:Content>

 

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 21 Sep 2011, 01:21 PM
Hi Albert,

Note that addin RadAjaxPanel into RadAjaxManager settings or using the both controls for updating the same part of the page is not supported scenario.
Please replace the RadAjaxPanel with regular asp Panel and add a setting in the RadAjaxManager in which the asp Panel updates itself.
Give this a try and let me know if it makes any difference.

Greetings,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
ALBERT
Top achievements
Rank 1
answered on 21 Sep 2011, 05:22 PM

hi,

not served, still generates the same errors, this is what you make.  Thanks for your help

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

     <ClientEvents OnRequestStart="onRequestStart" />

         <AjaxSettings>

             <telerik:AjaxSetting AjaxControlID="Panel1">

                 <UpdatedControls>

                     <telerik:AjaxUpdatedControl ControlID="Panel1" />

                 </UpdatedControls>

             </telerik:AjaxSetting>

             <telerik:AjaxSetting AjaxControlID="RadGridHistorico">

             </telerik:AjaxSetting>

        </AjaxSettings>

 </telerik:RadAjaxManager>

 

0
Maria Ilieva
Telerik team
answered on 21 Sep 2011, 09:41 PM
Hi Albert,

Could you please try to set  ClientIdMode = AutoID  to the mentioned page and verify if this makes any difference.

Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
ALBERT
Top achievements
Rank 1
answered on 21 Sep 2011, 10:53 PM
perfect, thank you very much for the answer.
Tags
General Discussions
Asked by
ALBERT
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
ALBERT
Top achievements
Rank 1
Share this question
or