This is a migrated thread and some comments may be shown as answers.

DOM default values

2 Answers 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joey
Top achievements
Rank 1
Joey asked on 19 Aug 2008, 08:13 PM
All form HTML elements implement a DOM property to allow a form's reset to function. In JavaScript I can access these as follows:

obj.defaultChecked
obj.defaultValue
obj.defaultSelected

What is the DOM equivalent for the Telerik controls on the client side?

I need to be able to determine if any of the controls on my page have changed from their default value and prompt the user to save them when they attempt to navigate away from the page. I'm using both versions 1.7.2.0 & 2008.2.723.20

2 Answers, 1 is accepted

Sort by
0
Joey
Top achievements
Rank 1
answered on 19 Aug 2008, 10:09 PM
For 1.7.2.0 I think I found what I was looking for, please let me know if there is another preferred method.

var combo = <%= RadComboBox1.ClientID %>;

alert(combo.ValueHidden.defaultValue);

0
Daniel
Telerik team
answered on 20 Aug 2008, 10:51 AM
Hello Joey,

These help articles would be very helpful:

RadComboBox for ASP.NET AJAX: RadComboBox object
RadComboBox for ASP.NET: RadComboBox client object model

Kind Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Joey
Top achievements
Rank 1
Answers by
Joey
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or