If one has a Rad Control in a User Control, is there a way of exposing the client-side evens of the RadControl, as client-side events of the user-control, and then handling these in the page that contains the user control. For instance, let's say I have a tree in a user control. Clicking on certain nodes performs one kind of client-side action (such as navigation), while clicking on others may do something else (like opening rad window dialogs) I can handle the rad tree click event in my container page (ie the page that holds the user control), however this is not a particularly good design, since then the container page must have knowledge of what the various tree nodes are and what should occur if they are clicked. A better design would be such that the tree node click is handled within the user control and then some sort of client-side event is raised within the user control which would be handled within the container page. So, in this scenario, the user control click handler decides which node does what and then raises one of two events... Navigate(sender, eventArgs) or OpenWindow(sender eventArgs). In both cases, the "sender" is the user control. In the first case, the eventArgs would have a property that specifies the url, and likely one that specifies the the target. In the second, the eventArgs would have a propety that specifies the url.
So my basic question is, how would one go about defining these client-side events within the user control that contains the Rad Control?
So my basic question is, how would one go about defining these client-side events within the user control that contains the Rad Control?