The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientSpinEdit.NumberChanged Event

Occurs on the client side when the editor's value is altered in any way.

Declaration

NumberChanged: ASPxClientEvent<ASPxClientProcessingModeEventHandler<ASPxClientSpinEdit>>

Event Data

The NumberChanged event handler receives an argument of the ASPxClientProcessingModeEventArgs type. The following properties provide information specific to this event.

Property Description
processOnServer Gets or sets a value that specifies whether the event should be finally processed on the server side.

Remarks

The NumberChanged event occurs whenever the editor's value is changed in code, by an end user typing in a new value, or by clicking any spin button.

Note

When an end user types in the editor's text box, the editor value is not changed (and the NumberChanged event is not raised) until the value is confirmed by pressing the ENTER key, or by moving focus out of the editor.

Examples

The example below demonstrates how to calculate a summary in the CategoryID column based on the value in the ASPxSpinEdit residing below. Here is how the project works:1) A custom callback is sent to the server within the editor's client side NumberChanged event handler.2) Handle the SummaryDisplayText event to calculate the required summary value and set the e.Text parameter.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ASPxCardView1_SummaryDisplayText(object sender, DevExpress.Web.ASPxCardViewSummaryDisplayTextEventArgs e)
    {
        if (e.Item.FieldName == "CategoryID")
            e.Text = string.Format("Sum = {0}", Convert.ToDouble(e.Value) * Convert.ToDouble(ASPxSpinEdit1.Value));
    }
}
See Also