Consider the following javascript (inside schedulerFormCreated function for advanced form example):
This works GREAT for the one dropdown box on the page, but NO MATTER WHAT I try to get access to the textboxes on there - I get null. I have even firebugged the id's and tried direct references - nothing. Also - attempted to add regular ASP:RequiredFieldValidators in the ascx as those that exist in the sample. This is great, until they validate and the control comes back blank with left pointing arrows in the date picker boxes. I have looked at every example I can find via search and don't seem to see anywhere that simple client-side validation can be done with this.
$telerik.$(".rsAdvResourceValue").each(function(i) { |
if (this.id.match("cboPrimaryClient") != null) |
priCliCbo = this.id; |
}); |
if (priCliCbo != null) { |
priCliCboBox = $find(priCliCbo); |
$telerik.$(".rsAdvEditSave").bind("click", function(e) { |
priCliCboBox = $find(priCliCbo); |
if (priCliCboBox.get_selectedItem() == null) { |
alert("Please select a Primary Client"); |
return false; |
} |
if (priCliCboBox.get_selectedItem().get_text() == "") { |
alert("Please select a Primary Client"); |
return false; |
} |
This works GREAT for the one dropdown box on the page, but NO MATTER WHAT I try to get access to the textboxes on there - I get null. I have even firebugged the id's and tried direct references - nothing. Also - attempted to add regular ASP:RequiredFieldValidators in the ascx as those that exist in the sample. This is great, until they validate and the control comes back blank with left pointing arrows in the date picker boxes. I have looked at every example I can find via search and don't seem to see anywhere that simple client-side validation can be done with this.