Hi,
Is there any way to change the field position by code in the field layout?.
The ActualPosition property is read only and changing the Column property has not effect... I guess that the ActualPosition property as priority over the Column property.
Anyone?
Thanks.
I'll let someone from Infragistics answers all specific questions, but I can tell you that you should forget about moving columns programatically (from your field selector control). There is a case number about it : CAS-24439-40N6GO. The case is opened since May 22th.
Also, when you call ClearCustomization, the column position will be reset to the one before calling LoadCustomization.. but CustomizationType.FieldPosition will not reset the Visibility property of a column. I've already filled a feature request about it in May. Take a look at this thread
http://community.infragistics.com/forums/p/26217/96255.aspx#96255
Guys,
I am experiencing this issue now.
Here is my scenario:
Launch UI
-Load Default Fields
-Allow user to customize visibility and position of the field via a field selector control
-Call SaveCustomizations and persist this info into data store.
Next time launching UI,
-call LoadCustomizations to apply user settings
-And allow user to reconfigure the view (columns/positions)
With combination of this field selector GUI and user performing drag and drop action on the grid, I am experiencing different behavior when programatically move the columns around.
For me to understand this better,
A.
What is the value of ActualPosition.Column before user perform drag and drop?
Does the actual position gets changed after doing drag and drop?
Does the position of the dragged field get reset to original value when ClearCustomizations(CustomizationType.FieldPosition) gets called? If so it get reset to the position before calling LoadCustomization or position after calling LoadCustomizations?
B.
What is the expected value for Fields.Move oldIndex? Is that the current field index in Fields collection OR it is the Field.ActualPosition.Column OR it is Field.Column
C. What should I do if I want user to do drag and drop to move the columns around and/or use my field selector UI to perform the same.
I guess I need a solution that would work in both the cases where by I can move the columns programmatically irrespective of user performed drag and drop or not.
I would have to debug on this to understand it better, it would save my cycles if anyone had researched on this already.
Thanks for helping out.
Hello,
Actually this is not the same scenario. Tthe QA Team confirmed that this the expected behavior of the Fixed Fields feature. If you would like this as an option for the fields to go back to their original position, you can submit a feature request on this link.
Any update on this?
I have a similar scenario. When the column is unpinned, it has to move to the previous position not the first position. I am trying to circumvent that problem using Move method, still i am struck because of this weird behavior when moved/fixed/loaded customizations.
Calling ClearCustomizations would reset the position of all columns. I only want to move 1 column to the hand of the label presenter.