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

[Solved] Silverlight Gridview and filtering

1 Answer 127 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pankaj Patel
Top achievements
Rank 1
Pankaj Patel asked on 16 Jan 2011, 10:28 AM
Hi there,

If you use the silverlight gridview in RTL flowdirection and the grid width is stretched , then the last column's filter will not appear correctly.
This  is a bug in the gridview.
Try this please and let me know if there's a work arround for this.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 17 Jan 2011, 11:22 AM
Hello Pankaj Patel,

Thank you for reporting the problem.
It was confirmed and logged as a bug concerning Right-to-Left support. Unfortunately, we cannot commit with specific time frame when this issue will be addressed.

As a workaround we may suggest you to set rendering position of the Filtering popup as shown in the following snippet:

void playersGrid_Loaded(object sender, RoutedEventArgs e)
        {
            this.Dispatcher.BeginInvoke(new Action(() => this.FixPopupOffset()));
        }
 
        private void FixPopupOffset()
        {
            foreach (var headerCell in this.playersGrid.ChildrenOfType<GridViewHeaderCell>())
            {
                var popUp = headerCell.ChildrenOfType<Popup>().FirstOrDefault();
 
                popUp.RenderTransform = new TranslateTransform() { X = -200 };
            }
        }

I hope this helps.

Kind regards,
Yordanka
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Pankaj Patel
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Share this question
or