Yet another update of RadControls for ASP.NET Ajax DynamicData support

Wednesday, August 13, 2008 by Atanas Korchev | Comments 9

ASP.NET Dynamic Data has just gone official with the SP1 release of Visual Studio 2008 and .NET 3.5. We have just released updated version of our Dynamic Data bits which is tested against the official release and has few minor improvements (such as implementation of the DataControl property). Get it from here.

9 Comments

  • Dave 15 Aug 2008
    Trying to use the DynamicRadGrid with the futures release of Dynamic Data... I'm using the DynamicObjectDataSource. When used with a DetailsView looks like this MetaTable table = this.dynamicODS.GetTable(); detailsView.RowsGenerator = new AdvancedFieldGenerator(table, false); Is there an equivalent way to do this? Because as is I just keep getting an exception on line 113 of the dynamic rad grid MetaTable metaTable = this.FindMetaTable();
  • Dave 15 Aug 2008
    I attached a project in Ticket Id "156261" Also in the default setup for Dynamic Data I get the following two errors in PageTemplates/List.aspx InsertHyperLink.NavigateUrl = table.GetActionPath(PageAction.Insert, null); Error 6 The call is ambiguous between the following methods or properties: 'System.Web.DynamicData.MetaTable.GetActionPath(string, System.Collections.Generic.IListobject)' and 'System.Web.DynamicData.MetaTable.GetActionPath(string, System.Web.Routing.RouteValueDictionary)' (I just removed the null parameter) Also the EnableQueryStringSelection parameter is no longer supported on the DynamicDataManager http://code.msdn.microsoft.com/dynamicdata/Wiki/View.aspx?title=Release%20Changes&referringTitle=Home "The EnableQueryStringSelection property has been removed, instead when registering a control there is a Boolean field setSelectionFromUrl that allows control over which control gets its selection from the Url."
  • Josh 19 Aug 2008
    Atanas - Your blog is great, thanks for the good work. I do have a question, though. Would you be willing to add a package with the web.config that you've been using? Very few of the RadControls function correctly on my Dynamic Data site (once they're on our web server, they debug locally fine), because I get the 'Sys not defined' javascript error that generally indicates that ASP.NET AJAX isn't installed on the server. I thought ASP.NET AJAX came with the .NET Framework 3.5, though? So, I suspect this has something to do with my web.config, but I'm having trouble fixing it by following the posts in the telerik forums - all of the solutions reference a page that sets up a pre-3.5 web.config. Since you're experimenting specifically with Dynamic Data and the RadControls, would you be willing to add an example web.config to the example .zip that you post?
  • Atanas Korchev 29 Aug 2008
    @Dave The current bits support only the SP1 release of Dynamic Data. We will check if we can support both the official and future release with one and the same build of RadControls. @Josh The web.config I have used is the default one generated by Visual Studio after creating a Dynamic Data Web Site. I suspect you have some web resource related problem. You can check the following post of mine how to troubleshoot web resource issues: http://blogs.telerik.com/AtanasKorchev/Posts/08-07-18/Web_Resources_demystified_Part_3_Troubleshooting.aspx
  • Dave 02 Sep 2008
    Yay!!!!! I got it working :) By putting the DynamicObjectDataSource control Above the DynamicRadGrid in the page.. I guess this allows it's oninit method to run before the DynamicRadGrids so it's able to register as the metatable One small suggestion in the OnInit method it should take AutoGenerateColumns into account before it automatically adds all the Dynamic Columns... Excited :)
  • Dan Crowell 04 Mar 2009
    I was getting an error when using the ListDetails view:

    1) Select a row
    2) Use a drop down to filter the records.

    If the index of the selected row did not exist then an ArgumentOutOfRangeException was being thrown. I fixed it using the code below.

    Hope this helps, Dan

    1         protected override void OnDataBound(EventArgs e) 
    2         { 
    3             base.OnDataBound(e); 
    4  
    5             if (selectedIndex != null
    6             { 
    7                 try 
    8                 { 
    9                     GridItem item = Items[selectedIndex]; 
    10                     if (item != null
    11                         item.Selected = true
    12                 } 
    13                 catch (ArgumentOutOfRangeException ex) 
    14                 { 
    15                     SelectFirstItem(); 
    16                 } 
    17             } 
    18             else 
    19             { 
    20                 SelectFirstItem(); 
    21             } 
    22         } 
    23  
    24         /// <summary> 
    25         /// Select the first item in the grid. 
    26         /// Added by Dan Crowell, dcrowell@crowsol.com 
    27         /// </summary> 
    28         private void SelectFirstItem() 
    29         { 
    30             if (Items.Count > 0) 
    31                 Items[0].Selected = true
    32         } 

  • Hypno 04 May 2009
    Is this available also in VB?
    Regards
  • Meltac 11 Aug 2009
    Since Dynamic Data Preview 4 finally is released, it would be great to have better support with RadControls. Also, the current implementation of DynamicRadGrid only support some of the basic features of Dynamic Data version 1, and is not extendable in the same way that the ASP.NET Controls are. Especially, the current Telerik implementation lacks some essential things like using custom column / row generators, custom metadata attributes (for validation, display order etc.), custom filtering, proper (full ) Domain Service support, and many other things that make the Dynamic Data approach so valuable for RAD. Is there any chance to get soon some actual implementation of at least the DynamicRadGrid control that supports more features of versions 1 and preview 4 of Dynamic Data?
  • Mike 15 Jul 2010
    Any updates / sample projects / guidelines are expected soon for Dynamics data 4.0?
    Ideally, it should be two project samples for both LINQ & Entities which are generated by VS2010 but with complete substitution of GridView with RadGrid.

Add comment

  1. Formatting options
       
     
     
     
     
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)