View Full Version : [CLOSED] ComponentLoader.ToConfig on DateField not working

Apr 29, 2014, 5:43 PM

I'm trying to get the config of one DateField.

DateField df = new DateField();

df.Text = "02/25/1987";

string test = ComponentLoader.ToConfig(df);

If i call the ComponentLoader.ToConfig before setting a value to Text property, the code works beautifully.
If i set the value of the Text property before, i get an error: "Error during ClientConfig initialization. FormatProxy - Token PropertyName in state Property would result in an invalid JSON object. Path ''.".
Updated to the last version on the NuGet and the error persists.

What can i do?

Thanks in advance,

Apr 30, 2014, 4:06 AM
Hi Raphael,

I cannot reproduce the exception using your code.

Though, in any way I don't think you should use a DateField's Text. Please use its SelectedDate.

Apr 30, 2014, 12:15 PM

Once again, worked like a charm. Thanks.

You can mark this thread as closed.