Sys.ArgumentException: Value must be a DOM element. Parameter name: element

9 posts, 0 answers
  1. Ali
    Ali avatar
    120 posts
    Member since:
    Jan 2007

    Posted 16 Apr 2008 Link to this post

    Hi,

    I am getting the following javascript error when I move the mouse pointer over disabled RadNumericTextBox ( RadInput-Version: 2.1.2.0)

    Sys.ArgumentException: Value must be a DOM element.
    Parameter name: element

    Can anyone please update me with proper solution

    Thanks

    Ali

    Note: Error occurs when control is in disable mode

    Ref: http://forums.asp.net/p/1151199/1918939.aspx
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 16 Apr 2008 Link to this post

    Hello Ali,

    Can you check if this is working properly with the latest 2.1.4 version? We had similar problem with disabled RadInput, but have addressed it in the latest version.

    Best wishes,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ali
    Ali avatar
    120 posts
    Member since:
    Jan 2007

    Posted 16 Apr 2008 Link to this post

    I've updated the library version to 2008.1.415.20 (Telerik.Web.UI.dll- Prometheus) but problem still persists.

    Still getting the same error (in Prometheus)

    Sys.ArgumentException: Value must be a DOM element.
    Parameter name: element



  5. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 17 Apr 2008 Link to this post

    Hello Ali,

    We believe the error should be resolved with the official release. Please, make sure the .dll is upgraded successfully (there may be some .refresh files referring the old assemblies, remove those if any).

    Otherwise, we will need a sample web site replicating the error. You can send a runnable sample through a regular support ticket. Your cooperation is much appreciated!

    All the best,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. David
    David avatar
    30 posts
    Member since:
    Feb 2007

    Posted 27 Jun 2008 Link to this post

    Hello,

    I'm having the same issue with the only difference being that I'm seeing the problem when mousing over regular text boxes....not RadNumericTextBoxes.  Also it seems to occur only when hitting the actual text in the text box.  I am running
    RadControls for ASP.NET AJAX 2008.1 619 and this issue is very urgent.

    Thank you,

  7. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 30 Jun 2008 Link to this post

    Hello Ken,

    I'm afraid I can't see the version labeled 2008.1.619 downloaded from your account. Would you double check that please?

    If that doesn't help, can you replicate it in a simple runnable web page? You can either post a sample code here or submit a regular support ticket from your Client.NET account sending us the page. We will gladly look into the code and get back to you with our findings.

    Regards,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. David
    David avatar
    30 posts
    Member since:
    Feb 2007

    Posted 30 Jun 2008 Link to this post

    Hello,

    We do have the correct version.  I'm trying to put together a simple example that would demonstrate this...until then here is same code from our implementation of the grid.  We force the grid into edit mode when it loads see the code at the far bottom for how we accomplish this.  Mousing over any text in a text box will cause this error to occur...even outside of the grid.
    1 <div style="border:1px solid #ccc; width: 953px;"
    2 <telerik:RadGrid ID="rgProducts" HeaderStyle-Wrap="true" BorderWidth="0px" EnableEmbeddedSkins="false" 
    3     GridLines="None" HeaderStyle-BackColor="#D7ECC6" HeaderStyle-Font-Bold="true" 
    4     HeaderStyle-Font-Underline="false" HeaderStyle-ForeColor="black" AllowAutomaticUpdates="true" CommandItemStyle-BorderWidth="0" CommandItemStyle-BorderColor="#EAEAEA" 
    5     HeaderStyle-Font-Names="verdana"  HeaderStyle-Font-Size="Small" OnLoad="RadGrid1_Load" OnPreRender="RadGrid1_PreRender" OnDataBound="rgProducts_ONDATABIND" 
    6     AlternatingItemStyle-BackColor="#D7ECC6" AlternatingItemStyle-Font-Size="Small"  
    7     ItemStyle-Font-Size="Small" PageSize="48" AllowPaging="True" AllowSorting="True" SortingSettings-SortToolTip="Sort this table"  
    8     Skin="Hay" runat="server" CssClass="modeTable" MasterTableView-EditMode="inplace" OnSortCommand="rgProducts_OnSortCommand" ImagesPath="images/" OnNeedDataSource="rgProducts_NeedDataSource" > 
    9     <ValidationSettings EnableValidation="true" />     
    10     <MasterTableView AutoGenerateColumns="False" EditMode="InPlace" AllowMultiColumnSorting="true" CommandItemDisplay="Top">    
    11      
    12    <CommandItemTemplate>     
    13         <div style="padding: 3px; background: #AAD786;">                     
    14          
    15         &nbsp;&nbsp;&nbsp;View Mode: 
    16             <asp:LinkButton ID="btnBasicModeView"  ForeColor="white" OnClick="btn_stns_settings_basic_ONCLICK" OnClientClick="javascript: toggleBasicDivWidth()" CausesValidation="false" CssClass="modeViewBtn" runat="server" CommandName="" ToolTip="Select for the basic view mode">Basic</asp:LinkButton>      
    17             <asp:Label ID="lblBasicModeView" Text="Basic" runat="server"  Font-Bold="true"></asp:Label>  
    18             &nbsp;|&nbsp; 
    19             <asp:LinkButton ID="btnAdvancedModeView"  ForeColor="white" OnClick="btn_stns_settings_adv_ONCLICK" OnClientClick="javascript: toggleAdvancedDivWidth()"  CausesValidation="false" runat="server" CssClass="modeViewBtn" CommandName="" ToolTip="Select for the advanced view mode">Advanced</asp:LinkButton> 
    20             <asp:Label ID="lblAdvancedModeView" Text="Advanced" runat="server"  Font-Bold="true"></asp:Label> 
    21         </div>         
    22         </CommandItemTemplate> 
    23         <NoRecordsTemplate> 
    24             <div style="text-align: center; height: 20px"
    25                 <asp:Label ForeColor="RoyalBlue" runat="server" ID="lblAutoModeNoStations">There are no stations in auto mode.</asp:Label> 
    26                 <br /> 
    27             </div> 
    28         </NoRecordsTemplate> 
    29             <Columns>    
    30                  <%--<telerik:GridEditCommandColumn > 
    31                                 
    32                   </telerik:GridEditCommandColumn>    --%> 
    33                <telerik:GridTemplateColumn DataField="StationNo" UniqueName="StationNo" SortExpression="StationNo"
    34                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="140px" Wrap="True" VerticalAlign="top" /> 
    35                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="140px" Wrap="true" /> 
    36                     <HeaderTemplate> 
    37                         <asp:Label ID="lblHeaderSelect" runat="server" Text="Select"></asp:Label><br />           
    38                         <%--<asp:CheckBox ID="chkHeaderSelect" runat="server" Text="All" TextAlign="Left" AutoPostBack="true" OnCheckedChanged="chkHeaderSelect_CHANGE" Checked="false" />--%> 
    39                         <asp:CheckBox ID="chkHeaderSelect" runat="server" Text="All" TextAlign="Left" Checked="false" /> 
    40                     </HeaderTemplate> 
    41                     <EditItemTemplate>      
    42                         <%--<asp:CheckBox ID="chkHideEdit" runat="server" AutoPostBack="true" OnCheckedChanged="chkHideEdit_CHANGE" Enabled="true" /></div>     
    43                         <asp:ImageButton ID="imgHideEdit" runat="server" AlternateText="Close and cancel edits" ToolTip="Close and cancel edits" ImageUrl="~/Images/icons/iconCancel.gif" OnClick="chkHideEdit_CHANGE" />--%>                       
    44                         <asp:CheckBox ID="chkHideEdit" runat="server" Enabled="true" ToolTip="Select Station"  /> 
    45                          
    46                     </EditItemTemplate> 
    47                     <ItemTemplate>                    
    48                         <%--<asp:CheckBox ID="chkHideEdit" runat="server" AutoPostBack="true" OnCheckedChanged="chkHideEdit_CHANGE" Enabled="true" ToolTip="Edit Station"  />  --%> 
    49                         <asp:CheckBox ID="chkHideEdit" runat="server" Enabled="true" ToolTip="Select Station"  />   
    50                     </ItemTemplate> 
    51                 </telerik:GridTemplateColumn>   
    52                 <telerik:GridTemplateColumn DataField="StationNo" HeaderText="Station<br>#" UniqueName="StationNo" SortExpression="StationNo"
    53                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="40px" Wrap="True" VerticalAlign="top" /> 
    54                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="40px" Wrap="true" /> 
    55                     <EditItemTemplate>                                         
    56                         <asp:Label ID="lblProductID" Text='<%# Eval("StationNo") %>' runat="server" Width="40px" ToolTip="Station #"></asp:Label>      
    57                     </EditItemTemplate> 
    58                     <ItemTemplate> 
    59                         <asp:Label ID="lblProductID" runat="server" Text='<%# Eval("StationNo") %>' Width="40px"></asp:Label>         
    60                     </ItemTemplate> 
    61                 </telerik:GridTemplateColumn>                
    62                  <telerik:GridTemplateColumn DataField="StationName" HeaderText="Station<br>Name" UniqueName="StationName" SortExpression="StationName"
    63                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="100px" Wrap="True" VerticalAlign="top"  /> 
    64                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="100px" Wrap="true" /> 
    65                     <EditItemTemplate>                     
    66                         <asp:TextBox ID="txtStationName" runat="server" Text='<%# Eval("StationName") %>' MaxLength="24" Width="80px" ToolTip="Station Name"></asp:TextBox> 
    67                          <asp:RegularExpressionValidator ID="valStationName" Display="Dynamic" ControlToValidate="txtStationName" runat="server" ErrorMessage="<img src='../images/icons/fpoAlertSmall.gif' alt='Error' title='Error: Station Name must be a maximum of 24 characters. The first character must be a capital letter. Additional characters allowed: 0-9, /, -, ., &, and spaces.' />"  
    68                 ValidationExpression="^[A-Z0-9]$|^[A-Z0-9]+[A-Z0-9a-z\s/.&-]{1,24}$"
    69                 </asp:RegularExpressionValidator> 
    70                     </EditItemTemplate> 
    71                     <ItemTemplate>                         
    72                         <asp:Label ID="lblStationName" runat="server" Text='<%# Eval("StationName") %>' Width="80px"></asp:Label>         
    73                     </ItemTemplate> 
    74                </telerik:GridTemplateColumn>                 
    75                  <telerik:GridTemplateColumn DataField="Program" HeaderText="Program" UniqueName="Program" SortExpression="Program"
    76                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="70px" Wrap="True" VerticalAlign="top"  /> 
    77                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="70px" Wrap="true" /> 
    78                         <EditItemTemplate>   
    79                             <asp:DropDownList ID="ddlProgramMode" OnInit="initProgramLetter" Width="50px" ToolTip="Program" runat="server" onChange="javascript: autoMode_StationProgram(this.id);">                             
    80                             </asp:DropDownList>    
    81                             <asp:HiddenField ID="txtProgramMode" runat="server" Value='<%# Eval("Program") %>'  />                                
    82                         </EditItemTemplate> 
    83                     <ItemTemplate>                         
    84                         <asp:Label ID="lblProgramMode" runat="server" Text='<%# Eval("Program") %>' ToolTip='<%# Eval("ProgramName") %>' Width="50px"></asp:Label>         
    85                     </ItemTemplate> 
    86                 </telerik:GridTemplateColumn>                 
    87                <telerik:GridTemplateColumn DataField="StationMode" HeaderText="Station<br>Mode" UniqueName="StationMode" SortExpression="StationMode"
    88                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="75px" Wrap="True" VerticalAlign="top"  /> 
    89                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="75px" Wrap="true" /> 
    90                     <EditItemTemplate>  
    91                         <asp:DropDownList ID="ddlStationMode"  runat="server" OnInit="initStationMode" Width="50px" ToolTip="Station Mode" onChange="javascript: autoMode_StationMode(this.id)"
    92                         </asp:DropDownList>     
    93                          <asp:HiddenField ID="txtStationMode" runat="server" Value='<%# Eval("StationMode") %>'  />                          
    94                     </EditItemTemplate> 
    95                     <ItemTemplate>                         
    96                         <asp:Label ID="lblStationMode" runat="server" Text='<%# Eval("StationMode") %>' Width="50px"></asp:Label>         
    97                     </ItemTemplate> 
    98                 </telerik:GridTemplateColumn>                                
    99                 <telerik:GridTemplateColumn DataField="UseWaterWindow" HeaderText="Use Water Window" UniqueName="UseWaterWindow" SortExpression="UseWaterWindow"
    100                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
    101                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
    102                     <EditItemTemplate>  
    103                         <asp:DropDownList ID="ddlUseWaterWindow" OnInit="initUseWaterWindow" runat="server" Width="45px" ToolTip="Use Water Window">  
    104                           </asp:DropDownList> 
    105                           <asp:HiddenField ID="txtWaterWindow" runat="server" Value='<%# Eval("UseWaterWindow") %>'  />  
    106                           <asp:HiddenField ID="txtWaterDayMode" runat="server" Value='<%# Eval("waterDayMode") %>' /> 
    107                     </EditItemTemplate> 
    108                     <ItemTemplate>                         
    109                         <asp:Label ID="lblUseWaterWindow" runat="server" Text='<%# Eval("UseWaterWindow") %>' Width="80px"></asp:Label>         
    110                     </ItemTemplate> 
    111                 </telerik:GridTemplateColumn>   
    112                  
    113                  <telerik:GridTemplateColumn DataField="UsableRainfall" HeaderText="Usable<br>Rainfall" UniqueName="UsableRainfall" SortExpression="UsableRainfall"
    114                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
    115                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
    116                     <EditItemTemplate>                                         
    117                         <asp:DropDownList ID="ddlUsableRainfall" OnInit="initUsableRainfall" runat="server" Width="55px" ToolTip="Usable Rainfall"
    118                          </asp:DropDownList> 
    119                          <asp:HiddenField ID="txtUsableRainfall" runat="server" Value='<%# Eval("UsableRainfall") %>'  />    
    120                     </EditItemTemplate> 
    121                     <ItemTemplate>                         
    122                         <asp:Label ID="lblUsableRainfall" runat="server" Text='<%# Eval("UsableRainfall") %>' Width="80px"></asp:Label>         
    123                     </ItemTemplate> 
    124                 </telerik:GridTemplateColumn>     
    125                              
    126                 <telerik:GridTemplateColumn DataField="SprinklerType" HeaderText="Sprinkler<br>Type" UniqueName="SprinklerType" SortExpression="SprinklerType"
    127                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
    128                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
    129                     <EditItemTemplate>    
    130                     <asp:DropDownList ID="ddlSprinklerType" runat="server" OnInit="initSprinklerType" Width="100px" ToolTip="Sprinkler Type" onchange="javascript:autoMode_SprinklerType(this.id)">                             
    131                         </asp:DropDownList>  
    132                          <asp:HiddenField ID="txtSprinklerType" runat="server" Value='<%# Eval("SprinklerType") %>'  /> 
    133                          <asp:HiddenField ID="txtSprinklerTypeID" runat="server" Value="" />     
    134                          <asp:HiddenField ID="hdnPrecipRateBasic" runat="server" Value='<%# Eval("PrecipRate") %>'  />  
    135                          <asp:HiddenField ID="hdnEfficiency" runat="server" Value='<%# Eval("Efficiency") %>' /> 
    136                     </EditItemTemplate> 
    137                     <ItemTemplate>                         
    138                         <asp:Label ID="lblSprinklerType" runat="server" Text='<%# Eval("SprinklerType") %>' Width="80px"></asp:Label>         
    139                     </ItemTemplate> 
    140                 </telerik:GridTemplateColumn>    
    141                  
    142                      <telerik:GridTemplateColumn DataField="PrecipRate" HeaderText="Precip<br>Rate" UniqueName="PrecipRate" SortExpression="PrecipRate"
    143                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="60px" Wrap="True" VerticalAlign="top"  /> 
    144                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="60px" Wrap="true" /> 
    145                     <EditItemTemplate>                     
    146                         <asp:TextBox ID="txtPrecipRate" runat="server" OnTextChanged="txtProgram_ONCHANGE" Text='<%# Eval("PrecipRate") %>' Width="40px" ToolTip="Precip Rate"></asp:TextBox>  
    147                         <asp:RangeValidator ID="valPrecipRate" Display="Dynamic" ControlToValidate="txtPrecipRate" MinimumValue="0.10" MaximumValue="9.99" Type="Double" ErrorMessage="<img src='../images/icons/fpoAlertSmall.gif' alt='Error' title='Error: Value must be from 0.10 - 9.99' />" runat="server"></asp:RangeValidator>  
    148                          <asp:HiddenField ID="hdnPrecipRate" runat="server" Value='<%# Eval("PrecipRate") %>'  />                     
    149                     </EditItemTemplate> 
    150                     <ItemTemplate> 
    151                         <asp:Label ID="lblPrecipRate" runat="server" Text='<%# Eval("PrecipRate") %>' Width="40px"></asp:Label>         
    152                     </ItemTemplate> 
    153                 </telerik:GridTemplateColumn>                 
    154                      <telerik:GridTemplateColumn DataField="Efficiency" HeaderText="Sprinkler<br>Efficiency" UniqueName="Efficiency" SortExpression="Efficiency"
    155                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="63px" Wrap="True" VerticalAlign="top"  /> 
    156                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="63px" Wrap="true" /> 
    157                     <EditItemTemplate>       
    158                         <asp:DropDownList ID="ddlEfficiency" runat="server" OnInit="initEfficiency" Width="50px" ToolTip="Sprinkler Efficiency">                     
    159                         </asp:DropDownList>   
    160                         <asp:HiddenField ID="txtEfficiency" runat="server" Value='<%# Eval("Efficiency") %>'  /> 
    161                          <asp:HiddenField ID="txtEfficiencyID" runat="server" Value="" />              
    162                         <%-- <asp:TextBox ID="txtEfficiency" runat="server" OnTextChanged="txtProgram_ONCHANGE" Text='<%# Eval("Efficiency") %>' Width="50px"></asp:TextBox> --%>            
    163                     </EditItemTemplate> 
    164                     <ItemTemplate> 
    165                         <asp:Label ID="lblEfficiency" runat="server" Text='<%# Eval("Efficiency") %>' Width="50px"></asp:Label>         
    166                     </ItemTemplate> 
    167                 </telerik:GridTemplateColumn>              
    168                 <telerik:GridTemplateColumn DataField="SoilType" HeaderText="Soil<br>Type" UniqueName="SoilType" SortExpression="SoilType"
    169                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
    170                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
    171                     <EditItemTemplate> 
    172                         <asp:DropDownList ID="ddlSoilType" runat="server" OnInit="initSoilType" Width="80px" ToolTip="Soil Type" onchange="javascript:autoMode_SoilType(this.id)">                     
    173                         </asp:DropDownList>    
    174                         <asp:HiddenField ID="txtSoilType" runat="server" Value='<%# Eval("SoilType") %>'  />  
    175                         <asp:HiddenField ID="txtSoilTypeID" runat="server" Value="" />                                          
    176                     </EditItemTemplate> 
    177                     <ItemTemplate>                         
    178                         <asp:Label ID="lblSoilType" runat="server" Text='<%# Eval("SoilType") %>' Width="80px"></asp:Label>         
    179                     </ItemTemplate> 
    180                 </telerik:GridTemplateColumn>               
    181                 <telerik:GridTemplateColumn DataField="PlantType" HeaderText="Plant<br>Type" UniqueName="PlantType" SortExpression="PlantType"
    182                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
    183                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
    184                     <EditItemTemplate>  
    185                         <asp:DropDownList ID="ddlPlantType" runat="server" OnInit="initPlantType" Width="110px" ToolTip="Plant Type" onchange="javascript:autoMode_PlantType(this.id)">                             
    186                          </asp:DropDownList> 
    187                           <asp:HiddenField ID="txtPlantType" runat="server" Value='<%# Eval("PlantType") %>'  />  
    188                           <asp:HiddenField ID="txtPlantTypeID" runat="server" Value="" />      
    189                     </EditItemTemplate> 
    190                     <ItemTemplate>                         
    191                         <asp:Label ID="lblPlantType" runat="server" Text='<%# Eval("PlantType") %>' Width="80px"></asp:Label>         
    192                     </ItemTemplate> 
    193                 </telerik:GridTemplateColumn> 
    194                    <telerik:GridTemplateColumn DataField="RootDepth" HeaderText="Root Zone<br>Depth" UniqueName="RootDepth" SortExpression="RootDepth"
    195                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="63px" Wrap="True" VerticalAlign="top"  /> 
    196                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="100px" Wrap="true" /> 
    197                     <EditItemTemplate>                     
    198                         <%--<asp:TextBox ID="txtRootDepth" runat="server" OnTextChanged="txtProgram_ONCHANGE" Text='<%# Eval("RootDepth") %>' Width="50px" onchange="javascript:autoMode_RootDepth(this.id)"></asp:TextBox>--%> 
    199                          
    200                         <asp:DropDownList ID="ddlRootDepth" OnInit="initRootDepth" runat="server" Width="50px" ToolTip="Root Zone Depth" onchange="javascript:autoMode_RootDepth(this.id)" ></asp:DropDownList> 
    201                         <asp:HiddenField ID="txtRootDepth" runat="server" Value='<%# Eval("RootDepth") %>'  />       
    202                     </EditItemTemplate> 
    203                     <ItemTemplate> 
    204                         <asp:Label ID="lblRootDepth" runat="server" Text='<%# Eval("RootDepth") %>' Width="50px"></asp:Label>         
    205                     </ItemTemplate> 
    206                 </telerik:GridTemplateColumn>  
    207                 <telerik:GridTemplateColumn DataField="MicroClimate" HeaderText="Microclimate" UniqueName="Microclimate" SortExpression="MicroClimate"
    208                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
    209                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
    210                     <EditItemTemplate>  
    211                         <asp:DropDownList ID="ddlMicroclimate" OnInit="initMicroclimate" runat="server" Width="90px" ToolTip="Microclimate">                             
    212                         </asp:DropDownList>  
    213                         <asp:HiddenField ID="txtMicroclimate" runat="server" Value='<%# Eval("MicroClimate") %>'  />                   
    214                     </EditItemTemplate> 
    215                     <ItemTemplate>                         
    216                         <asp:Label ID="lblMicroclimate" runat="server" Text='<%# Eval("MicroClimate") %>' Width="80px"></asp:Label>         
    217                     </ItemTemplate> 
    218                 </telerik:GridTemplateColumn> 
    219                 <telerik:GridTemplateColumn DataField="SlopeFactor" HeaderText="Slope" UniqueName="SlopeFactor" SortExpression="SlopeFactor"
    220                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
    221                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
    222                     <EditItemTemplate>  
    223                         <asp:DropDownList ID="ddlSlope" OnInit="initSlopeFactor" runat="server" Width="60px" onChange="javascript:autoMode_Slope(this.id)" ToolTip="Slope">                             
    224                         </asp:DropDownList> 
    225                         <asp:HiddenField ID="txtSlope" runat="server" Value='<%# Eval("SlopeFactor") %>'  />  
    226                     </EditItemTemplate> 
    227                     <ItemTemplate>                         
    228                         <asp:Label ID="lblSlope" runat="server" Text='<%# Eval("SlopeFactor") %>' Width="80px"></asp:Label>         
    229                     </ItemTemplate> 
    230                 </telerik:GridTemplateColumn> 
    231                         <telerik:GridTemplateColumn DataField="spklrloc" HeaderText="Location<br>on Slope" UniqueName="spklrloc" SortExpression="spklrloc"
    232                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
    233                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
    234                     <EditItemTemplate>  
    235                         <asp:DropDownList ID="ddlspklrloc" runat="server" OnInit="initSprinklerLocation" Width="110px" ToolTip="Location on Slope">                             
    236                         </asp:DropDownList>  
    237                         <asp:HiddenField ID="txtspklrloc" runat="server" Value='<%# Eval("spklrloc") %>'  />  
    238                     </EditItemTemplate> 
    239                     <ItemTemplate>                         
    240                         <asp:Label ID="lblspklrloc" runat="server" Text='<%# Eval("spklrloc") %>' Width="80px"></asp:Label>         
    241                     </ItemTemplate> 
    242                 </telerik:GridTemplateColumn> 
    243                <telerik:GridTemplateColumn DataField="Adjust" HeaderText="%<br>Adjust" UniqueName="Adjust" SortExpression="AdjustSort"
    244                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="45px" Wrap="True" VerticalAlign="top"  /> 
    245                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="50px" Wrap="true" /> 
    246                     <EditItemTemplate> 
    247                         <asp:DropDownList ID="ddlAdjust" OnInit="initAdjust" runat="server" Width="45px" ToolTip="% Adjust"
    248                          </asp:DropDownList> 
    249                          <asp:HiddenField ID="txtAdjust" runat="server" Value='<%# Eval("Adjust") %>'  />  
    250                     </EditItemTemplate> 
    251                     <ItemTemplate> 
    252                      <asp:Label ID="txtAdjust" runat="server" Text='<%# Eval("Adjust") %>' Width="50px"></asp:Label></ItemTemplate
    253                 </telerik:GridTemplateColumn> 
    254                  <telerik:GridTemplateColumn DataField="TargetMAD" HeaderText="Target<br>MAD" UniqueName="TargetMAD" SortExpression="TargetMADSort"
    255                     <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
    256                     <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
    257                     <EditItemTemplate>      
    258                         <asp:DropDownList ID="ddlTargetMAD" OnInit="initTargetMad" runat="server" Width="55px" ToolTip="Target MAD"
    259                          </asp:DropDownList> 
    260                          <asp:HiddenField ID="txtTargetMAD" runat="server" Value='<%# Eval("TargetMAD") %>'  />  
    261                     </EditItemTemplate> 
    262                     <ItemTemplate>                         
    263                         <asp:Label ID="lblTargetMAD" runat="server" Text='<%# Eval("TargetMAD") %>' Width="80px"></asp:Label>         
    264                     </ItemTemplate> 
    265                 </telerik:GridTemplateColumn>   
    266             </Columns> 
    267             <ExpandCollapseColumn Visible="False" Resizable="False"
    268                 <HeaderStyle Width="20px" /> 
    269             </ExpandCollapseColumn> 
    270             <RowIndicatorColumn Visible="False"
    271                 <HeaderStyle Width="20px" /> 
    272             </RowIndicatorColumn> 
    273     </MasterTableView> 
    274      
    275     <ClientSettings> 
    276                  <Selecting AllowRowSelect="True" EnableDragToSelectRows="True" /> 
    277     </ClientSettings> 
    278     <HeaderStyle BackColor="#D7ECC6" Font-Bold="True" Font-Names="verdana" Font-Size="Small" 
    279         Font-Underline="False" ForeColor="Black" Wrap="True" /> 
    280     <ExportSettings> 
    281         <Pdf PageBottomMargin="" PageFooterMargin="" PageHeaderMargin="" PageHeight="11in" 
    282             PageLeftMargin="" PageRightMargin="" PageTopMargin="" PageWidth="8.5in" /> 
    283     </ExportSettings> 
    284     <ItemStyle Font-Size="Small" /> 
    285     <AlternatingItemStyle BackColor="#D7ECC6" Font-Size="Small" /> 
    286 <ValidationSettings CommandsToValidate="PerformInsert,Update" /> 
    287 </telerik:RadGrid> 
    288 </div> 

    //****************************************************************************************** 
            //Function: MakeRowsEditable 
            //Description: 
            // 
            // 
            //****************************************************************************************** 
            protected void MakeRowsEditable() 
            { 
                for (int x = 0; x < rgProducts.Items.Count; x++) 
                { 
                    rgProducts.EditIndexes.Add(x); 
                } 
            } 
     

    Thanks!

  9. David
    David avatar
    30 posts
    Member since:
    Feb 2007

    Posted 30 Jun 2008 Link to this post

    This small sample app produces the error.  The datasource doesn't make any difference.

    ASPX:
    1 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="domErrorSample.aspx.cs" Inherits="domErrorSample" %> 
    2  
    3 <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
    4  
    5 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    6  
    7 <html xmlns="http://www.w3.org/1999/xhtml" > 
    8 <head runat="server"
    9     <title>Untitled Page</title> 
    10 </head> 
    11 <body> 
    12     <form id="form1" runat="server"
    13         <asp:ScriptManager ID="ScriptManager1" runat="server"
    14         </asp:ScriptManager> 
    15     <div> 
    16          
    17     <telerik:RadGrid ID="rgProducts" HeaderStyle-Wrap="true" AutoGenerateEditColumn="true" Width="953px" OnNeedDataSource="rgProducts_NeedDataSource" BorderWidth="0px" GridLines="None" OnDataBound="rgProducts_ONDATABIND" HeaderStyle-BackColor="#D7ECC6" HeaderStyle-Font-Bold="true" EnableEmbeddedSkins="False" 
    18                 HeaderStyle-Font-Underline="false" HeaderStyle-ForeColor="black" CommandItemStyle-BorderColor="#EAEAEA" 
    19                 HeaderStyle-Font-Names="verdana"  HeaderStyle-Font-Size="Small" ImagesPath="/images/"  
    20                 AlternatingItemStyle-BackColor="#D7ECC6" AllowMultiRowEdit="true" AlternatingItemStyle-Font-Size="Small"  
    21                 ItemStyle-Font-Size="Small" AllowPaging="True" AllowSorting="True" SortingSettings-SortToolTip="Sort this table"  
    22                 runat="server" MasterTableView-EditMode="inplace" > 
    23                     <MasterTableView AutoGenerateColumns="False" EditMode="InPlace" AllowMultiColumnSorting="True" >    
    24                         <Columns>      
    25                             <telerik:GridTemplateColumn DataField="ManufacturerID" HeaderText="Run&lt;br&gt;Time" UniqueName="RunTime" SortExpression="ManufacturerID" FilterImageUrl="/images/Filter.gif" SortAscImageUrl="/images/SortAsc.gif" SortDescImageUrl="/images/SortDesc.gif"
    26                                 <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="40px" Wrap="True" VerticalAlign="Top"  /> 
    27                                 <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="40px" Wrap="True" /> 
    28                                 <EditItemTemplate>                     
    29                                    <asp:TextBox ID="txtRunTime" runat="server" Text='<%# Eval("ManufacturerID") %>' Enabled="false" Width="25px" ToolTip="Run Time"></asp:TextBox> 
    30                                    <asp:RangeValidator ID="valRunTimeRange" Display="Dynamic" ControlToValidate="txtRunTime" MinimumValue="1.0" MaximumValue="99.9" Type="Double" ErrorMessage="Error" runat="server"></asp:RangeValidator>  
    31                                 </EditItemTemplate> 
    32                                 <ItemTemplate>                         
    33                                     <asp:Label ID="lblRunTime" runat="server" Text='<%# Eval("ManufacturerID") %>' Width="40px"></asp:Label>         
    34                                 </ItemTemplate> 
    35                             </telerik:GridTemplateColumn> 
    36                         </Columns>                         
    37                         <RowIndicatorColumn FilterImageUrl="/images/Filter.gif" SortAscImageUrl="/images/SortAsc.gif" SortDescImageUrl="/images/SortDesc.gif"
    38                             <HeaderStyle Width="20px" /> 
    39                         </RowIndicatorColumn>             
    40                         <CommandItemSettings AddNewRecordImageUrl="/images/AddRecord.gif" RefreshImageUrl="/images/Refresh.gif" /> 
    41                         <ExpandCollapseColumn CollapseImageUrl="/images/SingleMinus.gif" ExpandImageUrl="/images/SinglePlus.gif" 
    42                             FilterImageUrl="/images/Filter.gif" SortAscImageUrl="/images/SortAsc.gif" SortDescImageUrl="/images/SortDesc.gif"
    43                             <HeaderStyle Width="20px" /> 
    44                         </ExpandCollapseColumn> 
    45                         <EditFormSettings> 
    46                             <EditColumn CancelImageUrl="/images/Cancel.gif" EditImageUrl="/images/Edit.gif" FilterImageUrl="/images/Filter.gif" 
    47                                 InsertImageUrl="/images/Update.gif" SortAscImageUrl="/images/SortAsc.gif" SortDescImageUrl="/images/SortDesc.gif" 
    48                                 UpdateImageUrl="/images/Update.gif"
    49                             </EditColumn> 
    50                         </EditFormSettings> 
    51                          
    52                     </MasterTableView> 
    53                     <ClientSettings> 
    54                         <Selecting AllowRowSelect="True" /> 
    55                     </ClientSettings> 
    56                     <HeaderStyle BackColor="#D7ECC6" Font-Bold="True" Font-Names="verdana" Font-Size="Small" 
    57                         Font-Underline="False" ForeColor="Black" Wrap="True" />                     
    58                     <ItemStyle Font-Size="Small" /> 
    59                         <AlternatingItemStyle BackColor="#D7ECC6" Font-Size="Small" />                  
    60         <PagerStyle FirstPageImageUrl="/images/PagingFirst.gif" LastPageImageUrl="/images/PagingLast.gif" 
    61             NextPageImageUrl="/images/PagingNext.gif" PrevPageImageUrl="/images/PagingPrev.gif" /> 
    62         <SortingSettings SortToolTip="Sort this table" /> 
    63         <CommandItemStyle BorderColor="#EAEAEA" /> 
    64                 </telerik:RadGrid> 
    65         <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="DeleteProduct" InsertMethod="InsertProduct" OldValuesParameterFormatString="original_{0}" SelectMethod="GetAllProducts" TypeName="CommerceDriveBOL.products" UpdateMethod="UpdateProduct"
    66             <DeleteParameters> 
    67                 <asp:Parameter Name="ProductID" Type="Int32" /> 
    68             </DeleteParameters> 
    69             <UpdateParameters> 
    70                 <asp:Parameter Name="Name" Type="String" /> 
    71                 <asp:Parameter Name="SKU" Type="String" /> 
    72                 <asp:Parameter Name="TaxCodeTypeID" Type="Int32" /> 
    73                 <asp:Parameter Name="ManufacturerID" Type="Int32" /> 
    74                 <asp:Parameter Name="ManufacturerPartNum" Type="String" /> 
    75                 <asp:Parameter Name="DistributorID" Type="Int32" /> 
    76                 <asp:Parameter Name="SalesPrice" Type="Decimal" /> 
    77                 <asp:Parameter Name="RetailPrice" Type="Decimal" /> 
    78                 <asp:Parameter Name="CostPrice" Type="Decimal" /> 
    79                 <asp:Parameter Name="StartDate" Type="String" /> 
    80                 <asp:Parameter Name="EndDate" Type="String" /> 
    81                 <asp:Parameter Name="Published" Type="Boolean" /> 
    82                 <asp:Parameter Name="Hide" Type="Boolean" /> 
    83                 <asp:Parameter Name="CrossSelling" Type="Boolean" /> 
    84                 <asp:Parameter Name="BriefDesc" Type="String" /> 
    85                 <asp:Parameter Name="StandardDesc" Type="String" /> 
    86                 <asp:Parameter Name="DetailedDesc" Type="String" /> 
    87                 <asp:Parameter Name="ModifiedBy" Type="String" /> 
    88                 <asp:Parameter Name="ShippingTypeID" Type="Int32" /> 
    89                 <asp:Parameter Name="Weight" Type="Decimal" /> 
    90                 <asp:Parameter Name="Notes" Type="String" /> 
    91                 <asp:Parameter Name="VirtualProduct" Type="Boolean" /> 
    92                 <asp:Parameter Name="AlternateLink" Type="String" /> 
    93                 <asp:Parameter Name="MinInventoryLevel" Type="Int32" /> 
    94                 <asp:Parameter Name="ProductID" Type="Int32" /> 
    95             </UpdateParameters> 
    96             <InsertParameters> 
    97                 <asp:Parameter Name="Name" Type="String" /> 
    98                 <asp:Parameter Name="SKU" Type="String" /> 
    99                 <asp:Parameter Name="TaxCodeTypeID" Type="Int32" /> 
    100                 <asp:Parameter Name="ManufacturerID" Type="Int32" /> 
    101                 <asp:Parameter Name="ManufacturerPartNum" Type="String" /> 
    102                 <asp:Parameter Name="DistributorID" Type="Int32" /> 
    103                 <asp:Parameter Name="SalesPrice" Type="Decimal" /> 
    104                 <asp:Parameter Name="RetailPrice" Type="Decimal" /> 
    105                 <asp:Parameter Name="CostPrice" Type="Decimal" /> 
    106                 <asp:Parameter Name="InventoryLevel" Type="Int32" /> 
    107                 <asp:Parameter Name="StartDate" Type="String" /> 
    108                 <asp:Parameter Name="EndDate" Type="String" /> 
    109                 <asp:Parameter Name="Published" Type="Boolean" /> 
    110                 <asp:Parameter Name="Hide" Type="Boolean" /> 
    111                 <asp:Parameter Name="CrossSelling" Type="Boolean" /> 
    112                 <asp:Parameter Name="BriefDesc" Type="String" /> 
    113                 <asp:Parameter Name="StandardDesc" Type="String" /> 
    114                 <asp:Parameter Name="DetailedDesc" Type="String" /> 
    115                 <asp:Parameter Name="ModifiedBy" Type="String" /> 
    116                 <asp:Parameter Name="CreatedBy" Type="String" /> 
    117                 <asp:Parameter Name="ShippingTypeID" Type="Int32" /> 
    118                 <asp:Parameter Name="Weight" Type="Decimal" /> 
    119                 <asp:Parameter Name="Notes" Type="String" /> 
    120                 <asp:Parameter Name="VirtualProduct" Type="Boolean" /> 
    121                 <asp:Parameter Name="AlternateLink" Type="String" /> 
    122                 <asp:Parameter Name="MinInventoryLevel" Type="Int32" /> 
    123             </InsertParameters> 
    124         </asp:ObjectDataSource> 
    125     </div> 
    126     </form> 
    127 </body> 
    128 </html> 

    C#
    1 using System; 
    2 using System.Data; 
    3 using System.Configuration; 
    4 using System.Collections; 
    5 using System.Web; 
    6 using System.Web.Security; 
    7 using System.Web.UI; 
    8 using System.Web.UI.WebControls; 
    9 using System.Web.UI.WebControls.WebParts; 
    10 using System.Web.UI.HtmlControls; 
    11 using Telerik.Web.UI; 
    12  
    13 public partial class domErrorSample : System.Web.UI.Page 
    14
    15     protected void Page_Load(object sender, EventArgs e) 
    16     { 
    17          
    18     } 
    19     //****************************************************************************************** 
    20     //Function: MakeRowsEditable 
    21     //Description: 
    22     // 
    23     // 
    24     //****************************************************************************************** 
    25     protected void MakeRowsEditable() 
    26     { 
    27         for (int x = 0; x < rgProducts.Items.Count; x++) 
    28         { 
    29             rgProducts.EditIndexes.Add(x); 
    30         } 
    31
    32     } 
    33  
    34  
    35     protected void rgProducts_ONDATABIND(object sender, EventArgs e) 
    36     { 
    37         MakeRowsEditable(); 
    38     } 
    39  
    40     protected void rgProducts_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
    41     { 
    42         rgProducts.DataSource = ObjectDataSource1;  
    43     } 
    44

    Thanks!
  10. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 01 Jul 2008 Link to this post

    Hi Ken,

    Actually this is an issue with the ASP.NET AJAX framework in general (when having disabled elements) which is confirmed in the following public forum post:

    http://forums.asp.net/p/1151199/1918939.aspx

    I suggest you use the workaround suggested in the thread until the bug is resolved.

    Kind regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017