I'm using the Q3 2009 Telerik controls (2009.3.9.1203) and have a scenario where I populate a RadDock initially and allow the user to add/remove additional DocumentWindows. When the user closes a DocumentWindow through the 'X' next to each tab (the button added to the title by setting ShowDocumentCloseButton to true), I'd like a prompt to come up to warn the user that they'd lose their data. However, the application at points removes and adds DocumentWindows to the same RadDock, and I don't want the prompt to appear in those scenarios.
Right now I am hooked into the DockWindowClosing event. Through debugging I haven't found any information in the sender or event args that specify where the event was called from. In this case, when the program has to programmatically remove forms the user gets the prompt I created. I figure the best way to go about this is to ditch using the DockWindowClosing event, and try to hook into the Click event of that DocumentCloseButton.
Is this at all possible? Is there another way to achieve what I'd like to do?
Right now I am hooked into the DockWindowClosing event. Through debugging I haven't found any information in the sender or event args that specify where the event was called from. In this case, when the program has to programmatically remove forms the user gets the prompt I created. I figure the best way to go about this is to ditch using the DockWindowClosing event, and try to hook into the Click event of that DocumentCloseButton.
Is this at all possible? Is there another way to achieve what I'd like to do?