Hi,
I am using combobox with checkbox for multiple selection. I am showing the selected text on checkbox selection and saving the selections next time that will be auto select. this is working fine in IE7,IE8 and mozila. But not working in Chrome. It showing error that "Uncaught TypeError: Cannot call method 'set_text' of null".
The code is as below when i am showing the selected text on the basis of previous selection
javascript:setTimeout("$(document).ready(function() { SetHeaderComboText('ucSearchBuilder_grdFilter_ctl00_ctl06_ddlFilterHeaderwithTreeView','Conflict Resolution');});",100);
Although i had tried $(document).ready() but it also not works with chrome.
comboIds is redcombobox id and values are text to be display in radcomdobox
I am using combobox with checkbox for multiple selection. I am showing the selected text on checkbox selection and saving the selections next time that will be auto select. this is working fine in IE7,IE8 and mozila. But not working in Chrome. It showing error that "Uncaught TypeError: Cannot call method 'set_text' of null".
The code is as below when i am showing the selected text on the basis of previous selection
javascript:setTimeout("$(document).ready(function() { SetHeaderComboText('ucSearchBuilder_grdFilter_ctl00_ctl06_ddlFilterHeaderwithTreeView','Conflict Resolution');});",100);
Although i had tried $(document).ready() but it also not works with chrome.
comboIds is redcombobox id and values are text to be display in radcomdobox
function SetHeaderComboText(comboIds, values) {
var arrcomboId = comboIds.toString().split('<');
var arrvalue = values.toString().split('<');
for (var j = 0; j < arrcomboId.length; j++) {
var comboId = arrcomboId[j];
var text = arrvalue[j];
var comboBox = $find(comboId);
//set the text of combobox
if (text.length > 0) {
//set the text of the combobox
comboBox.set_text(text);
}
else {
//all checkboxes are unchecked so reset the controls
comboBox.set_text("");
}
}
}