Hi
I've set the initial column widths of my grid using FieldLayoutSettings.DataRecordCellAreaGridTemplate which works fine. However i want to give the user the flexibility to adjust the width, in which i set the AllowResize to true in the FieldSettings.
When i start the application all seems well, but when i try to resize my application crashes.
Resizing a field shouldn't cause a crash but the recommended method of controlling the size of the fields is to set the Width (or FieldSettings.Width) in v9.2 and later or the FieldSettings->CellWidth/LabelWidth properties (either via each Field's Settings and/or the FieldSettings of the FieldLayout/DataPresenter). The DataRecordCellAreaGridTemplate was primarily meant as a means of controlling which fields were * columns when using autofit but with the addition of the FieldLength typed Width/Height properties in 9.2, this really isn't needed any more.. The DataRecordCellAreaGridTemplate is limited in that when fields are moved the size of the columns affects whatever field then occupies that column in the grid as opposed to controlling the size on a specific field. Note I tested resizing a field in a grid using a datarecordcellareagridtemplate and was not able to reproduce the crash so that may have been addressed in a hotfix.
I'm now using the v 2009.2 and the client doesn't crash anymore.
Regarding DataRecordCellAreaGridTemplate if this is not any more approriate how could i set the initial width at start in which i expect to get 5 fields. The first get 25%, second 30% ... and last gets the rest. Also the AllowResize is set to true.
Aside from the main topic i've noticed that when the AllowFieldMoving is set to No in v 2009.1 the fields weren't draggable but in the latest version this is possible, just that the moving doesn't really takes place.
ladia said:Regarding DataRecordCellAreaGridTemplate if this is not any more approriate how could i set the initial width at start in which i expect to get 5 fields. The first get 25%, second 30% ... and last gets the rest. Also the AllowResize is set to true.
ladia said: Aside from the main topic i've noticed that when the AllowFieldMoving is set to No in v 2009.1 the fields weren't draggable but in the latest version this is possible, just that the moving doesn't really takes place.