2

i have follwing textbox,

<dx:ASPxTextBox runat="server" ID="txtCustomer"  Native="true"  CssClass="medium required">
                                                    <ValidationSettings RequiredField-IsRequired="true" ></ValidationSettings>
                                                </dx:ASPxTextBox>

when User doesn't enter anything into textbox, inbuilt Required field validation fires. and displays * indicating it is required field but i want to change some css style to AboveTextbox when RequiredField event is fired. i mean i want to perform some task when Inbuilt requiredfield Validation fires. how can i catch or how can i know when Requiredfield validation fires?

Thanks.

1
  • Is it standard ASP.NET markup? It doesn't sound like that. Commented Nov 16, 2011 at 13:24

1 Answer 1

1

Try following:

<dx:ASPxTextBox runat="server" ID="txtCustomer"  Native="true"  CssClass="medium required">
    <ValidationSettings RequiredField-IsRequired="true" ></ValidationSettings>
    <ClientSideEvents Validation="function(s, e) { myFunc(); }" />
</dx:ASPxTextBox>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.