Skip to main content

Hello Gang;

Is there a way to add multi line Tooltip to Acumatica Grid Headings. I know I can go to Grid > Header > Tooltip and add a hint but it displays in one line. How Can I break the hint into multiple lines? I have a grid with too many columns which most of them are calculated and have some complex formulas. I want  to show the user how each formulated column is calculated. When everything is in one line it is hard to read and underestand. Any help is appreciated either through grid property settings or C# code that I can incorporate to my code and pass it to the grid header.

UPDATE

I couldn’t make it work through the grid properties from the interface but here is what I did through code and works fine for me. I’m sharing this in case someone comes across the same need.

public override void Initialize()
{
Page page = HttpContext.Current?.Handler as PXPage;
if (page != null)
{
page.Load += Page_Load;
}
}

private void Page_Load(object sender, EventArgs e)
{
Page page = (Page)sender;

PX.Web.UI.PXGrid approvalGridWithStyle = (PX.Web.UI.PXGrid)ControlHelper.FindControl("grid", page);
if (approvalGridWithStyle != null)
{
approvalGridWithStyle.RowDataBound += (object grdsender, PXGridRowEventArgs erdb) =>
{
PMCostProjectionLine data = erdb.Row.DataItem as PMCostProjectionLine;

if (data != null)
{
// Columns Tooltip
var newLine = Environment.NewLine;
erdb.Row.Cellse"UsrCFBudgetRevised"].Column.Header.ToolTip = "+ Original Budget" + newLine + "+ Budget Modification and Reclassification" + newLine + "+ Budget Approved Change Orders";
erdb.Row.Cellse"UsrCFBudgetProjected"].Column.Header.ToolTip = "+ Revised Budget" + newLine + "+ Budget Pending Change Orders";
}
else
{
return;
}
};
}
}

 


@ShahidaValiSyed04 FYI in case you need this


Reply