Thank you for contacting Syncfusion support.
We have analyzed the reported query “How to use an attribute with the method as parameter value?” attribute parameter should be a constant value since they are evaluated at compile time, your method value can change at runtime.
You can achieve your requirement by using AutoGeneratingDataFormItemevent, in which you can set Labeltext and PlaceHolderText using custom methods to Translate. Please refer the following code,
private void DataForm_AutoGeneratingDataFormItem(object sender, AutoGeneratingDataFormItemEventArgs e)
if(e.DataFormItem != null)
if(e.DataFormItem.Name == "Password")
e.DataFormItem.LabelText = Translate(e.DataFormItem.Name);
e.DataFormItem.PlaceHolderText = Translate("Enter password");
Kindly refer the following KB for more information about changing placeholder text,
We have prepared a sample for the same,
We hope this helps. Kindly revert us if you have any concern.
Subburaj Pandian V