Welcome Guest Search | Active Topics | Sign In | Register

How to use RequiredFieldValidator1 with ToolBar1 Options
Mohammed
Posted: Friday, February 8, 2013 7:40:26 AM
Rank: Member
Groups: Member

Joined: 9/4/2012
Posts: 10
Hello
Can anyone help me
i want to use RequiredFieldValidator1 with ToolBar1 in items not all control

For example:

item New : Do not scan or check the text box // do not Required Field Validator
item Save : scan or check the text box // Required Field Validator


note:
ToolBar CausesValidation = true

Required Field Validator all items
I do not want only one item Required Field Validator
Mohammed
Posted: Friday, February 15, 2013 11:09:43 AM
Rank: Member
Groups: Member

Joined: 9/4/2012
Posts: 10
up
eo_support
Posted: Friday, February 15, 2013 12:24:25 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

There is no built-in way for you to do that. Once you set CauseValidation to true, all toolbar items will perform validations. If you only want to validate one item, you can handle the ToolBar's ClientSideOnItemClick event, then perform your own validation logic inside the event handler with JavaScript.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.