This is a migrated thread and some comments may be shown as answers.

RadCombobox stops working after a download file from the same page

4 Answers 102 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 01 Jul 2008, 02:01 AM
Hi,

I have a page with 3 different RadComboBoxes.  1 is load on demand.  1 is loaded with treeview.  1 is multi-columns.  Also in the page, I have 2 buttons.  1 button is used to do a ASP AJAX call.  Another button is used to make a page postback to generate a report and display a window popup for download.  This report is either in PDF or Excel format.  However, once I clicked on the postback button.  All 3 comboboxes doesn't work anymore.  I just used a simple Page.Response.Write to write out the file.  Does anyone has experience this problem?

Chris

4 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 01 Jul 2008, 07:07 AM
Hello Chris,

This problem is resolved in our latest official build 2008.1.619. Please download it from your account and try it.

If this does not helps you,please open a support ticket and send us sample running project to test it locally.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris
Top achievements
Rank 1
answered on 01 Jul 2008, 03:57 PM
Hi Rosi,

Thanks for the solution.  It works in the latest dll.  However, I need sometimes to do regression test in our environment.  Meanwhile, are there any work around for this issue?  such as how can I refresh the page or redirect the page to resolve the unopen combobox?

Chris
0
Rosi
Telerik team
answered on 02 Jul 2008, 06:51 AM
Hi Chris,

If you use version earlier than 2008.1.515 you can use the following workaround:

1.Modify the definition of the buttons which export files and attach them to OnClientClick event like this:
<asp:ImageButton ID="ImgExportToExcel" runat="server" OnClick="ImgExportToExcel_Click"   
Style="margin-left: 6px; margin-right: 3px;" ImageUrl="~/Global/Images/icons/icon_excel_16.gif"   
ImageAlign="AbsMiddle" meta:resourcekey="ImgExportToExcel" OnClientClick="javascript:return Test();"   /> 
 
<script type="text/javascript">   
function Test()   
{   
        document.location.href="ReviewContactNames.aspx?stream=ImgExportToExcel_Click";   
        return false;   
}   
</script> 


2.Move the code exporting files from the button's click event handler to the page_load event handler :
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)  
    If Request.QueryString("stream") = "ImgExportToExcel_Click" Then  
          GridOccupancies.ExportSettings.ExportOnlyData = True 
        GridOccupancies.MasterTableView.ExportToExcel()
    End If  
End Sub 

If you use version 2008.1.515 you can use the first workaround on the following:
1.Add a script reference to the ScriptManager
    <asp:ScriptManager ID="ScriptManager1" runat="server">  
            <Scripts> 
                <asp:ScriptReference Path="InitScript.js" /> 
            </Scripts> 
        </asp:ScriptManager> 

2.Override setIsInPostBack method of RadComboBox in the following way:
InitScript.js
// Hook up Application event handlers.       
var app = Sys.Application;       
app.add_init(ApplicationInit);       
        
function ApplicationInit(sender) {       
Telerik.Web.UI.RadComboBox.prototype.setIsInPostBack = function(isInPostBack)    
{    
}    

Hope this helps.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris
Top achievements
Rank 1
answered on 02 Jul 2008, 01:45 PM
Hi Rosi,

Thanks for the details workaround.  It seems to be working.  Appreciate it.

Chris
Tags
ComboBox
Asked by
Chris
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Chris
Top achievements
Rank 1
Share this question
or