Jun 21, 2012, 12:06 PM
Custom Control
Hi,
I am busy evaluating the use of these controls for a project
and I need to subclass the basic control types (textbox), (combobox), (grid) to implement a common set of methods (getServerValue(), getValue()) against all controls, these will be direct methods that will be invoke through a client side event (ie lost of focus, pressing enter etc)
My questions are:
1. How to i subclass such that I can implement the methods as a interface (can i write an interface with the [directmethod] tag and make sure all controls utlize that interface, or do i need to write each method separately in each subclass
2. Does direct methods which are static give you access to anthing housed by the control
3. How would I implement some of these methods in the client side code ?
Thanks
Mac
I am busy evaluating the use of these controls for a project
and I need to subclass the basic control types (textbox), (combobox), (grid) to implement a common set of methods (getServerValue(), getValue()) against all controls, these will be direct methods that will be invoke through a client side event (ie lost of focus, pressing enter etc)
My questions are:
1. How to i subclass such that I can implement the methods as a interface (can i write an interface with the [directmethod] tag and make sure all controls utlize that interface, or do i need to write each method separately in each subclass
2. Does direct methods which are static give you access to anthing housed by the control
3. How would I implement some of these methods in the client side code ?
Thanks
Mac