change textbox value

6 posts, 0 answers
  1. Saira
    Saira avatar
    24 posts
    Member since:
    Feb 2013

    Posted 04 Jul 2013 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Jul 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Saira
    Saira avatar
    24 posts
    Member since:
    Feb 2013

    Posted 04 Jul 2013 Link to this post

    Thanks.

    Also how can I display dollar in that? I use this to deal with currency.
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Jul 2013 Link to this post

    Hi

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

    Thanks,
    Shinu.
  6. Saira
    Saira avatar
    24 posts
    Member since:
    Feb 2013

    Posted 23 Jul 2013 Link to this post

    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?
  7. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Jul 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017