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.
Public Sub OpenDocument(ByVal sAttachmentPath As String) Dim sAttachmentExt As String Response.Clear() Response.ClearHeaders() Response.ClearContent() sAttachmentExt = sAttachmentPath.Substring(sAttachmentPath.LastIndexOf(CChar("."))) Try Select Case sAttachmentExt Case ".doc" Response.ContentType = "application/msword" Case ".docx" Response.ContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document" Case ".xls" Response.ContentType = "application/vnd.ms-excel" Case ".xlsx" Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" Case ".ppt" Response.ContentType = "application/vnd.ms-powerpoint" Case ".pptx" Response.ContentType = "application/vnd.openxmlformats-officedocument.presentationml.presentation" Case ".pdf" Response.ContentType = "application/pdf" Case ".html" Response.ContentType = "application/html" Case ".txt" Response.ContentType = "application/plain" Case ".zip" Response.ContentType = "application/zip" Case ".rar" Response.ContentType = "application/rar" Case ".gif" Response.ContentType = "application/gif" Case ".jpg" Response.ContentType = "application/jpeg" Case ".png" Response.ContentType = "application/png" Case ".swf" Response.ContentType = "application/x-shockwave-flash" Case ".mpeg" Response.ContentType = "application/mpeg" Case ".avi" Response.ContentType = "application/x-msvideo" Case Else Response.ContentType = "application/plain" End Select Response.AddHeader("Content-Disposition", "attachment;filename=" & sAttachmentPath)
Dim sourcefile As FileStream = New FileStream(sAttachmentPath, FileMode.Open) Dim FileSize As Integer FileSize = sourcefile.Length Dim getContent() As Byte = New Byte(FileSize - 1) {} sourcefile.Read(getContent, 0, CInt(sourcefile.Length)) sourcefile.Close() Response.BinaryWrite(getContent) Response.Flush() Catch ex As Exception Throw ex Finally Response.End() End TryEnd Sub<telerik:RadComboBox ID="radcomboboxRealEstateManager" runat="server" CssClass="mainFormInput" Skin="Telerik" Width="220px" DataTextField="Name" DataValueField="UserID" Font-Names="Calibri, Arial, sans-serif">