web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Width of column in a RefrenceGroup is to small

(0) ShareShare
ReportReport
Posted on by

Hi 
I have a TabPage with AllowUserSetup = No 
In this tabPage I have a grid with a RefrenceGroup containing 2 strings StreetName StreetID

The width of StreetName and StreetID is to small how can I adjust this?
But keeping the AllowUserSetup to NO so that the user can't adjust the form

info:
RefrenceGroup 

width = Auto
height =Auto

I have tried to

  1. set the RefrenceGroup  autodeclaration = true and adjust it's width in code (no change)
  2. set the RefrenceGroup  width to 'column width' (no change)
  3. set the RefrenceGroup  width to a value eg. 500 (no change)
  4. set the EDT of the strings StreetName StreetID to a higher value (no change)

Suitable solutions are:

  1. letting the user only adjust the width of the columns StreetName StreetID
  2. setting the width of StreetName StreetID to a fixed value eg. 250
  3. other fixes that I can't think of

Thanks in advance
Tomas



*This post is locked for comments

I have the same question (0)
  • Vilmos Kintera Profile Picture
    46,149 on at

    If you right click > personalization on the field, you would be able to see what the control name is during runtime.

    You could get the form control without AutoDeclaration as element.design().controlName('YourControlNameText'); then do whatever you want with it for example in the run() method of the form, before the super() call.

    [View:https://msdn.microsoft.com/en-us/library/formdesign.controlname.aspx:320:50]

    See if you are able to set the properties of the control like this to the desired values. It is not enough to set the fixed width, you also have to tell for the control that it should not use auto width by passing in WidthMode. Maybe that is what you were missing when setting it from code?

  • Verified answer
    Community Member Profile Picture
    on at

    I have found a solution that works:

    I have set the display length of my EDT to a fixed value this way the column did change

    Thanks for your suggestion

  • Vilmos Kintera Profile Picture
    46,149 on at

    If that is a Standard AX EDT then it will affect the rendering on all forms where it is being used, and that might not be what your customer is expecting. If you only intended to change it for your specific form, I would still explore changing it runtime as per the suggestion above.

  • Community Member Profile Picture
    on at

    This is a EDT that is only used in this form so there is little to no impact.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans