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

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

8 Answers 297 Views
Input
This is a migrated thread and some comments may be shown as answers.
Ali
Top achievements
Rank 1
Ali asked on 16 Apr 2008, 06:08 AM
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

8 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 16 Apr 2008, 08:47 AM
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
0
Ali
Top achievements
Rank 1
answered on 17 Apr 2008, 04:57 AM
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



0
Konstantin Petkov
Telerik team
answered on 17 Apr 2008, 05:54 AM
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
0
David
Top achievements
Rank 1
answered on 28 Jun 2008, 12:17 AM
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,

0
Konstantin Petkov
Telerik team
answered on 30 Jun 2008, 05:53 AM
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
0
David
Top achievements
Rank 1
answered on 30 Jun 2008, 01:50 PM
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.
<div style="border:1px solid #ccc; width: 953px;"
<telerik:RadGrid ID="rgProducts" HeaderStyle-Wrap="true" BorderWidth="0px" EnableEmbeddedSkins="false" 
    GridLines="None" HeaderStyle-BackColor="#D7ECC6" HeaderStyle-Font-Bold="true" 
    HeaderStyle-Font-Underline="false" HeaderStyle-ForeColor="black" AllowAutomaticUpdates="true" CommandItemStyle-BorderWidth="0" CommandItemStyle-BorderColor="#EAEAEA" 
    HeaderStyle-Font-Names="verdana"  HeaderStyle-Font-Size="Small" OnLoad="RadGrid1_Load" OnPreRender="RadGrid1_PreRender" OnDataBound="rgProducts_ONDATABIND" 
    AlternatingItemStyle-BackColor="#D7ECC6" AlternatingItemStyle-Font-Size="Small"  
    ItemStyle-Font-Size="Small" PageSize="48" AllowPaging="True" AllowSorting="True" SortingSettings-SortToolTip="Sort this table"  
    Skin="Hay" runat="server" CssClass="modeTable" MasterTableView-EditMode="inplace" OnSortCommand="rgProducts_OnSortCommand" ImagesPath="images/" OnNeedDataSource="rgProducts_NeedDataSource" > 
    <ValidationSettings EnableValidation="true" />     
    <MasterTableView AutoGenerateColumns="False" EditMode="InPlace" AllowMultiColumnSorting="true" CommandItemDisplay="Top">    
     
   <CommandItemTemplate>     
        <div style="padding: 3px; background: #AAD786;">                     
         
        &nbsp;&nbsp;&nbsp;View Mode: 
            <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>      
            <asp:Label ID="lblBasicModeView" Text="Basic" runat="server"  Font-Bold="true"></asp:Label>  
            &nbsp;|&nbsp; 
            <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> 
            <asp:Label ID="lblAdvancedModeView" Text="Advanced" runat="server"  Font-Bold="true"></asp:Label> 
        </div>         
        </CommandItemTemplate> 
        <NoRecordsTemplate> 
            <div style="text-align: center; height: 20px"
                <asp:Label ForeColor="RoyalBlue" runat="server" ID="lblAutoModeNoStations">There are no stations in auto mode.</asp:Label> 
                <br /> 
            </div> 
        </NoRecordsTemplate> 
            <Columns>    
                 <%--<telerik:GridEditCommandColumn > 
                                
                  </telerik:GridEditCommandColumn>    --%> 
               <telerik:GridTemplateColumn DataField="StationNo" UniqueName="StationNo" SortExpression="StationNo"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="140px" Wrap="True" VerticalAlign="top" /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="140px" Wrap="true" /> 
                    <HeaderTemplate> 
                        <asp:Label ID="lblHeaderSelect" runat="server" Text="Select"></asp:Label><br />           
                        <%--<asp:CheckBox ID="chkHeaderSelect" runat="server" Text="All" TextAlign="Left" AutoPostBack="true" OnCheckedChanged="chkHeaderSelect_CHANGE" Checked="false" />--%> 
                        <asp:CheckBox ID="chkHeaderSelect" runat="server" Text="All" TextAlign="Left" Checked="false" /> 
                    </HeaderTemplate> 
                    <EditItemTemplate>      
                        <%--<asp:CheckBox ID="chkHideEdit" runat="server" AutoPostBack="true" OnCheckedChanged="chkHideEdit_CHANGE" Enabled="true" /></div>     
                        <asp:ImageButton ID="imgHideEdit" runat="server" AlternateText="Close and cancel edits" ToolTip="Close and cancel edits" ImageUrl="~/Images/icons/iconCancel.gif" OnClick="chkHideEdit_CHANGE" />--%>                       
                        <asp:CheckBox ID="chkHideEdit" runat="server" Enabled="true" ToolTip="Select Station"  /> 
                         
                    </EditItemTemplate> 
                    <ItemTemplate>                    
                        <%--<asp:CheckBox ID="chkHideEdit" runat="server" AutoPostBack="true" OnCheckedChanged="chkHideEdit_CHANGE" Enabled="true" ToolTip="Edit Station"  />  --%> 
                        <asp:CheckBox ID="chkHideEdit" runat="server" Enabled="true" ToolTip="Select Station"  />   
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>   
                <telerik:GridTemplateColumn DataField="StationNo" HeaderText="Station<br>#" UniqueName="StationNo" SortExpression="StationNo"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="40px" Wrap="True" VerticalAlign="top" /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="40px" Wrap="true" /> 
                    <EditItemTemplate>                                         
                        <asp:Label ID="lblProductID" Text='<%# Eval("StationNo") %>' runat="server" Width="40px" ToolTip="Station #"></asp:Label>      
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblProductID" runat="server" Text='<%# Eval("StationNo") %>' Width="40px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>                
                 <telerik:GridTemplateColumn DataField="StationName" HeaderText="Station<br>Name" UniqueName="StationName" SortExpression="StationName"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="100px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="100px" Wrap="true" /> 
                    <EditItemTemplate>                     
                        <asp:TextBox ID="txtStationName" runat="server" Text='<%# Eval("StationName") %>' MaxLength="24" Width="80px" ToolTip="Station Name"></asp:TextBox> 
                         <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.' />"  
                ValidationExpression="^[A-Z0-9]$|^[A-Z0-9]+[A-Z0-9a-z\s/.&-]{1,24}$"
                </asp:RegularExpressionValidator> 
                    </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblStationName" runat="server" Text='<%# Eval("StationName") %>' Width="80px"></asp:Label>         
                    </ItemTemplate> 
               </telerik:GridTemplateColumn>                 
                 <telerik:GridTemplateColumn DataField="Program" HeaderText="Program" UniqueName="Program" SortExpression="Program"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="70px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="70px" Wrap="true" /> 
                        <EditItemTemplate>   
                            <asp:DropDownList ID="ddlProgramMode" OnInit="initProgramLetter" Width="50px" ToolTip="Program" runat="server" onChange="javascript: autoMode_StationProgram(this.id);">                             
                            </asp:DropDownList>    
                            <asp:HiddenField ID="txtProgramMode" runat="server" Value='<%# Eval("Program") %>'  />                                
                        </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblProgramMode" runat="server" Text='<%# Eval("Program") %>' ToolTip='<%# Eval("ProgramName") %>' Width="50px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>                 
               <telerik:GridTemplateColumn DataField="StationMode" HeaderText="Station<br>Mode" UniqueName="StationMode" SortExpression="StationMode"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="75px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="75px" Wrap="true" /> 
                    <EditItemTemplate>  
                        <asp:DropDownList ID="ddlStationMode"  runat="server" OnInit="initStationMode" Width="50px" ToolTip="Station Mode" onChange="javascript: autoMode_StationMode(this.id)"
                        </asp:DropDownList>     
                         <asp:HiddenField ID="txtStationMode" runat="server" Value='<%# Eval("StationMode") %>'  />                          
                    </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblStationMode" runat="server" Text='<%# Eval("StationMode") %>' Width="50px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>                                
                <telerik:GridTemplateColumn DataField="UseWaterWindow" HeaderText="Use Water Window" UniqueName="UseWaterWindow" SortExpression="UseWaterWindow"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
                    <EditItemTemplate>  
                        <asp:DropDownList ID="ddlUseWaterWindow" OnInit="initUseWaterWindow" runat="server" Width="45px" ToolTip="Use Water Window">  
                          </asp:DropDownList> 
                          <asp:HiddenField ID="txtWaterWindow" runat="server" Value='<%# Eval("UseWaterWindow") %>'  />  
                          <asp:HiddenField ID="txtWaterDayMode" runat="server" Value='<%# Eval("waterDayMode") %>' /> 
                    </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblUseWaterWindow" runat="server" Text='<%# Eval("UseWaterWindow") %>' Width="80px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>   
                 
                 <telerik:GridTemplateColumn DataField="UsableRainfall" HeaderText="Usable<br>Rainfall" UniqueName="UsableRainfall" SortExpression="UsableRainfall"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
                    <EditItemTemplate>                                         
                        <asp:DropDownList ID="ddlUsableRainfall" OnInit="initUsableRainfall" runat="server" Width="55px" ToolTip="Usable Rainfall"
                         </asp:DropDownList> 
                         <asp:HiddenField ID="txtUsableRainfall" runat="server" Value='<%# Eval("UsableRainfall") %>'  />    
                    </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblUsableRainfall" runat="server" Text='<%# Eval("UsableRainfall") %>' Width="80px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>     
                             
                <telerik:GridTemplateColumn DataField="SprinklerType" HeaderText="Sprinkler<br>Type" UniqueName="SprinklerType" SortExpression="SprinklerType"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
                    <EditItemTemplate>    
                    <asp:DropDownList ID="ddlSprinklerType" runat="server" OnInit="initSprinklerType" Width="100px" ToolTip="Sprinkler Type" onchange="javascript:autoMode_SprinklerType(this.id)">                             
                        </asp:DropDownList>  
                         <asp:HiddenField ID="txtSprinklerType" runat="server" Value='<%# Eval("SprinklerType") %>'  /> 
                         <asp:HiddenField ID="txtSprinklerTypeID" runat="server" Value="" />     
                         <asp:HiddenField ID="hdnPrecipRateBasic" runat="server" Value='<%# Eval("PrecipRate") %>'  />  
                         <asp:HiddenField ID="hdnEfficiency" runat="server" Value='<%# Eval("Efficiency") %>' /> 
                    </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblSprinklerType" runat="server" Text='<%# Eval("SprinklerType") %>' Width="80px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>    
                 
                     <telerik:GridTemplateColumn DataField="PrecipRate" HeaderText="Precip<br>Rate" UniqueName="PrecipRate" SortExpression="PrecipRate"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="60px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="60px" Wrap="true" /> 
                    <EditItemTemplate>                     
                        <asp:TextBox ID="txtPrecipRate" runat="server" OnTextChanged="txtProgram_ONCHANGE" Text='<%# Eval("PrecipRate") %>' Width="40px" ToolTip="Precip Rate"></asp:TextBox>  
                        <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>  
                         <asp:HiddenField ID="hdnPrecipRate" runat="server" Value='<%# Eval("PrecipRate") %>'  />                     
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblPrecipRate" runat="server" Text='<%# Eval("PrecipRate") %>' Width="40px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>                 
                     <telerik:GridTemplateColumn DataField="Efficiency" HeaderText="Sprinkler<br>Efficiency" UniqueName="Efficiency" SortExpression="Efficiency"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="63px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="63px" Wrap="true" /> 
                    <EditItemTemplate>       
                        <asp:DropDownList ID="ddlEfficiency" runat="server" OnInit="initEfficiency" Width="50px" ToolTip="Sprinkler Efficiency">                     
                        </asp:DropDownList>   
                        <asp:HiddenField ID="txtEfficiency" runat="server" Value='<%# Eval("Efficiency") %>'  /> 
                         <asp:HiddenField ID="txtEfficiencyID" runat="server" Value="" />              
                        <%-- <asp:TextBox ID="txtEfficiency" runat="server" OnTextChanged="txtProgram_ONCHANGE" Text='<%# Eval("Efficiency") %>' Width="50px"></asp:TextBox> --%>            
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblEfficiency" runat="server" Text='<%# Eval("Efficiency") %>' Width="50px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>              
                <telerik:GridTemplateColumn DataField="SoilType" HeaderText="Soil<br>Type" UniqueName="SoilType" SortExpression="SoilType"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
                    <EditItemTemplate> 
                        <asp:DropDownList ID="ddlSoilType" runat="server" OnInit="initSoilType" Width="80px" ToolTip="Soil Type" onchange="javascript:autoMode_SoilType(this.id)">                     
                        </asp:DropDownList>    
                        <asp:HiddenField ID="txtSoilType" runat="server" Value='<%# Eval("SoilType") %>'  />  
                        <asp:HiddenField ID="txtSoilTypeID" runat="server" Value="" />                                          
                    </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblSoilType" runat="server" Text='<%# Eval("SoilType") %>' Width="80px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>               
                <telerik:GridTemplateColumn DataField="PlantType" HeaderText="Plant<br>Type" UniqueName="PlantType" SortExpression="PlantType"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
                    <EditItemTemplate>  
                        <asp:DropDownList ID="ddlPlantType" runat="server" OnInit="initPlantType" Width="110px" ToolTip="Plant Type" onchange="javascript:autoMode_PlantType(this.id)">                             
                         </asp:DropDownList> 
                          <asp:HiddenField ID="txtPlantType" runat="server" Value='<%# Eval("PlantType") %>'  />  
                          <asp:HiddenField ID="txtPlantTypeID" runat="server" Value="" />      
                    </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblPlantType" runat="server" Text='<%# Eval("PlantType") %>' Width="80px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                   <telerik:GridTemplateColumn DataField="RootDepth" HeaderText="Root Zone<br>Depth" UniqueName="RootDepth" SortExpression="RootDepth"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="63px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="100px" Wrap="true" /> 
                    <EditItemTemplate>                     
                        <%--<asp:TextBox ID="txtRootDepth" runat="server" OnTextChanged="txtProgram_ONCHANGE" Text='<%# Eval("RootDepth") %>' Width="50px" onchange="javascript:autoMode_RootDepth(this.id)"></asp:TextBox>--%> 
                         
                        <asp:DropDownList ID="ddlRootDepth" OnInit="initRootDepth" runat="server" Width="50px" ToolTip="Root Zone Depth" onchange="javascript:autoMode_RootDepth(this.id)" ></asp:DropDownList> 
                        <asp:HiddenField ID="txtRootDepth" runat="server" Value='<%# Eval("RootDepth") %>'  />       
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Label ID="lblRootDepth" runat="server" Text='<%# Eval("RootDepth") %>' Width="50px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>  
                <telerik:GridTemplateColumn DataField="MicroClimate" HeaderText="Microclimate" UniqueName="Microclimate" SortExpression="MicroClimate"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
                    <EditItemTemplate>  
                        <asp:DropDownList ID="ddlMicroclimate" OnInit="initMicroclimate" runat="server" Width="90px" ToolTip="Microclimate">                             
                        </asp:DropDownList>  
                        <asp:HiddenField ID="txtMicroclimate" runat="server" Value='<%# Eval("MicroClimate") %>'  />                   
                    </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblMicroclimate" runat="server" Text='<%# Eval("MicroClimate") %>' Width="80px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn DataField="SlopeFactor" HeaderText="Slope" UniqueName="SlopeFactor" SortExpression="SlopeFactor"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
                    <EditItemTemplate>  
                        <asp:DropDownList ID="ddlSlope" OnInit="initSlopeFactor" runat="server" Width="60px" onChange="javascript:autoMode_Slope(this.id)" ToolTip="Slope">                             
                        </asp:DropDownList> 
                        <asp:HiddenField ID="txtSlope" runat="server" Value='<%# Eval("SlopeFactor") %>'  />  
                    </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblSlope" runat="server" Text='<%# Eval("SlopeFactor") %>' Width="80px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn DataField="spklrloc" HeaderText="Location<br>on Slope" UniqueName="spklrloc" SortExpression="spklrloc"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
                    <EditItemTemplate>  
                        <asp:DropDownList ID="ddlspklrloc" runat="server" OnInit="initSprinklerLocation" Width="110px" ToolTip="Location on Slope">                             
                        </asp:DropDownList>  
                        <asp:HiddenField ID="txtspklrloc" runat="server" Value='<%# Eval("spklrloc") %>'  />  
                    </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblspklrloc" runat="server" Text='<%# Eval("spklrloc") %>' Width="80px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
               <telerik:GridTemplateColumn DataField="Adjust" HeaderText="%<br>Adjust" UniqueName="Adjust" SortExpression="AdjustSort"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="45px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="50px" Wrap="true" /> 
                    <EditItemTemplate> 
                        <asp:DropDownList ID="ddlAdjust" OnInit="initAdjust" runat="server" Width="45px" ToolTip="% Adjust"
                         </asp:DropDownList> 
                         <asp:HiddenField ID="txtAdjust" runat="server" Value='<%# Eval("Adjust") %>'  />  
                    </EditItemTemplate> 
                    <ItemTemplate> 
                     <asp:Label ID="txtAdjust" runat="server" Text='<%# Eval("Adjust") %>' Width="50px"></asp:Label></ItemTemplate
                </telerik:GridTemplateColumn> 
                 <telerik:GridTemplateColumn DataField="TargetMAD" HeaderText="Target<br>MAD" UniqueName="TargetMAD" SortExpression="TargetMADSort"
                    <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="125px" Wrap="True" VerticalAlign="top"  /> 
                    <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="125px" Wrap="true" /> 
                    <EditItemTemplate>      
                        <asp:DropDownList ID="ddlTargetMAD" OnInit="initTargetMad" runat="server" Width="55px" ToolTip="Target MAD"
                         </asp:DropDownList> 
                         <asp:HiddenField ID="txtTargetMAD" runat="server" Value='<%# Eval("TargetMAD") %>'  />  
                    </EditItemTemplate> 
                    <ItemTemplate>                         
                        <asp:Label ID="lblTargetMAD" runat="server" Text='<%# Eval("TargetMAD") %>' Width="80px"></asp:Label>         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>   
            </Columns> 
            <ExpandCollapseColumn Visible="False" Resizable="False"
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
            <RowIndicatorColumn Visible="False"
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
    </MasterTableView> 
     
    <ClientSettings> 
                 <Selecting AllowRowSelect="True" EnableDragToSelectRows="True" /> 
    </ClientSettings> 
    <HeaderStyle BackColor="#D7ECC6" Font-Bold="True" Font-Names="verdana" Font-Size="Small" 
        Font-Underline="False" ForeColor="Black" Wrap="True" /> 
    <ExportSettings> 
        <Pdf PageBottomMargin="" PageFooterMargin="" PageHeaderMargin="" PageHeight="11in" 
            PageLeftMargin="" PageRightMargin="" PageTopMargin="" PageWidth="8.5in" /> 
    </ExportSettings> 
    <ItemStyle Font-Size="Small" /> 
    <AlternatingItemStyle BackColor="#D7ECC6" Font-Size="Small" /> 
<ValidationSettings CommandsToValidate="PerformInsert,Update" /> 
</telerik:RadGrid> 
</div> 

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

Thanks!

0
David
Top achievements
Rank 1
answered on 30 Jun 2008, 04:30 PM
This small sample app produces the error.  The datasource doesn't make any difference.

ASPX:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="domErrorSample.aspx.cs" Inherits="domErrorSample" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server"
        </asp:ScriptManager> 
    <div> 
         
    <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" 
                HeaderStyle-Font-Underline="false" HeaderStyle-ForeColor="black" CommandItemStyle-BorderColor="#EAEAEA" 
                HeaderStyle-Font-Names="verdana"  HeaderStyle-Font-Size="Small" ImagesPath="/images/"  
                AlternatingItemStyle-BackColor="#D7ECC6" AllowMultiRowEdit="true" AlternatingItemStyle-Font-Size="Small"  
                ItemStyle-Font-Size="Small" AllowPaging="True" AllowSorting="True" SortingSettings-SortToolTip="Sort this table"  
                runat="server" MasterTableView-EditMode="inplace" > 
                    <MasterTableView AutoGenerateColumns="False" EditMode="InPlace" AllowMultiColumnSorting="True" >    
                        <Columns>      
                            <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"
                                <ItemStyle Font-Names="Arial" Font-Size="8pt" Width="40px" Wrap="True" VerticalAlign="Top"  /> 
                                <HeaderStyle Font-Names="Arial" BackColor="#EAEAEA" HorizontalAlign="Left" Font-Size="8pt" Width="40px" Wrap="True" /> 
                                <EditItemTemplate>                     
                                   <asp:TextBox ID="txtRunTime" runat="server" Text='<%# Eval("ManufacturerID") %>' Enabled="false" Width="25px" ToolTip="Run Time"></asp:TextBox> 
                                   <asp:RangeValidator ID="valRunTimeRange" Display="Dynamic" ControlToValidate="txtRunTime" MinimumValue="1.0" MaximumValue="99.9" Type="Double" ErrorMessage="Error" runat="server"></asp:RangeValidator>  
                                </EditItemTemplate> 
                                <ItemTemplate>                         
                                    <asp:Label ID="lblRunTime" runat="server" Text='<%# Eval("ManufacturerID") %>' Width="40px"></asp:Label>         
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                        </Columns>                         
                        <RowIndicatorColumn FilterImageUrl="/images/Filter.gif" SortAscImageUrl="/images/SortAsc.gif" SortDescImageUrl="/images/SortDesc.gif"
                            <HeaderStyle Width="20px" /> 
                        </RowIndicatorColumn>             
                        <CommandItemSettings AddNewRecordImageUrl="/images/AddRecord.gif" RefreshImageUrl="/images/Refresh.gif" /> 
                        <ExpandCollapseColumn CollapseImageUrl="/images/SingleMinus.gif" ExpandImageUrl="/images/SinglePlus.gif" 
                            FilterImageUrl="/images/Filter.gif" SortAscImageUrl="/images/SortAsc.gif" SortDescImageUrl="/images/SortDesc.gif"
                            <HeaderStyle Width="20px" /> 
                        </ExpandCollapseColumn> 
                        <EditFormSettings> 
                            <EditColumn CancelImageUrl="/images/Cancel.gif" EditImageUrl="/images/Edit.gif" FilterImageUrl="/images/Filter.gif" 
                                InsertImageUrl="/images/Update.gif" SortAscImageUrl="/images/SortAsc.gif" SortDescImageUrl="/images/SortDesc.gif" 
                                UpdateImageUrl="/images/Update.gif"
                            </EditColumn> 
                        </EditFormSettings> 
                         
                    </MasterTableView> 
                    <ClientSettings> 
                        <Selecting AllowRowSelect="True" /> 
                    </ClientSettings> 
                    <HeaderStyle BackColor="#D7ECC6" Font-Bold="True" Font-Names="verdana" Font-Size="Small" 
                        Font-Underline="False" ForeColor="Black" Wrap="True" />                     
                    <ItemStyle Font-Size="Small" /> 
                        <AlternatingItemStyle BackColor="#D7ECC6" Font-Size="Small" />                  
        <PagerStyle FirstPageImageUrl="/images/PagingFirst.gif" LastPageImageUrl="/images/PagingLast.gif" 
            NextPageImageUrl="/images/PagingNext.gif" PrevPageImageUrl="/images/PagingPrev.gif" /> 
        <SortingSettings SortToolTip="Sort this table" /> 
        <CommandItemStyle BorderColor="#EAEAEA" /> 
                </telerik:RadGrid> 
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="DeleteProduct" InsertMethod="InsertProduct" OldValuesParameterFormatString="original_{0}" SelectMethod="GetAllProducts" TypeName="CommerceDriveBOL.products" UpdateMethod="UpdateProduct"
            <DeleteParameters> 
                <asp:Parameter Name="ProductID" Type="Int32" /> 
            </DeleteParameters> 
            <UpdateParameters> 
                <asp:Parameter Name="Name" Type="String" /> 
                <asp:Parameter Name="SKU" Type="String" /> 
                <asp:Parameter Name="TaxCodeTypeID" Type="Int32" /> 
                <asp:Parameter Name="ManufacturerID" Type="Int32" /> 
                <asp:Parameter Name="ManufacturerPartNum" Type="String" /> 
                <asp:Parameter Name="DistributorID" Type="Int32" /> 
                <asp:Parameter Name="SalesPrice" Type="Decimal" /> 
                <asp:Parameter Name="RetailPrice" Type="Decimal" /> 
                <asp:Parameter Name="CostPrice" Type="Decimal" /> 
                <asp:Parameter Name="StartDate" Type="String" /> 
                <asp:Parameter Name="EndDate" Type="String" /> 
                <asp:Parameter Name="Published" Type="Boolean" /> 
                <asp:Parameter Name="Hide" Type="Boolean" /> 
                <asp:Parameter Name="CrossSelling" Type="Boolean" /> 
                <asp:Parameter Name="BriefDesc" Type="String" /> 
                <asp:Parameter Name="StandardDesc" Type="String" /> 
                <asp:Parameter Name="DetailedDesc" Type="String" /> 
                <asp:Parameter Name="ModifiedBy" Type="String" /> 
                <asp:Parameter Name="ShippingTypeID" Type="Int32" /> 
                <asp:Parameter Name="Weight" Type="Decimal" /> 
                <asp:Parameter Name="Notes" Type="String" /> 
                <asp:Parameter Name="VirtualProduct" Type="Boolean" /> 
                <asp:Parameter Name="AlternateLink" Type="String" /> 
                <asp:Parameter Name="MinInventoryLevel" Type="Int32" /> 
                <asp:Parameter Name="ProductID" Type="Int32" /> 
            </UpdateParameters> 
            <InsertParameters> 
                <asp:Parameter Name="Name" Type="String" /> 
                <asp:Parameter Name="SKU" Type="String" /> 
                <asp:Parameter Name="TaxCodeTypeID" Type="Int32" /> 
                <asp:Parameter Name="ManufacturerID" Type="Int32" /> 
                <asp:Parameter Name="ManufacturerPartNum" Type="String" /> 
                <asp:Parameter Name="DistributorID" Type="Int32" /> 
                <asp:Parameter Name="SalesPrice" Type="Decimal" /> 
                <asp:Parameter Name="RetailPrice" Type="Decimal" /> 
                <asp:Parameter Name="CostPrice" Type="Decimal" /> 
                <asp:Parameter Name="InventoryLevel" Type="Int32" /> 
                <asp:Parameter Name="StartDate" Type="String" /> 
                <asp:Parameter Name="EndDate" Type="String" /> 
                <asp:Parameter Name="Published" Type="Boolean" /> 
                <asp:Parameter Name="Hide" Type="Boolean" /> 
                <asp:Parameter Name="CrossSelling" Type="Boolean" /> 
                <asp:Parameter Name="BriefDesc" Type="String" /> 
                <asp:Parameter Name="StandardDesc" Type="String" /> 
                <asp:Parameter Name="DetailedDesc" Type="String" /> 
                <asp:Parameter Name="ModifiedBy" Type="String" /> 
                <asp:Parameter Name="CreatedBy" Type="String" /> 
                <asp:Parameter Name="ShippingTypeID" Type="Int32" /> 
                <asp:Parameter Name="Weight" Type="Decimal" /> 
                <asp:Parameter Name="Notes" Type="String" /> 
                <asp:Parameter Name="VirtualProduct" Type="Boolean" /> 
                <asp:Parameter Name="AlternateLink" Type="String" /> 
                <asp:Parameter Name="MinInventoryLevel" Type="Int32" /> 
            </InsertParameters> 
        </asp:ObjectDataSource> 
    </div> 
    </form> 
</body> 
</html> 

C#
using System; 
using System.Data; 
using System.Configuration; 
using System.Collections; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Web.UI.HtmlControls; 
using Telerik.Web.UI; 
 
public partial class domErrorSample : System.Web.UI.Page 
    protected void Page_Load(object sender, EventArgs e) 
    { 
         
    } 
    //****************************************************************************************** 
    //Function: MakeRowsEditable 
    //Description: 
    // 
    // 
    //****************************************************************************************** 
    protected void MakeRowsEditable() 
    { 
        for (int x = 0; x < rgProducts.Items.Count; x++) 
        { 
            rgProducts.EditIndexes.Add(x); 
        } 
    } 
 
 
    protected void rgProducts_ONDATABIND(object sender, EventArgs e) 
    { 
        MakeRowsEditable(); 
    } 
 
    protected void rgProducts_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
    { 
        rgProducts.DataSource = ObjectDataSource1;  
    } 

Thanks!
0
Sebastian
Telerik team
answered on 01 Jul 2008, 06:36 AM
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
Tags
Input
Asked by
Ali
Top achievements
Rank 1
Answers by
Steve
Telerik team
Ali
Top achievements
Rank 1
Konstantin Petkov
Telerik team
David
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or