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

RadGrid filter bug using iframe on IE 8

4 Answers 185 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gunnar
Top achievements
Rank 1
Gunnar asked on 09 Jan 2013, 04:35 PM
Hi

I have a really specific problem and have already tried to search for a similar problem online. Any help would be most welcome.

I have setup a simple ASP.NET webpage with a RadGrid, a filter TextBox, a Submit button and a Clear Filter button. The data loads up and I can filter the RadGrid using the TextBox without problems. Now I make another webpage that has an iframe tag that points to the former RadGrid page. Everything works fine except on IE 8 (IE 10 works fine, haven't tried IE 9) browser.

What happens is this:
  1. I load up the webpage, the RadGrid is filled with data.
  2. I input some filter in the TextBox and press Submit.
  3. Instead of filtering the search in the RadGrid, all rows in the RadGrid disappears. Clicking on Clear Filter button doesn't bring up the data again as it should normally do. No visable error.
  4. I refresh the page and now the Filter search and Clear Filter work as expected and as often as needed.
  5. If I close IE 8 and open it up again I'm back at step no 1.
Just to note, if I don't use iframe and open the webpage normally, this behavior in IE 8 doesn't pop up.

I can post the code on how I filter the RadGrid, but i just thought that anybody knew of some Telerik vs IE 8 issue that could explained this behavior.

Regards.
Gunnar 

4 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 14 Jan 2013, 11:08 AM
Hi Gunnar,

I am sorry to say but this is an unknown issue to us. I tried reproducing the problem in a sample project but to no avail. Could you please send us your markup with the relevant code-behind so we could investigate further? Once we have a more clear view over your setup we would be able to give you a more precise answer. In the attachments you can find the project which I tested.

Regards,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Gunnar
Top achievements
Rank 1
answered on 23 Jan 2013, 01:14 PM
Hi Angel

I see that the method you use for filtering the RadGrid is different from mine.

protected void Unnamed2_Click(object sender, EventArgs e)
{
    RadGrid1.MasterTableView.FilterExpression = string.Format("([CustomerID] LIKE '%{0}%')", filterTextBox.Text);
    RadGrid1.Rebind();
}

There you can filter the CustomerID column only. What I was doing was filter as many columns as I needed from one input box using RadFilterContainsFilterExpression:
public void ApplyFilter()
        {
            // Make expressions for all columns in RadGrid
            RadFilterContainsFilterExpression expAddress1 = new RadFilterContainsFilterExpression("Address1");
            RadFilterContainsFilterExpression expAddress2 = new RadFilterContainsFilterExpression("Address2");
            RadFilterContainsFilterExpression expAddress3 = new RadFilterContainsFilterExpression("Address3");
            RadFilterContainsFilterExpression expCity = new RadFilterContainsFilterExpression("City");
            RadFilterContainsFilterExpression expCountry = new RadFilterContainsFilterExpression("Country");
            RadFilterContainsFilterExpression expName = new RadFilterContainsFilterExpression("Name");
 
            // Clear filter if there was one before and then add a GroupOperation
            RadFilter1.RootGroup.Expressions.Clear();
            RadFilter1.RootGroup.GroupOperation = RadFilterGroupOperation.Or;
 
            // Add expressions to the RadFilter
            RadFilter1.RootGroup.AddExpression(expAddress1);
            RadFilter1.RootGroup.AddExpression(expAddress2);
            RadFilter1.RootGroup.AddExpression(expAddress3);
            RadFilter1.RootGroup.AddExpression(expCity);
            RadFilter1.RootGroup.AddExpression(expCountry);
            RadFilter1.RootGroup.AddExpression(expName);
 
            // Values for all expressions come from the same input textbox
            expAddress1.Value = idSearch.Text;
            expAddress2.Value = idSearch.Text;
            expAddress3.Value = idSearch.Text;
            expCity.Value = idSearch.Text;
            expCountry.Value = idSearch.Text;
            expName.Value = idSearch.Text;
 
            // Apply the filtered data to the RadGrid
            RadFilter1.RecreateControl();
            RadFilter1.Visible = false;
            RadFilter1.FireApplyCommand();
            RadGrid1.DataBind();
        }

This method works for all browser except the ifame in IE8 as I stated in earlier post. Is there perhaps some way to improve this? Unless you can't replicate the problem using this method :-/

Any additional help would be most welcome.

Regards,
Gunnar
0
Angel Petrov
Telerik team
answered on 25 Jan 2013, 05:38 PM
Hi Gunnar,

I have modified my project in order to replicate the problem but still I was unable to get the described behavior.
Could you please review the project attached and test it locally? If the problem replicates please let us know so we could investigate more thoroughly.

All the best,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Gunnar
Top achievements
Rank 1
answered on 28 Jan 2013, 02:40 PM
That is so weird. I'm not getting this bug in your example, even if you used my mentioned method.
I'm currently doing tests between the two, trying to find what could couse this bug in my website. I'll post it here if I find somwthing useful :)

Regards
Gunnar
Tags
Grid
Asked by
Gunnar
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Gunnar
Top achievements
Rank 1
Share this question
or