Telerik blogs

UPDATE: You can download the latest Dynamic Data bits from here.

It seems that I've managed to mess things up in my previous blog post. The sample web site and user controls work but ... they are using the December CTP release of ASP.NET Dynamic Data! Kudos to Scott Hunter for spotting the problem. It seems that albeit I installed the latest Dynamic Data bits I forgot to uninstall the December CTP and Visual Studio 2008 was still using the old Web Site template. Be careful when installing the new bits - uninstall any previous releases first!

The sample web site and field template user controls have been updated. Please download it from here. Keep in mind that the RenderHint attribute is replaced by the UIHint attribute. The semantics of using that attribute have also changed. Now you need a MetaDataType object on which you apply the UIHint attribute. Here is the modified code for the Order object:
public partial class Order 
public class OrderMetadata 
    public object OrderDate { getset; } 
    public object RequiredDate { getset; } 
    public object ShippedDate { getset; } 
    public object Customer { getset; } 
    public object Employee { getset; } 
    [Range(1, 3)] 
    public object ShipVia { getset; } 
    public object Freight { getset; } 
    public object ShipName { getset; } 
    public object ShipAddress { getset; } 
    public object ShipCity { getset; } 
    public object ShipRegion { getset; } 
    public object ShipPostalCode { getset; } 
    public object ShipCountry { getset; } 

About the Author

Iana Tsolova

is Product Manager at Telerik’s DevTools division. She joined the company back in the beginning of 2008 as a Support Officer and has since occupied various positions at Telerik, including Senior Support Officer, Team Lead at one of the ASP.NET AJAX teams and Technical Support Director. Iana’s main interests are web development, reading articles related to geography, wild nature and latest renewable energy technologies.


Comments are disabled in preview mode.