jQuery Validation Engine and RadComboBox - telerik

I am using the jQuery Validation Engine with the Telerik`s RadComboBox and it is not working. Works perfect with asp:TextBox. Did someone use the engine with RadComboBox?
MyRadComboBox
WebMethod

Related

using client side validation with telerik controls

Can you use client side validation with telerik controls? The examples show validation using standard html input controls. I have forms with RadTextBoxes, RadComboboxes etc and would like to add validation.
You can access the Telerik client-side api by using
var ctrl = $find('<%= txtSomeTextBox.ClientID %>');
then you can get the current value of the textbox by calling the .get_value() function. Use your browser's debug tool to see which methods are available in the object that is returned or consult Telerik's help site.
Go to Telerik's online demos: http://demos.telerik.com/aspnet-ajax/input/examples/common/validation/defaultcs.aspx and you will find examples for almost anything. This one shows how to use the built-in client-side validation with the RadControls for ASP.NET AJAX.

MVC 3. Update jquery.validate. Client-side validation is not working

mvc 3 after updating jquery.validate-1.8 to jquery.validate-1.11 client-side validation is not working.
use:
jquery-1.9.1.min.js
jquery-ui-1.10.2.custom.js
jquery.validate.js (jquery.validate-1.11)
jquery.validate.unobtrusive.js (Microsoft jQuery Unobtrusive
Validation 2.0.30116.0)
jquery.unobtrusive-ajax.min.js
(Microsoft jQuery Unobtrusive Ajax 2.0.30116.0)
client-side validation is working for following libraries:
use:
jquery-1.9.1.min.js
jquery-ui-1.10.2.custom.js
jquery.validate.js (jquery.validate-1.8)
jquery.validate.unobtrusive.js (Microsoft jQuery Unobtrusive Validation 2.0.30116.0)
jquery.unobtrusive-ajax.min.js (Microsoft jQuery Unobtrusive Ajax
2.0.30116.0)
How do I upgrade?
Thanks.
I use jquery ui autocomplete combobox which hid the tag select.
by default in 1.8 is not to ignore the hidden fields.
older versions be ignored.
To solve the problem, use:
$.validator.setDefaults({
ignore: []
});

Validating form using jquery Ajax MVC

Up to this point, I’ve been using Microsoft Ajax for updates in my MVC app. I’m now switching to jQuery Ajax in order to standardize my approach.
However, I just realized that the required field in my model for the form did not fire and the user was able to submit the form even though some required fields were left blank.
What is the standard way to handle required fields if I’m handling my ajax functions using jQuery – i.e. I want the unobtrusive to handle my required fields by highlighting them and not allow the submit button to be clicked.
Also, to mention I am getting data-val attributes through the model.
P.S. I’m now using an event handler to detect click event on submit button for the form. In other words, I’m not using #using.Ajax.BeginForm to define my form.

Telerik MVC Chart: How to change databinding mode at client side using javascript?

I have a telerik MVC barchart that uses serverside binding during startup for performance purpose. Afer the page is loaded. I want to change the databinding to AJAX, so the chart can update itself responding to other events. Can the databinding mode be updated using javascript
You could pass the values you want to initially load to the Chart constructor and also define an ajax binding and select method. After that once the page is loaded you can refresh the Chart with the following code
<code>
$('#chartID').data().tChart.rebind()
</code>

Telerik MVC: Loading Grid with ajax request don't work

I have a Telerik MVC Tabstrip.
I have used:
.LoadContentFrom("Grid", "Orders");
"Grid" Action just returns view without model. Then the Ajax request should have been fired to get the data.
It is loading the grid normally but it is not calling the Ajax request to fill the data.
If I am calling the same action normally i.e. without ajax it displays grid and fires Ajax request to load the data.
Perhaps you've missed to register the required JavaScript files for the Grid. You can check the following help topics:
Loading components in tab content
Required JavaScript files
Check the sample available at here.
This one uses MVC 1.0 but can be surely converted to MVC 2.0

Resources