Skip to main content
Solved

PXGridColumn: Wrapped lable destroys layout


Forum|alt.badge.img
  • Jr Varsity III
  • 23 replies

I have a graph with a form that has two columns with one field each.

One has hiphen in its DisplayName which causes the lable to be wrapped. As you can see the lables take different space, though the LableWith is set equally for both columns.

 

<px:PXSelector LabelWidth="70" Width="120" runat="server" ID="CstPXTextEdit19" DataField="ShipFrom" ></px:PXSelector>
<px:PXSelector LabelWidth="70" Width="120" runat="server" ID="CstPXTextEdit20" DataField="ShipTo" ></px:PXSelector>

 

What can I do to get a proper alignment?

Best answer by Naveen Boga

Hi @mhaps  Have you provided the PXLayoutRule (LablesWidth and Controlsize) for these controls on the .aspx page ?

 

 <px:PXLayoutRule runat="server" StartColumn="True" LabelsWidth="SM" ControlSize="XM"></px:PXLayoutRule>

  <px:PXDropDown ID="edBudgetLevel" runat="server" DataField="BudgetLevel" CommitChanges="True"></px:PXDropDown>
                    <px:PXDropDown ID="edCostBudgetLevel" runat="server" DataField="CostBudgetLevel" CommitChanges="True"></px:PXDropDown>

 

View original
Did this topic help you find an answer to your question?

3 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • Answer
  • November 9, 2021

Hi @mhaps  Have you provided the PXLayoutRule (LablesWidth and Controlsize) for these controls on the .aspx page ?

 

 <px:PXLayoutRule runat="server" StartColumn="True" LabelsWidth="SM" ControlSize="XM"></px:PXLayoutRule>

  <px:PXDropDown ID="edBudgetLevel" runat="server" DataField="BudgetLevel" CommitChanges="True"></px:PXDropDown>
                    <px:PXDropDown ID="edCostBudgetLevel" runat="server" DataField="CostBudgetLevel" CommitChanges="True"></px:PXDropDown>

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 23 replies
  • November 10, 2021

The two fields are in the same column and inside one PXLayoutRule.

ColumnWidth was set, but not LablesWidth or Controlsize. Setting LablesWidth of PXLayoutRule solved the problem.

Thanks @Naveen B !


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • November 10, 2021

Great :) Thanks for sharing an update @mhaps 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings