Hi,
When I try to hide a column from the grid using FieldChooser control and if that colum is also being used to group the data in the grid by dragging it on the GroupByArea, the column disappears from the grid and the column label also disappears from GroupByArea. The label should be there in the GroupByArea irrespective of the selection in FieldChooser control.
I have tried different built in styles but this does not seems to be the styling issue. Can you please help me to resolve this issue? I am not getting any clue what could be the cause of this problem.
Regards,Adeel
Hello Aqueel,
This seems to be caused by setting the BasedOn property on the custom style you are using for the CellValuePresenter. In your case you do not to use BasedOn as you are stripping down the whole template and creating a new one. Moreover, I am not sure why you need this style. The properties you have set on the TextBlock inside the template can be set on the Field/Editor itself saving all the internal connection between the cell and the XamDataGrid.
If you remove the BasedOn property from the style, it will be working as expected.
Hi Alex,
Attached please find the sample application in which I have reproduced the bug using latest version 10.2 with latest service release.
Please resolve this issue as we are having a lot of trouble.
Regards,
Aqeel.
Hello Aqeel,
I have tried with 10.1 and still cannot reproduce. I am attaching a sample project following your scenario. Let me know if I am missing somethig.
I am also having this issue. Yes this is not reproduceable in feature browser sample, but I am having this issue on my project. The version i am using is 10.1. I ahve made a custome control in which i have a XamDataGrid and other controls. when this custome control is loaded and data gets binded like following.
public void BindGrid<T>(List<T> ms, string customization) { ReportControlView.DataSource = null; ReportControlView.DataSource = ms; if (!string.IsNullOrEmpty(customization)) { ReportControlView.LoadCustomizations(customization); } }
I have not used a field chooser shown on the grid itself. but i launch a dialogue where a fieldChooser is placed and takes a grid in DataPresenter
<igDp:FieldChooser x:Name="fieldChooser" DataPresenter="{Binding Source={StaticResource xamDataGrid}}"> </igDp:FieldChooser>
All works fine.. it hides the column from grid when deselected from a field chooser.. but Label from a Groupby Area also gets hided. Please check this issue in previous versions as well.
Hello Adeel,
Which version and build of our controls are you using? I tested this with 10.2 and the issue seems not to be reproducible. See the attached screenshot - the CustomerID field is hidden from the FieldChooser and grouped by and is still visible in the group by area