I have problems with AJAX in Gridview The Gridview contains AutoCompleteExtender, NumericUpDownExtender and FilteredTextBoxExtender.
If I create an empty web site project, AutoCompleteExtender works very well, but I have the problem with the NumericUpDownExtender and with the FilteredTextBoxExtender, ... they only work in the first row in the rest of the lines do not work ... the NumericUpDownExtender just put the up and down buttons on the first row in the rest and no longer draw the up and down buttons.
On the other hand ......... If I create a web site project using ASP.NET web forms, the AutoCompleteExtender does not work but the NumericUpDownExtender and the FilteredTextBoxExtender work very well Obviously for both projects I use the same code that I am attaching to this post. I also use the same browser edge or google chrome and also use the same dll as ajaxtoolkit ... I do not add or remove any code for both cases is a behavior of the ajax that I can not find or solve for both types of projects, either web empty site or asp.net web forms Because for a type of project if something of the ajax works and in the autumn project it does not work and visebersa what does not work in one if it works in the other. Can somebody help me
<asp:GridView ID="grdDetalle" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" GridLines="Vertical"
Font-Size="X-Small" OnRowDataBound="grdContact_RowDataBound" TabIndex="27" Width="1032px">
<AlternatingRowStyle BackColor="#DCDCDC" />
<Columns>
<asp:TemplateField HeaderText="Partida">
<ItemTemplate>
<asp:TextBox ID="txtPartida" runat="server" Text='<%# Bind("Partida") %>' TextMode="Number"
Width="30px"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Clave">
<ItemTemplate>
<asp:TextBox ID="txtClave" runat="server" Text='<%# Bind("CveProducto") %>' Width="120px"
AutoPostBack="True" OnTextChanged="txtClave_TextChanged">
</asp:TextBox>
<ajaxtoolkit:autocompleteextender id="txtClave_AutoCompleteExtender" targetcontrolid="txtClave"
servicemethod="GetArticuloPorClave" minimumprefixlength="2" completioninterval="100"
enablecaching="true" completionsetcount="10" runat="server" firstrowselected="false">
</ajaxtoolkit:autocompleteextender>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Descripcion">
<ItemTemplate>
<asp:TextBox ID="txtDescripcion" runat="server" Text='<%# Bind("Descripcion") %>'
Width="420px" AutoPostBack="True" OnTextChanged="txtDescripcion_TextChanged">
</asp:TextBox>
<ajaxtoolkit:autocompleteextender id="txtDescripcion_AutoCompleteExtender" targetcontrolid="txtDescripcion"
servicemethod="GetArticuloPorDesc" minimumprefixlength="2" completioninterval="100"
enablecaching="true" completionsetcount="10" runat="server" firstrowselected="false">
</ajaxtoolkit:autocompleteextender>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Cantidad">
<ItemTemplate>
<asp:TextBox ID="txtCantidad" runat="server" Text='<%# Bind("Cantidad") %>' Width="60px"></asp:TextBox>
<ajaxtoolkit:numericupdownextender id="txtCantidad_NumericUpDownExtender" runat="server"
behaviorid="txtCantidad_NumericUpDownExtender" maximum="999" minimum="0" refvalues=""
servicedownmethod="" servicedownpath="" serviceupmethod="" tag="" targetbuttondownid=""
targetbuttonupid="" targetcontrolid="txtCantidad" width="60" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField HeaderText="C/Unitario">
<ItemTemplate>
<asp:TextBox ID="txtPrecio" runat="server" Text='<%# Bind("Precio") %>' Enabled="true"
Font-Bold="true" Font-Names="Courier New" Width="110px"></asp:TextBox>
<ajaxtoolkit:filteredtextboxextender id="txtPrecio_FilteredTextBoxExtender" runat="server"
behaviorid="txtPrecio_FilteredTextBoxExtender" filtertype="Numbers" targetcontrolid="txtPrecio" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" />
</asp:TemplateField>
</Columns>
</asp:GridView>