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

change textbox value

5 Answers 31 Views
Input
This is a migrated thread and some comments may be shown as answers.
Saira
Top achievements
Rank 1
Saira asked on 04 Jul 2013, 09:10 AM
Hi

I got a radnumerictextbox with the arrows to change values. I want to increase and decrease valu by 5 on click and scroll.

Thanks
Saira

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 04 Jul 2013, 10:00 AM
Hi

Please have a look at the following mark-up.

ASPX:
<telerik:RadNumericTextBox runat="server" ID="RadNumericTextBox1" Label="Enter Value : "
    ShowSpinButtons="true">
    <IncrementSettings InterceptArrowKeys="true" InterceptMouseWheel="true" Step="5" />
</telerik:RadNumericTextBox>

Thanks,
Shinu.
0
Saira
Top achievements
Rank 1
answered on 05 Jul 2013, 03:22 AM
Thanks.

Also how can I display dollar in that? I use this to deal with currency.
0
Shinu
Top achievements
Rank 1
answered on 05 Jul 2013, 03:55 AM
Hi

Try setting the RadNumericTextBox's Type to Currency as well as Culture to en-US.

Thanks,
Shinu.
0
Saira
Top achievements
Rank 1
answered on 23 Jul 2013, 08:15 AM
Hi shinu

I have enabled the textbox button by setting showbutton to true and it displays a weird back arrow button. Can I place my own button there?
0
Shinu
Top achievements
Rank 1
answered on 23 Jul 2013, 09:28 AM
Hi

I guess you need to add a custom image for the button. Please have a look at the following code I tried.

ASPX:
<telerik:RadTextBox ID="RadTextBox1" runat="server" ShowButton="true" ButtonCssClass="button-style">
</telerik:RadTextBox>

CSS:
<style type="text/css">
    .button-style
    {
        background: url('../Images/1.jpg') 0 0 no-repeat !important;
    }
</style>

Thanks,
Shinu.
Tags
Input
Asked by
Saira
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Saira
Top achievements
Rank 1
Share this question
or