Help??
Have a screen that has a PXRichTextEdit that is bound to a child grid field. So that as we edit the records in the grid, can edit line-level notes. It is in a tab.
<px:PXRichTextEdit AllowInsertPrevParameter="False" AllowInsertParameter="True" AllowLoadTemplate="True" AllowSourceMode="True" AllowSearch="True" AllowPlaceholders="True" AllowMacros="True" AllowAttached="True" textmode="MultiLine" Height="100%" Width="100%" runat="server" ID="edNoteHtml" DataField="NoteHtml" Style="border-width: 0px; border-top-width: 1px; width: 100%;">
In code, checking another field and enabling/disabling PXRichTextEdit field (noteHtml):
protected void _(Events.RowSelected<SSPAgreementSection> e)
{
var row = (SSPAgreementSection)e.Row;
if (row == null) return;
if(row.Locked == true)
{
PXUIFieldAttribute.SetEnabled<SSPAgreementSection.noteHtml>(e.Cache, row, false);
}
else
{
PXUIFieldAttribute.SetEnabled<SSPAgreementSection.noteHtml>(e.Cache, row, true);
}
}
Works great, enables/disables the field.
Issue is that after going past a record that disables it, it then will not DISPLAY the values properly as you got back to an enabled line.
Click on Row 4: Shows record properly, enabled, can edit just fine.
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/9312fa11-2fb6-464e-8a31-ed1b109ee54f.png)
Click on Row 5 (which should be disabled)...Headers from RichTextEditor go away, can’t edit the values in it. Great.
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/29970707-a020-418a-bf1f-ec93f942cd50.png)
Click Back on Row 4, editor headers re-appears, but the text is nowhere to be seen and the box is tiny and no way to get it to show again.
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/a4a4e838-7dfc-45d8-9458-e98b31d95e84.png)