Page view counter

May 20th Refresh of Dynamic Data is now Available

Last post 05-21-2008 2:11 PM by sjnaughton. 1 replies.

Sort Posts:

  • May 20th Refresh of Dynamic Data is now Available

    05-21-2008, 12:45 PM
    • Loading...
    • scothu
    • Joined on 12-10-2007, 6:54 AM
    • Redmond, WA
    • Posts 272
    • Points 1,320
    • AspNetTeam
      Moderator

    Last night we refreshed the release of Dynamic Data that is up on code gallery. You can download the release here: Dynamic Data Runtime and Templates

    Dynamic Data Runtime Changes:
    • Fixed a bug where on post backs the items in the filter drop down lists where re-added each time.
    • Fixed a bug where if a database error occurred on a Details page it would not be displayed before the page was redirected back to the List page.
    • Fixed a bug that prevented Dynamic Data from working with websites are were pre-compiled.
    • Fixed a bug that caused Not Set to appear in foreign key drop down lists even if the foreign key did not accept null values.
    • Fixed a bug where a null reference exception is thrown when registering a Linq to SQL or Entity Framework data model that contains associations with disabled child properties.
    • Changed the CSS for the GridViewPager so it looks the same under IE 7 and Firefox 3.
    • Removed the MetadataValidator static class that contained helper functions for doing model level data validation outside of web applications.
    • Changed the validation attributes in System.ComponentModel.DataAnnotations so they are not sealed and can derived from.

    Dynamic Data Website Wizard Changes:

    The Dynamic Data Website Wizard now supports Edit and Insert forms (in addition to List and Details forms). The pages generated by the wizard have undergone the following changes:

    • Details, Edit, and Insert forms have switched from ListView to FormView-based renderings. The Site.css style sheet has changed accordingly.
    • When Details or Edit forms are on the same page as the List that links to them, the List omits its Details or Edit links, using a Select button instead. Details and Edit forms have a DynamicControlParameter that syncs to the selected item in the List. Similarly, when Insert is on the same page as the List, the List omits the Insert New Item link from its rendering.
    • When Details or Edit forms are on a separate page from the List that links to them, the List includes Details and Edit links (implemented w/ the DynamicLink control) and Detail and Edit have a DynamicQueryStringParameter. Similarly, when Insert is on a separate page from the List, the List includes the “Insert new item” link (implemented using the DynamicLink control).
    • When Details, Edit, and Insert forms are on the same page as the List that links to them, they auto-databind the List on certain events. Similarly, the List auto-databinds the Details, Edit controls that it links to:
      • List (OnRowUpdated, OnRowDeleted) -> calls Details.DataBind, Edit.DataBind
      • Details (OnItemUpdated, OnItemDeleted) -> calls List.DataBind
      • Edit (OnItemUpdated) -> calls List.DataBind
      • Insert (OnItemInserted -> calls List.DataBind)
    • When Details, Edit, or Insert forms are on a separate page from the List that links to them, they auto-redirect back to that List on certain events:
      • Details (OnItemDeleted) -> calls RedirectToList method
      • Edit (OnItemUpdated, OnItemCommand/Cancel) -> calls RedirectToList method
      • Insert (OnItemInserted, OnItemCommand/Cancel -> calls RedirectToList method
    • Whenever a List form on a non-scaffolded page (outside of the CustomPages folder) links to a Details, Edit, or Insert on a separate page, it passes a returnUrl param on the querystring. RedirectToList uses this returnUrl param, if present, otherwise it redirects to the scaffolded List page (MetaTable.ListActionPath).
    • The DynamicLink control has been updated to include support for an ImageUrl property (used for Insert new item links
    • The DynamicLink control has been updated to include support for rendering outside of a data-bound control template
    • The Show all items link for the DetailsModule is now a top-level control (outside of the FormView template), wrapped in <div class=“bottomhyperlink”>. The Edit and Insert modules do not have a Show all items link.
    • There is no longer a checkbox in the wizard for disabling the Show all items link.
    Scott Hunter
    PM, ASP.NET Team, Microsoft
  • Re: May 20th Refresh of Dynamic Data is now Available

    05-21-2008, 2:11 PM
    • Loading...
    • sjnaughton
    • Joined on 04-29-2008, 1:11 PM
    • Newton-le-Willows, Merseyside, UK
    • Posts 1,899
    • Points 8,581
    • TrustedFriends-MVPs

    Again just feedback nothing broken with my roles based security Big Smile

    Steve Big Smile

    Always seeking an elegant solution.
    [Oh! If olny I colud tpye!]
    c# Bits blog
    Oh, and don't forget to mark as answer any posts that help you Big Smile
Page 1 of 1 (2 items)