I've seen this topic raised a couple times in various ways but the solution never seems to relate to what I'm doing. I have a simple master page and content pages. The menu is in the master page. The OnItemCreated event is registered and there is a handler in the master page code behind. The event doesn't fire. The overall goal is to have the menu on the master page drive the pages that get loaded for content, as well as having some of the pages determine which menu options are available depending on login status and other factors.
I want ItemCreated to fire because I have NavigateURL set in the markup and want to use the technique of moving those properties into Attributes (at ItemCreated time) so that other events fire and I can manage what happens at runtime. Is there a better place to do this? Note that I'm not binding to a data source for the menu data - everything is hardcoded for now.
(Blowing some steam here)
Why can't controls just fire and properties just hold data? Why is it that "this event doesn't fire when that property is set" or "that event doesn't fire when the control is on this kind of page" or "move the property to an attribute if you want it to do this"? Clients are asking me why it takes a couple hours to just get something to click on a page when to them "it's just a button". It's because every control I touch has its own personality, its own set of undocumented rules, its own forums to search through. This is exactly why anti-Microsoft antagonists say ASP.NET takes hours to write something that takes minutes elsewhere. My response to that is to simply look at the functionality you don't get outside of ASP.NET, and to look at all of the scripting and CSS and code you need to write, even with jQuery or similar libraries, just to get close what's built-in to ASP.NET and Telerik controls. After all of the chest-thumping on both sides, the net result is still that we have to go through contortions just to make simple things happen on a screen.
It would be great to see documentation on why things don't work with these controls, as well as how to make them work - an organized collection of the answers we see in these forums every day. That would save hours of research every week, if not every day.
OK, I'm done. Thank you for your indulgence. ;)
I want ItemCreated to fire because I have NavigateURL set in the markup and want to use the technique of moving those properties into Attributes (at ItemCreated time) so that other events fire and I can manage what happens at runtime. Is there a better place to do this? Note that I'm not binding to a data source for the menu data - everything is hardcoded for now.
(Blowing some steam here)
Why can't controls just fire and properties just hold data? Why is it that "this event doesn't fire when that property is set" or "that event doesn't fire when the control is on this kind of page" or "move the property to an attribute if you want it to do this"? Clients are asking me why it takes a couple hours to just get something to click on a page when to them "it's just a button". It's because every control I touch has its own personality, its own set of undocumented rules, its own forums to search through. This is exactly why anti-Microsoft antagonists say ASP.NET takes hours to write something that takes minutes elsewhere. My response to that is to simply look at the functionality you don't get outside of ASP.NET, and to look at all of the scripting and CSS and code you need to write, even with jQuery or similar libraries, just to get close what's built-in to ASP.NET and Telerik controls. After all of the chest-thumping on both sides, the net result is still that we have to go through contortions just to make simple things happen on a screen.
It would be great to see documentation on why things don't work with these controls, as well as how to make them work - an organized collection of the answers we see in these forums every day. That would save hours of research every week, if not every day.
OK, I'm done. Thank you for your indulgence. ;)