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

[Solved] FilterMenu borken after being used 2 times

4 Answers 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 09 Jul 2009, 07:46 AM
Hello, I'm using the following code to translate the options in the FilterMenu of a RadGrid into German.

protected void Page_Load(object sender, EventArgs e) 
    foreach (RadMenuItem item in myGrid.FilterMenu.Items) 
    { 
        item.Text = "some text"
    } 

This has the desired effect, but after applying a filter to the same column 2 times, the FilterMenu somehow stops working and can't be used a third time..
The width of the popup changes to just a few pixels and it's impossible to see or click the menu items.
I've tried putting the translation into a !IsPostBack block but then the language reverts to english after the first postback.

Any suggestions?




4 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 13 Jul 2009, 10:59 AM
Hello Michael,

I tested the approach in question locally, and the control behaved as expected.
If the issue persists at your end, you can open a formal support ticket, and send us a small working project, demonstrating your logic, and the unwanted behavior, for additional review.

Best wishes,
Yavor
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
Michael
Top achievements
Rank 1
answered on 15 Jul 2009, 01:23 PM
Hello, I've set up a simple test project that reproduces the unwanted behavior.
Find the project at the following link:
[Link removed by Telerik admin]

To reproduce the problem:
1) Start the web project
2) In the grid filter for 'Wien' in the city column (using 'Contains' which is 'Enthält' in german)
3) Then filter for 'Linz' in the city column
4) Then click the Filter icon of the city column a third time -> problem occurs

I've also added an image to the zip that displays the problem.
0
Pavel
Telerik team
answered on 20 Jul 2009, 08:13 AM
Hello Michael,

Indeed I could observe the problem in your sample. Can move the code that customizes the FilterMenu items to the Page_Init event handler? When I tested this approach it worked as expected on my end. Try it and let us know how it goes.

Best wishes,
Pavel
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
Michael
Top achievements
Rank 1
answered on 20 Jul 2009, 08:56 AM
Cool, it works with Page_Init.
Thank you :D
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Michael
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or