I noticed that telerik textboxes render as three seperate input controls (two of which are hidden) with variations on the name of the original control. Given the name "yourtextbox", the three resulting controls will be:
yourtextbox
yourtextbox_text
yourtextbox_ClientState
This looks like it is used by Telerik to hold original and new values on the client side to detect whether the contents of a control were changed from their original value by a user, before a postback to the server happens. I suspect that the contents of these various input controls are compared, and when they hold different values it is deemed the contents of a control were indeed changed.
Is there a Telerik JQuery method I can call in javascript on the client side that uses these fields to determine whether a control was actually changed by a user BEFORE a postback is done? I want to display a confirm save dialog to the user should they try to move away from a page that they changed prior to saving it. To do this, I currently pass an attribute on each control that has the original loaded value, so I can compare it to what the control holds at the time the user moves off the page. But, I would prefer to use a native Telerik method that does this should one exist.
Andy
yourtextbox
yourtextbox_text
yourtextbox_ClientState
This looks like it is used by Telerik to hold original and new values on the client side to detect whether the contents of a control were changed from their original value by a user, before a postback to the server happens. I suspect that the contents of these various input controls are compared, and when they hold different values it is deemed the contents of a control were indeed changed.
Is there a Telerik JQuery method I can call in javascript on the client side that uses these fields to determine whether a control was actually changed by a user BEFORE a postback is done? I want to display a confirm save dialog to the user should they try to move away from a page that they changed prior to saving it. To do this, I currently pass an attribute on each control that has the original loaded value, so I can compare it to what the control holds at the time the user moves off the page. But, I would prefer to use a native Telerik method that does this should one exist.
Andy