Hi Friends,
I was designed new form for one of the functionality and while opening the form i suppose to set the properties of form controls. For this i used the following line code.
1. Set the Auto Declaration property to true for that form control.
2. In the general methods of the form override the init() method.
3. In Init method after super() i used the following code line to set the properties
element.control(control::ControlName).enabled(false);
E.g. element.control(control::ToDate).enabled(false);
4. While writing this line of code you will not get any intellisense after Control::
You have to just type your control name and compile the method and it's done.
Hope this will help anyone.
Kiss'shor.. :)