Hello,
var combo = <%= RadComboBox1.ClientID %>;
var userControlId = '<%= ID %>';
var selectionSetUrl = "../SelectionSets/NetworkSet.aspx";
var selectionSetType = '<%= Fox.Fbc.Rds.RdsWeb.Interfaces.SelectionSetTypeCode.NET.ToString() %>';
EditSelectionSetInModalDialogHelper(selectionSetUrl, selectionSetType, userControlId, combo.GetText());
According to the documentation GetText is supposed to be replaced with get_text. So, I replace the last line with this one:
EditSelectionSetInModalDialogHelper(selectionSetUrl, selectionSetType, userControlId, combo.get_text());
And still get the same error.
Please help.
Thanks,
Olga
Hi,
I am trying to hide and show RadComboBox.
But this code doesn't seem to be working. I checked in IE and FireFox. Thank you.
$.ajax({
url: applicationPath + "/test/Test.svc/GetResultById",
type: "POST",
dataType: "json",
data: '{"sId":' + sender.get_value() + '}',
contentType: "application/json; charset=utf-8",
success: function(result)
{
var combo = "<%= RadComboBox1.ClientID %>");
if(result.d == false)
{
combo.hideDropDown();
}
else
{
combo.showDropDown();
}
}
in my button click event i have:
StringBuilder strTXTFileBuilder =
new
StringBuilder();
Response.Clear();
Response.AddHeader(
"content-disposition"
,
"attachment;filename="
ExportResult.txt");
Response.Charset =
""
;
Response.ContentType =
"application/vnd.text"
;
StringWriter stringWrite =
new
StringWriter();
HtmlTextWriter htmlWrite =
new
HtmlTextWriter(stringWrite);
Response.Write(strTXTFileBuilder.ToString());
Response.End();
Hi,
I am trying to hide and show RadComboBox. I am using .hideDropDown() but it doesn't work. What could be an issue?
$.ajax({
url: applicationPath + "/test/Test.svc/GetResultById",
type: "POST",
dataType: "json",
data: '{"sId":' + sender.get_value() + '}',
contentType: "application/json; charset=utf-8",
success: function(result)
{
if(result.d == false)
{
var combo = "<%= RadComboBox1.ClientID %>");
combo.hideDropdown();
}
}
I have a user control that I use for editing / inserting records for the radgrid. Within that user control there is a radcombobox. But, when I try to retrieve the selectedvalue like so: locationTypeCode = rcmLocationType.SelectedValue, it returns null. Why is that? the next line below is retrieving the value from a radtextbox like locationName = rtbLocationName.Text, which works fine. so, is there a bug with the combobox? I CAN retrieve the selected TEXT like this: rcmLocationType.Text, but I do not want the text, I want the selected value. So what is the workaround or code to access the selected value in the combobox?
thanks.