|118109||Feb 2,2015 04:05 AM||Feb 10,2015 04:09 AM||WinRT||5|
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,
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.
Please find the below code snippet ,
Code snippet :
<!--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" />
. . .
. . .
. . .
. . .
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 :
Please let me know if you have any questions.
Thanks for your update. Please let us know if you need further assistance.
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.