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

Check CausesValidation in Javascript

1 Answer 220 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Paul Mc
Top achievements
Rank 1
Paul Mc asked on 13 Nov 2009, 04:00 PM
Hi

We have a javascipt function that is fired OnClientButtonClicked of a toolbar.  Some of the buttons on the toolbar have cause validation enabled while others don't.  Is there an easy way within the JS function to determine if the button clicked has CauseValidation set to false.

Thanks in advance.

Paul

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 Nov 2009, 11:46 AM
Hi Paul,

You should use get_causesValidation() method of the client-side RadToolBar button object like this:

<script type="text/javascript">
    function buttonClicked(sender, args) {   
        var causesValidation = args.get_item().get_causesValidation();
    }
</script>

Kind regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ToolBar
Asked by
Paul Mc
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or