1. Konstantin Goldobin
  2. PowerBuilder
  3. Tuesday, 5 June 2018 13:26 PM UTC

Hello,

Does anybody know why autosize width for columns in a grid datawindow would work in the painter preview mode but wouldn't in a window at runtime? PB2017 build 1681.

Best regards,
Konstantin

Konstantin Goldobin Accepted Answer Pending Moderation
  1. Tuesday, 13 April 2021 06:40 AM UTC
  2. PowerBuilder
  3. # 1

This was tracked as Bug 1235.

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Tuesday, 23 February 2021 17:38 PM UTC
  2. PowerBuilder
  3. # 2

Hey, Konstantin -
   Can you please mark this issues as resolved?

Thanks,
Olan

Comment
  1. Konstantin Goldobin
  2. Tuesday, 2 March 2021 08:03 AM UTC
Hello Olan,

I don't know how to do this... BTW, there is a comment on the bug I created back then https://www.appeon.com/standardsupport/search/view?id=1235 saying that the workaround does not work in PB2019 R2.

K
  1. Helpful
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 June 2018 16:11 PM UTC
  2. PowerBuilder
  3. # 3

Hi Konstantin,

 

I have tested it as well. It seems that the problem is that it is saving the setting (width.autosize=3) but if you open the DataObject again, it is not respecting the setting in Design View. That's also true for runtime.

 

As a workaround you may set the Autosize property on your code like this: dw_control.Object.controlname.Width.Autosize. You can set that value to an Integer:

  • None(0)
  • Widest Shown(1)
  • Widest On Page(2)
  • Widest Retrieved(3)

 

Also, as Chris mentioned, please open a Support Ticket.

 

Regards,

Comment
  1. Govinda Lopez @Appeon
  2. Tuesday, 5 June 2018 17:13 PM UTC
Hi Chris,



 



Yes, it was the same for me. But I worked around it by adding that piece of code. So, during runtime, it works correctly now.



 



Reproduce Steps:



Change the setting of Width.AutoSize of a column in a Grid DW.







Save the changes.



If you now open the Source Code of the DW (Edit Source), you will see that the setting was saved.







But, if you open the DW again in Design View, the change is not shown. Even though it is there.







So, as a workaround, you may set the setting during runtime.







And the result is good.







 



I will create a knowledgebase article about this. But it would definitely be very good if we had a support ticket.



 



 



Regards,

  1. Helpful
  1. Bernhard Giesriegl
  2. Monday, 11 June 2018 10:23 AM UTC
Hi Konstatin,



As I can remember, this problem exists also in PB 12.6.



After the retrievend event I do a Modify with Width.AutoSize=3 for the used columns, and this works for me.



 



Regards,



Bernhard

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 June 2018 14:58 PM UTC
  2. PowerBuilder
  3. # 4

Hi Konstantin;

   I tested this feature out this morning in PB 2017 R2 build 1769 and it does not work at run-time as you described.

Please open a support ticket for this issue ...

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.