Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi is there an option to write values into the grid, like in the uComponents grid? Thanks
Hi, looking for the same functionality - did you work this one out?
Regards, L
Hi,
I figured this one out - The data is simply saved as JSON. As such you can simply write JSON as the value. My solution was:
Create a class to model the properties (ensuring my attribute names matched the alias of the Content Grid property)
public class Foo { public string AliasName { get; set; } public string AliasName2 { get; set; } }
Created a JSON helper method to serialize the data
public static string ToJson(this object obj) { JavaScriptSerializer serializer = new JavaScriptSerializer(); return serializer.Serialize(obj); }
Set the value for your content
content.setValue("name", ToJson(new List
Hope that helps!
Hi thanks :) I will try it.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
using the grid with a controller
Hi is there an option to write values into the grid, like in the uComponents grid? Thanks
Hi, looking for the same functionality - did you work this one out?
Regards, L
Hi,
I figured this one out - The data is simply saved as JSON. As such you can simply write JSON as the value. My solution was:
Create a class to model the properties (ensuring my attribute names matched the alias of the Content Grid property)
public class Foo { public string AliasName { get; set; } public string AliasName2 { get; set; } }
Created a JSON helper method to serialize the data
Set the value for your content
content.setValue("name", ToJson(new List
Hope that helps!
Regards, L
Hi thanks :) I will try it.
is working on a reply...