Add tool tip to column headers - acumatica

Is there any way in acumatica to add a tool tip for a grid column header? I tried adding the tool tip property for the rowtemplate as it is not available for gridcolumn, but doesn't help.
<RowTemplate>
<px:PXDropDown ID="edDocType" runat="server" DataField="DocType" CommitChanges="True" ToolTip="test">
</px:PXDropDown>
</RowTemplate>
The above code works when the grid is in Form View, but how to give it for a column header?

The easiest way to get this is to go to Customization open your grid's column go to Properties turn off Filter find section Header open it and set Tooltip like as in the screen:
As the result you will get such Tooltip for Grids Column

Related

Acumatica - How to show column header filter above grid

I have a grid on a process screen in Acumatica ERP. When column header filters are selected on the grid, I would like the descriptions of all the selected filters to show above the grid as they do on generic inquiries (see photo below).
I haven't found a way to do this on a regular (non-generic inquiry) screen, neither in the code nor in the ASPX. I'm not sure if there even is a way to do it, but if anyone has any suggestions I'd appreciate it.

How to disable Auto Suggestion for Inventory ID field

I would like to disable the auto suggestion for Inventory ID field in Materials screen. See this screenshot:
Add AutoComplete="False" property to the editor control (row template):
<px:PXSegmentMask runat="server" ID="edInventoryID" DataField="InventoryID" CommitChanges="True"
AutoComplete="False" />
I tested the property successfully on InventoryID field row template control (PXSegmentMask) in the Transactions tab/grid of the Sales Order screen.

How to get editing text box to expand to fit size of string field

I've noticed that in the Employee Time Cards screen (EP305000) in the details tab, there is a field called 'Summary' (In the DAC it's 'Subject') - and when you double click to edit the field, the edit area expands to show the entire text to be edited.
I have a custom screen with a grid, and this grid has text fields which I would like to have the same property as the Employee Time Card 'Subject' field (as described above), namely that when you enter the field to edit, it expands to show the entire text.
I've looked at the source DAC for the grid in EP305000, and I don't see anything that jumps out at me as an attribute on the 'Subject' field for that sort of thing.
Any help would be appreciated.
Added a RowTemplate to the Grid area for the two fields I wanted to make expanded, as follows:
<RowTemplate>
<px:PXTextEdit ID="PXTextEdit1" runat="server" DataField="TodoDescription"/>
<px:PXTextEdit ID="PXTextEdit2" runat="server" DataField="Comments"/>
</RowTemplate>
This did the trick. Thanks to HB_ACUMATICA for the answer.

Option to hide columns completely on an extnet GridPanel

I was using this based on a condition
GridPanelName.ColumnModel.SetHidden([ColumnIndex], true)
while I was working on something else, I noticed that when I click on the sorting menu arrow on a column header, under the columns I can put a tick next to the "hidden" column and it becomes visible again.
Is there a way for not showing columns except hidden, someway a curious user can not walk around ?
Try this on client side:
<ext:Column ID="ColumnID" runat="server" Text="ID" DataIndex="ID" Width="100" Visible="false" />

Select the current value in a dropdownlist using XSL and SharePoint

I'm using the row edit template below. The problem I have is that the current value is not selected when the row edit XSL template is used. The value defaults to the first item in the list. What is the best way to get the current value to be the selected item in the template below? I thought having DataValueField="{#type}" and DataTextField="{#type}" would resolve the issue, but it does not.
<asp:DropDownList runat="server" id="ff3{$Pos}"
DataValueField="{#type}" DataTextField="{#type}"
__designer:bind="{ddwrt:DataBind('u',concat('ff3',$Pos),'SelectedValue','TextChanged','',string($XPath),'#type')}">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:DropDownList >
Use DVDropDownList instead of DropDownList. See this MSDN forum post describing the same problem. I've done the same thing in the past and using SelectedValue with DVDropDownList is how I finally got it to work.
Try this:
<asp:DropDownList runat="server" id="ff3{$Pos}"
SelectedValue="{#type}"
__designer:bind="{ddwrt:DataBind('u',concat('ff3',$Pos),'SelectedValue','TextChanged','',string($XPath),'#type')}">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:DropDownList >
DataValueField and DataTextField are used with data binding, but you are using a specific set of ListItems. Using SelectedValue should set the drop down list to the List Item's current value of type.

Resources