Numeric format

4 posts, 1 answers
  1. Jols
    Jols avatar
    69 posts
    Member since:
    Mar 2009

    Posted 14 Mar 2009 Link to this post

    Hello to all,
     
                    i would like to ask help from you guys who knows more about telerik controls, i'm a novice and i dont how i'm going to work it out, anyway heres my question i tried to use input controls and format to numeric like for example the user must only input a number without decimal point in others word a whole numbers only..(e.g.123445) how i'am going to do that please help

    codes is highly appreciated

    thanks and more power to all of you
  2. Answer
    Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 16 Mar 2009 Link to this post

    Hello Jols,

    Try the following approach:
    <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Type="Number"
        <NumberFormat AllowRounding="true" DecimalDigits="0" GroupSeparator="" /> 
    </telerik:RadNumericTextBox> 

    Online demos:
    RadInput First Look

    Best regards,
    Daniel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Jols
    Jols avatar
    69 posts
    Member since:
    Mar 2009

    Posted 17 Mar 2009 Link to this post

    sir!,
     
           thank you so much for the codes now i can use this on my entire page..

           Sir question again about the grid, coz i have another design here on my page that refer to responses of the user..anyway here is the scenario the header is the name and date and time, below is the response of the person, 

                         John Macalana     Feb 12,2009 1:20;30
                             cannot log in to the system..
                         Richard Bayer       Feb 12,2009 1:25:26
                              I already Check the system i works fine try to log in again
                         John Macalan       Feb 12,2009  1:35:12
                             Thanks Richard i forgot my password

    all response inputed on the page is save directly to the database and reload on grid. how can i do that in grid and how i'm going to design the grid..thanks again sir.
  4. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 20 Mar 2009 Link to this post

    Hello Jols,

    You can use GridTemplateColumn as shown below.
    <telerik:RadGrid ID="RadGrid1" runat="server" Width="400px"
        <MasterTableView AutoGenerateColumns="false"
            <Columns> 
                <telerik:GridTemplateColumn> 
                    <ItemStyle HorizontalAlign="Center" /> 
                    <ItemTemplate> 
                        <%# Eval("UserName") %> 
                        - 
                        <%# Eval("Date") %> 
                        <br /> 
                        <%# Eval("Message") %> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
        </MasterTableView> 
    </telerik:RadGrid> 

    Regards,
    Daniel
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top