Hi,
We have an issue reported from one of our customers who is upgrading from our product with old SmartClient build (v8.3p_2013-06-11/PowerEdition) to the product with the current 8.3 build (v8.3p_2015-05-05/PowerEdition) regarding to the DynamicForm behaviour change.
In v8.3p_2013-06-11/PowerEdition, if the defined column widths cannot fill the whole width of the DynamicForm, the width of each column will be expanded according to the relative proportions of the defined column widths. In v8.3p_2015-05-05/PowerEdition, the defined column widths will be strictly applied even if the whole width of the containing Grid Layout is not fully filled. For example, if the column widths are defined to be [300, 300], it does not fill the width of the DynamicForm. Previously, each column will take 50%, 50% of the Grid Layout width respectively and each element in the DynamicForm with "*" width will take the defined "300px" width, but now each column will strictly take 300px, 300px respectively.
To get the previous behaviour, we suggest our customer to modify the code to Change the column widths to [50% 50%] and then modify the width of all elements under first columns to be 300px and the width of all elements under second columns to be 300px as well.
However, it is not acceptable by our customer as they have more than 400 complex DynamicForms with many elements to change. It is time consuming and we got very strong feedback from them.
We are wondering if there is easier way we can get the old behaviour back? Is it a backward compatibility issue? If so, please help with solutions.
Thanks,
Robin
Please check the following standalone for reference:
We have an issue reported from one of our customers who is upgrading from our product with old SmartClient build (v8.3p_2013-06-11/PowerEdition) to the product with the current 8.3 build (v8.3p_2015-05-05/PowerEdition) regarding to the DynamicForm behaviour change.
In v8.3p_2013-06-11/PowerEdition, if the defined column widths cannot fill the whole width of the DynamicForm, the width of each column will be expanded according to the relative proportions of the defined column widths. In v8.3p_2015-05-05/PowerEdition, the defined column widths will be strictly applied even if the whole width of the containing Grid Layout is not fully filled. For example, if the column widths are defined to be [300, 300], it does not fill the width of the DynamicForm. Previously, each column will take 50%, 50% of the Grid Layout width respectively and each element in the DynamicForm with "*" width will take the defined "300px" width, but now each column will strictly take 300px, 300px respectively.
To get the previous behaviour, we suggest our customer to modify the code to Change the column widths to [50% 50%] and then modify the width of all elements under first columns to be 300px and the width of all elements under second columns to be 300px as well.
However, it is not acceptable by our customer as they have more than 400 complex DynamicForms with many elements to change. It is time consuming and we got very strong feedback from them.
We are wondering if there is easier way we can get the old behaviour back? Is it a backward compatibility issue? If so, please help with solutions.
Thanks,
Robin
Please check the following standalone for reference:
Code:
isc.DynamicForm.create({ ID: "exampleForm", width: "100%", numCols: 2, colWidths: [300,300], titleOrientation: "top", fields: [ {name: "username", title: "Username", type: "text", required: true, defaultValue: "bob", width: "*" }, {name: "email", title: "Email", required: true, type: "text", defaultValue: "bob@isomorphic.com", width: "*" }, {name: "password", title: "Password", required: true, type: "password", width: "*" }, {name: "password2", required: true, title: "Password again", type: "password", width: "*" } ] });
Comment