title: Problem when attaching a Custom Validator to a control dynamicly
body: <p>Anyone have an idea why this code doesnt work?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function BookDeskValidation(source, arguments) {
          var deskCombo = $find("&lt;%=RadComboBoxDesk.ClientID%&gt;");
          var bookCombo = $find("&lt;%=RadComboBoxBook.ClientID%&gt;");
          if (bookCombo.get_text() != "" &amp;&amp; deskCombo.get_text() == "") {
              arguments.IsValid = false;
          }
          else {
              arguments.IsValid = true;
          }
      }
  
      function AttachValidator(combobox) {
          var validator = document.getElementById("&lt;%= CustomValidatorDeskBook.ClientID %&gt;");
          validator.controltovalidate = combobox.get_id();
          validator.ClientValidationFunction = "BookDeskValidation";
          ValidatorHookupControl(combobox, validator);
      }
  &lt;/script&gt;
  
  &lt;td&gt;Book:&amp;nbsp;&lt;/td&gt;
          &lt;td&gt;
              &lt;telerik:RadComboBox ID="RadComboBoxBook" runat="server" OnClientFocus="AttachValidator"&gt;
              &lt;/telerik:RadComboBox&gt;
          &lt;/td&gt;
  
  &lt;td width="70"&gt;Desk:&amp;nbsp;&lt;/td&gt;
              &lt;td width="100"&gt;
                  &lt;telerik:RadComboBox ID="RadComboBoxDesk" runat="server" OnClientFocus="AttachValidator"&gt;
                  &lt;/telerik:RadComboBox&gt;
              &lt;/td&gt;
  &lt;asp:CustomValidator ID="CustomValidatorDeskBook" runat="server" 
              ErrorMessage="Error" 
              ClientValidationFunction="BookDeskValidation" ForeColor="Red"&gt;*&lt;/asp:CustomValidator&gt;
  </code></pre>
  
  <p>The OnClientFocus is fire but it then the custom validator doesnt seem to be attached because no validation is done when I exit the control on which the validator should be attached.</p>
  
  <p>Thank you!</p>