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

UpdatePanel and RadNumericTextBox issue

0 Answers 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Melizabeth
Top achievements
Rank 1
Melizabeth asked on 04 Jan 2012, 03:26 PM
Hi!,
Here it is, my very 1st thread :D. so be patient please lol...(i´m not very good at english either so...)

ok....i have a form with a RadGrid in it...wich i´m using as a control (ascx2)..called from another page(ascx1).
when i use <UpdatePanel> in ascx1, RadNumericTextBox contents in ascx2, let users imput alphanumeric characters beside numbers..i realized that about 2 seconds later, the RadNumericTextBox clean data leaving numbers only...but i would like to know if is there any way to show warning icon, just like RadNumericTextBox works normally..
here's the code:

ascx1:
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="VB" AutoEventWireup="true" CodeBehind="ReceptionsUserControl.ascx.vb" Inherits="TelerikTests.ReceptionsUserControl" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2010.3.1109.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
             Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
            <asp:UpdatePanel ID="pnl_Receptions" runat="server" >
            <ContentTemplate>
<telerik:RadGrid ID="tlk_Grid" OnNeedDataSource="tlk_Grid_NeedDataSource" AllowSorting="True" PageSize="15"
    AllowPaging="True" runat="server" AutoGenerateColumns="false"  Skin="Sunset" AllowMultiRowSelection="false" >
    <PagerStyle Mode="NextPrevAndNumeric" />
    <MasterTableView Width="100%" DataKeyNames="OrderNumber" >
        <Columns>
            <telerik:GridBoundColumn DataField="OrderNumber" HeaderText="N° Pedido" />
            <telerik:GridBoundColumn DataField="OrderDescription" HeaderText="Descripción" />
            <telerik:GridBoundColumn DataField="WareHouseFrom" HeaderText="Almacén Emisor" />
            <telerik:GridBoundColumn DataField="DeliveredDate" HeaderText="Fecha Entrega" />
            <telerik:GridBoundColumn DataField="OrderSenderfullname" HeaderText="Autorizado Por" />
            <telerik:GridEditCommandColumn HeaderText="Recibir" ButtonType="ImageButton" />
        </Columns>
        <PagerStyle Mode="NextPrevAndNumeric" />
 
  <EditFormSettings EditFormType="WebUserControl" UserControlName="~/_ControlTemplates/CtrlTlkGridDetail.ascx" />
    </MasterTableView>
    <ClientSettings Selecting-AllowRowSelect="true" EnableRowHoverStyle="true" />
</telerik:RadGrid>
</ContentTemplate>
</asp:UpdatePanel>
 
 
ascx2:
<table width="50%" style="position: relative; margin-left: 234px;">
    <tr>
        <td colspan="2" style="text-align: center">
            <telerik:RadGrid ID="tlk_GridDetail" runat="server" Width="100%" AllowFilteringByColumn="True"
                AutoGenerateColumns="false" Skin="Sunset" AllowPaging="true" PageSize="8">
                <MasterTableView CommandItemDisplay="None" AllowFilteringByColumn="false" DataKeyNames="strProductCode"
                    Width="100%" PagerStyle-AlwaysVisible="true">
                    <Columns>
                        <telerik:GridBoundColumn UniqueName="strProductCode" DataField="strProductCode" HeaderText="Cod. Artículo"
                            FilterControlWidth="25%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" />
                        <telerik:GridBoundColumn UniqueName="strProductName" DataField="strProductName" HeaderText="Descripción"
                            FilterControlWidth="25%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" />
                        <telerik:GridNumericColumn UniqueName="dblSentQuantity" DataField="dblSentQuantity"
                            HeaderText="Cant. Solicitada" FilterControlWidth="25%" HeaderStyle-HorizontalAlign="Right"
                            ItemStyle-HorizontalAlign="right" NumericType="Number" DataFormatString="{0:N}"  />
                        <telerik:GridTemplateColumn UniqueName="strReceivedQuantity" HeaderText="Cant. Recibida"
                            ItemStyle-Width="25%" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="right">
                            <ItemTemplate>
                                <telerik:RadNumericTextBox ID="txt_ReceivedQuantity" runat="server" Value='<%# DataBinder.Eval( Container.DataItem, "dblSentQuantity" ) %>'>
                                    </telerik:RadNumericTextBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                    <PagerStyle Mode="NumericPages" />
                </MasterTableView>
                <ClientSettings Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true">
                </ClientSettings>
                 
            </telerik:RadGrid>
        </td>
    </tr>
  <tr>
  <td><br />
  <div class="RadGrid_Sunset" style="width: 100%">
        <table class="RadGrid_WebBlue rgMasterTable" cellspacing="0" style="width: 100%">
            <tr>
                <th class="RadGrid_Sunset rgHeader" colspan="2">
                    Resumen Orden Nro:
                    <label id="lbl_OrderNumber" runat="server"></label>
                </th>
            </tr>
            <tr class="RadGrid_Sunset rgRow">
                <td>
                    Condiciones Higiénicas de la Cava:
                </td>
                <td>
                <asp:DropDownList ID="ddl_WHTrailerConditions" runat="server" Width="62%">
                <asp:ListItem Text="Buena" Value="0"></asp:ListItem>
                <asp:ListItem Text="Regular" Value="1"></asp:ListItem>
                <asp:ListItem Text="Mala" Value="2"></asp:ListItem>
                </asp:DropDownList>                   
                </td>
            </tr>
            <tr class="RadGrid_Sunset rgAltRow" >
                <td>
                    Estado del Termoking
                </td>
                <td>
                   <asp:DropDownList ID="ddl_TermokingSatus" runat="server" Width="62%">
                <asp:ListItem Text="Prendido" Value="0"></asp:ListItem>
                <asp:ListItem Text="Apagado"  Value="1"></asp:ListItem>
                   </asp:DropDownList>
                </td>
            </tr>
             <tr class="RadGrid_Sunset rgAltRow">
                <td>
                   Temp. Registrada en el Termoking:
                </td>
                <td>
                    <telerik:RadNumericTextBox ID="txt_TermokingTemperature" runat="server"  NumericType="Number" EnabledStyle-HorizontalAlign="Right"  />
                    °F
                </td>
            </tr>
             <tr class="RadGrid_Sunset rgAltRow">
                <td>
                   Temp. Registrada en el Producto Recibido:
                </td>
                <td>
                    <telerik:RadNumericTextBox ID="txt_ReceivedProduct" runat="server"  NumericType="Number" EnabledStyle-HorizontalAlign="Right" />
                    °F
                </td>
            </tr>
        </table>
    </div>
  </td>
  </tr>
    <tr>
        <td colspan="2" style="text-align: center"><br />
            <asp:ImageButton ID="btnAceptar" runat="server" CommandName="PerformInsert" ImageUrl="~/_layouts/images/done.png"
                Width="24px" />
                
            <asp:ImageButton ID="btnCancelar" runat="server" CommandName="Cancel" ImageUrl="~/_layouts/images/cancel.png"
                Width="24px" />
        </td>
    </tr>
</table>
THANKSSSSS!!!!

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Melizabeth
Top achievements
Rank 1
Share this question
or