Reputation: 13
I want to change my XAF form control's events. I have tried some methods but they didn't work, for example:
<script type="text/javascript" language="javascript">
window.onload = function () {
var input = document.getElementsByName("v4$MainLayoutEdit$xaf_l33$xaf_dviMiddleName_Edit");
input.onclick = function () {
alert('h fjkdsfjsd fsd kldfsjk fjdsk fjsdj');
}
};
</script>
Upvotes: 0
Views: 1934
Reputation: 11326
You should add a ViewController or a WindowController to the web module of your XAF solution.
For some examples of similar issues, check out these issues and examples.
http://www.devexpress.com/Support/Center/Question/Details/Q309356 http://www.devexpress.com/Support/Center/Question/Details/Q306205 http://www.devexpress.com/Support/Center/Question/Details/Q325769
Here is a full-blown sample project: How to highlight the focused editor in DetailView
http://www.devexpress.com/Support/Center/Example/Details/E2106
As always with DevExpress controls, the best place to ask is the Support Center.
Upvotes: 1