I want a richtexbox control with custom button on that custom button click i wan to perform some Actions.
Can we have customized button in Richtextbox or can we make Richtexbox control with custom button in Accumatica
Best answer by harutyungevorgyan
Hello
Inheriting PXRichTextEdit and overriding methods won't work because Acumatica creates controls based on the ASPX markup and always uses the standard base classes. Your custom class will not be used because Acumatica doesn't know it exists. Even if you override methods, it will still call the base class, because this is handled by the .NET Framework, not the Acumatica Framework. In .NET, there is no mechanism like PXOverride where Acumatica actively searches for and executes overridden methods. In standard C#/.NET, if you don't explicitly tell the system to use your custom class, it will always use the base class. Your inherited class is ignored unless you manually replace the ASPX control, which Acumatica does not support easily. For this kind of change, you should use JavaScript to modify the toolbar, or simply create a standard button on the screen, which is easy because the Acumatica Framework already supports custom buttons.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
