using JQUERY:
function getData()
{
var items= $('#dropdownlistName).data('tDropDownList').data;
// items is the items list
// items can be dealt as an array
// then we can get the text and the value of each item as following:
var text = items[0].Text;
var value = items[0].Value;
Note :
you have to read " $(
'#dropdownlistName) " after document.read() function as we have to wait for the Telerik JQuery library to be loaded.it is preferred to be read pageLoad function of the Microsoft.Ajax libraryfunction pageLoad(){ getData()}or at any event handler javascript function
No comments:
Post a Comment