i'm building application for touch screen, and obviously all components should be large enough to be friendly user.
i can't find the way to expand the scroll bar in XamDataGrid and also the filter Area scroll bar and selectors.
help is important and highly appruciated.
Hello,
Thank you for your post. I have been looking through it and I suggest you use the following style for the ScrollBar in order to make it bigger:
<Style TargetType="{x:Type ScrollBar}"> <Style.Triggers> <Trigger Property="Orientation" Value="Vertical"> <Setter Property="Width" Value="30"/> </Trigger> <Trigger Property="Orientation" Value="Horizontal"> <Setter Property="Height" Value="30"/> </Trigger> </Style.Triggers> </Style>
As for the RecordSelector I can say that it is a very complicated control and it is not easy to set its Width and Height. If you want to do so you can retemplate it. I also can create a feature request on your behalf if you want.
Looking forward for your reply.
thanks for your assistance,
regard the ScrollBar and ScrollViewer i managed to retemplate control and it works perfectly.
regard the FilterArea, it is essential for me to find solution for that otherwise it will force me to find other solution that fits touch screen.
what i need is sample of retemplating FilterCellValuePresenter i beleive, to see how can i expand the selector and ComboBox filter selection.
thanks in advance,
Hello again,
You can find the default style for the FilterCellValuePresenter in the following file: C:\Program Files (x86)\Infragistics\NetAdvantage 2011.1\WPF\DataPresenter\DataPresenterGeneric_Express.xaml, which is installed there by default. You can copy the style and modify it as you want.
hi,
yes i already viewed the base template but when i tried to retemplate it, i didnt get the required results and i was quite lost, if anyone can direct me step by step it would be very helpfull.
thanks,
I created a sample project for you where I changed the sizes of the elements you want. I used the Infragistics’ Utilities class to get them and change them in the FilterCellValuePresenter’s Loaded event. Please let me know if you need further assistance on this matter.
thanks a lot, this was quite helpufull but this is not what i meant.
as you can see below, the most important thing is expanding the selector button and even more important is to exapand the scroll veiwer after pressing the button, usually i have hundreds of records to filter so scroll bar appear, i need this scroll bar to be expanded. as arrows are pointing out.
thanks a lot
After some research it turns out that this behavior is normal when using Windows XP because a different default theme is employed which leaves the XamComboEditor's DropDownButtonDisplayMode property set to its default value of 'MouseOver'. You can do something like this for a workaround:
<igDP:XamDataGrid.FieldSettings>
<igDP:FieldSettings AllowRecordFiltering="True">
<igDP:FieldSettings.FilterCellEditorStyle>
<Style TargetType="{x:Type igEditors:XamComboEditor}">
<Setter Property="DropDownButtonDisplayMode" Value="Always"/>
</Style>
</igDP:FieldSettings.FilterCellEditorStyle>
</igDP:FieldSettings>
</igDP:XamDataGrid.FieldSettings>
Hope this helps you.
I have logged this with development under ID: 94119 and I have also created a support ticket on your behalf: CAS-75154-6SXGF4 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://ko.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://ko.infragistics.com/Membership/MySupport.aspx
mored detailed:
it seems like the issue related to Utilities at those rows:
var CED = Utilities.GetDescendantFromName(sender as FilterCellValuePresenter, "ComboEditorDropdown"); (CED as Grid).Width = 30; var GA = Utilities.GetDescendantFromName(sender as FilterCellValuePresenter, "glyphArrow"); (GA as Path).HorizontalAlignment = System.Windows.HorizontalAlignment.Center; var DDB = Utilities.GetDescendantFromName((XCE.Content as XamComboEditor), "PART_DropDownButton"); (DDB as ToggleButton).Width = Double.NaN;
CED is null and then it fails on "object reference not set to....."
i'm not familiar with those classes but again this works fine on WIN7 but not on XP.
hello Stefan
i'm facing some issues working in Windows XP, on Windows7 no issue.
i'm using InfragisticsWPF3.DataPresenter.v10.2
InfragisticsWPF3.Editors.v10.2
InfragisticsWPF3.v10.2
does it require other dll or WPF4?
thanks a lot for the fast and proffesonal support.
best regards,