Is there a special way to bind a JSON Datasource to the TileManager with Razor? We are trying the below and receiving an error.
IList<Person> list = new List<Person>(); list.Add( new Person(){Name="MDL"});
return HtmlHelperExtensions.Infragistics(helper) .TileManager() .ID("dashboard") .DataSourceType("JSON") .DataSource(JsonConvert.SerializeObject(list)) .Render(); Error: Cannot determine the data source type. Please specify if it is JSON or XML data.
Hello Tammy,
As we have released the RTM version of the Tile Manager the content template property was removed.Each tile now has two states - maximized and minimized and they have separate templates.To databind to a Datasource you can do as Nikolay showed in his example, just change the .ContentTemplate().
Example:
@(Html.Infragistics().TileManager() .ID("dashboard1") .DataSource(list.AsQueryable()) .MinimizedState("<h3>${Name} minimized content</h3>") .MaximizedState("<h3>${Name} maximized content</h3>") .DataBind() .Render())
Hello,
I'm just checking if you have any other questions regarding the matter.
Hi Tammy,
I tested your code and I would suggest you to modify it as follows:
Now it should be working correctly.
Let me know if you have any other questions.