kentico_jurajo
-
4/5/2013 7:45:51 PM
RE:Set CustomTableForm BasicForm SubmitButton Text
Hi,
Just a short background: When you call BasicForm.<blahblah> - this runs the initialization of the custom table in given BasicForm context, create child controls and some more operations. So, the life cycle is already running and it is not possible to inject your setting into it.
It should be possible to set this in the OnPreRender() event - I hope it won't be too late. Moreover, this will work for sure:
Set the string to your custom in the Page_Init event like this: custTableForm.BasicForm.SubmitButton.ResourceString and add your custom value to it.
Best regards, Juraj Ondrus
|