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

Numeric format

3 Answers 97 Views
Input
This is a migrated thread and some comments may be shown as answers.
Jols
Top achievements
Rank 2
Jols asked on 14 Mar 2009, 06:11 AM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 16 Mar 2009, 07:23 AM
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.
0
Jols
Top achievements
Rank 2
answered on 17 Mar 2009, 06:36 AM
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.
0
Daniel
Telerik team
answered on 20 Mar 2009, 01:59 PM
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.
Tags
Input
Asked by
Jols
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Jols
Top achievements
Rank 2
Share this question
or