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

2 posts, 0 answers
  1. Alessio
    Alessio avatar
    4 posts
    Member since:
    Apr 2009

    Posted 31 May 2012 Link to this post

    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>
  2. Alessio
    Alessio avatar
    4 posts
    Member since:
    Apr 2009

    Posted 31 May 2012 Link to this post

    I find the solution

    $find(ID).get_emptyMessage().

    Thank you.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top