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

Get the "EmptyMessage" value from a different control from Javascript function

1 Answer 24 Views
Input
This is a migrated thread and some comments may be shown as answers.
Alessio
Top achievements
Rank 1
Alessio asked on 31 May 2012, 08:09 AM
Hello to everyone, 

I can get the EmptyMessage from the sender by sender.get_emptyMessage() method, but if I want to get the emptyMessage of a different control , how can I do?

Thanks for your tips.

Alessio Simoni.


Example:
function getEmptyTextOfCtrl2 (sender, eventArgs) {
var emptyMessage_ctrl1 = sender.get_emptyMessage();
var emptyMessage_ctrl2 = ????
        }
 
<telerik:RadNumericTextBox ID="ctrl1"  runat="server" EmptyMessage="654321"  >
 <ClientEvents OnValueChanging="getEmptyTextOfCtrl2"  />
            </telerik:RadNumericTextBox>
 
<telerik:RadNumericTextBox ID="ctrl2"  runat="server" EmptyMessage="123456" >
            </telerik:RadNumericTextBox>

1 Answer, 1 is accepted

Sort by
0
Alessio
Top achievements
Rank 1
answered on 31 May 2012, 08:38 AM
I find the solution

$find(ID).get_emptyMessage().

Thank you.
Tags
Input
Asked by
Alessio
Top achievements
Rank 1
Answers by
Alessio
Top achievements
Rank 1
Share this question
or