Hi,
Is it possible to specify where the fieldchooser has to be displayed? The fieldchooser dialog can now be moved across the form. Instead I want it to specify that it has to open only near the xamdatagrid and also restrict to where it can be moved.
Regards,Poornima
Hi Poornima,
Of course you can. In order to do that you can create an external FieldChooser as described here: http://help.infragistics.com/NetAdvantage/WPF/2011.1/CLR4.0/?page=xamDataPresenter_Create_an_External_Field_Chooser.html and place it wherever you want – in your case your own Popup control.
Please let me know if I can be of any further assistance.
Is it possible to make this fieldchooser appear as a drop down in the grid?
Currently even though I can set the starting position, the fieldchooser dialog can be moved anywhere around.
Yes.. that is what I wanted.
Its done then.. Thanks a lot!! :)
For that you can use the original WPF positioning functionality like the PointToScreen method:
xamDataGrid1.PointToScreen(new Point(0, 0))
which will return you a Point coordinates of the top-right-corner of the XamDataGrid from the Point(0, 0) point of the screen (the screens top-right-corner). This means that this code:
(e.FieldChooser.Parent as ToolWindow).Left = xamDataGrid1.PointToScreen(new Point(0, 0)).X;
(e.FieldChooser.Parent as ToolWindow).Top = xamDataGrid1.PointToScreen(new Point(0, 0)).Y;
will position the FieldChooser’s top-right-corner at the same position as the XamDataGrid’s top-right-corner.
Hope this is what you needed. Please let me know if you require any further assistance on the matter.
Hi Petar,
How can I get the position of the XAMDataGrid, so that I can set the same values for my fieldchooser?
Regards,
Poornima