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

[Solved] After export to Excel - filter column stops working

2 Answers 151 Views
Grid
This is a migrated thread and some comments may be shown as answers.
MW
Top achievements
Rank 1
MW asked on 24 Apr 2009, 10:24 AM
I have a RadGrid with 2 custom filter columns. After export to excel the filter columns stop working.

The server side events still work (can still filter the grid by typing into the combobox of the filter column) but the client side events don't work (combobox doesn't drop down).

Thanks

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 24 Apr 2009, 11:56 AM
Hello Morna,

I have no idea what may be causing this weird behavior. Is there an easy way to reproduce your scenario? As an alternative you could attach a demo project which illustrates the problem. This way we will be able to provide more to-the-point answer.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
MW
Top achievements
Rank 1
answered on 24 Apr 2009, 01:08 PM
Hi Daniel,

After another search I found a workaround using http://www.telerik.com/support/kb/aspnet-ajax/grid/filtering-menu-fails-to-display-after-export-from-ajaxified-grid.aspx and set the clientId to the DropDown in my filter column instead of Grid.FilterMenu.ClientID. 

            string script = string.Format(@"
            Sys.Application.add_load(function(){{
              $find(""{0}"").setIsInPostBack = function(isInPostBack)
              {{
              }};
             }});", clientId);
            ScriptManager.RegisterStartupScript(this, GetType(), this.ClientID + "_setIsInPostBack", script, true);

Thanks

Tags
Grid
Asked by
MW
Top achievements
Rank 1
Answers by
Daniel
Telerik team
MW
Top achievements
Rank 1
Share this question
or