We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

FilteringPop position

Thread ID:

Created:

Updated:

Platform:

Replies:

118109 Feb 2,2015 04:05 AM Feb 10,2015 04:09 AM WinRT 5
loading
Tags: SfDataGrid
Aurélien
Asked On February 2, 2015 04:05 AM

Hello,

I have a problem with the position of filtering popup (no OK - Cancel buttons OR no first line : ascendant sort)

Please, find attached in the zips containing 2 screenshots of my problem and a code sample.

My simulator resolution is 10.6” 1366*768.

Thanks in advance,

Aurélien


Attachment: screenshots_4772b552.zip

Aurélien
Replied On February 2, 2015 04:06 AM


Aurélien
Replied On February 4, 2015 03:13 AM

UP

Akila Rajaram [Syncfusion]
Replied On February 4, 2015 07:39 AM


Hi Aurélien,


 


We were able to reproduce the problem “ Filter Popup shows incorrect position when the grid is loaded at insufficient window space “and have logged defect report regarding this. The fix for this issue will be included in our upcoming Service pack release which is scheduled in February last week .


 


By default , the Filter Popup  position is adjusted based on the screen height with mouse interaction on FilterToggleButton and it arranged towards bottom by normally. In our SfDataGrid, we have checked the available space in screen to arrange filter popup either in top or bottom. If the space becomes less when compared to filter popup height with point where the mouse interaction on ToggleButton, pop up will be arranged from top. Here if the space in top is also less means, it will be arrange at bottom as default. In this case, the bottom part of pop up will get hidden as you reported and you can overcome this by reducing the Popup MinHeight and Height .  This can be achieved by editing the ControlTemplate of the GridFilterControl and bind the values for PART_FilterPopUpBorder MinHeight and Height property .


 


We have modified sample based on your requirement . Please find the sample from the below location.


 


Sample :  http://www.syncfusion.com/downloads/support/directtrac/general/SfDataGrid_HeaderCellCOntrol_in_WinRT_Modified1868916180.zip


 


Please find the below code snippet ,


 


Code snippet :


 


<Page.Resources>              

  <Style TargetType="syncfusion:GridFilterControl">

<!--By Default Height will be set based on the FilterPopupHeight . We need to reset Height expilictly-->

       <Setter Property="Height" Value="400"/>

       <Setter Property="MinWidth" Value="300" />

<!—Adjust Minimum Height of the FiterPopup-->

       <Setter Property="MinHeight" Value="400" />

                             .    .   .      

                             .    .   .

                             .    .   .

                             .    .   .

 

</Page.Resources>


 


The above Height will be bind to the Height and MinHeight of FilterPopUpBorder in ControlTemplate of FilterControl as shown in the below code snippet ,


 


Code Snippet :


 


<Border x:Name="PART_FilterPopUpBorder"

                                Width="{Binding FilterPopupWidth,

                                                Mode=TwoWay,

                                                RelativeSource={RelativeSource TemplatedParent}}"

                                Height="{TemplateBinding Height}"

                                MinWidth="{TemplateBinding MinWidth}"

                                MinHeight="{TemplateBinding MinHeight}"

                                Background="{TemplateBinding Background}"

                                BorderBrush="{TemplateBinding BorderBrush}"

                                BorderThickness="{TemplateBinding BorderThickness}">                     

                           

                                                      .

                                                      .

                                                      .

                                                      .

 

</Border>


 


 


Please let me know if you have any questions.


 


Regards,


Akila R



Aurélien
Replied On February 9, 2015 11:11 AM

Hi Akila,

Thank you for you answer.
The fix works perfectly.

Best regards,
Aurélien

Saravanan M [Syncfusion]
Replied On February 10, 2015 04:09 AM

 Hi Aurelien,

Thanks for your update. Please let us know if you need further assistance.

Regards,

Saravanan.M



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;