Dear All,
Problem Statement - I have a popup window, in which I will search and select one item(internally I have two values). On click of a button I need this text to go to parent page and get inserted into a RADCombobox. If that Item is present, the Item will get selected else a new RADCombobox item needs to be created.
Solution - Once I select one item and click button, I am calling a Javascript function in the parent page as below.
Problem Statement - I have a popup window, in which I will search and select one item(internally I have two values). On click of a button I need this text to go to parent page and get inserted into a RADCombobox. If that Item is present, the Item will get selected else a new RADCombobox item needs to be created.
Solution - Once I select one item and click button, I am calling a Javascript function in the parent page as below.
self.opener.AddSelectedOilGrade(selValue,selText);
In the parent page I am trying to find the item existing or not and then selecting this item. Below is the code.var
combo = $find("<%= cboOilinUse.ClientID %>");
var item = combo.findItemByText(strText);
if(item)
{item.select();}
else
{
var comboItem = new Telerik.Web.UI.RadComboBoxItem();
comboItem.set_text(strText);
comboItem.set_value(strValue);
comboItem.select();}
I have refered to the example given in the below URL.
http://www.telerik.com/help/aspnet-ajax/combo_clientsidebasics.html
But this is returning NULL(var comboItem = new Telerik.Web.UI.RadComboBoxItem();).
Please let me know if anything is going wrong.