This is a migrated thread and some comments may be shown as answers.

Grid dynamicdata metadata support

6 Answers 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Forascu
Top achievements
Rank 1
Forascu asked on 21 May 2010, 07:37 PM
Hi,
I would like to know if you plan to add support for using radgrid with dynamicdata metadata. For example gridview has a .SetMetaTable(Metatable) method that allows to load type metadata for display. Is there another solution to do this?

6 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 26 May 2010, 04:20 PM
Hello Forascu,

Actually SetMetaTable is extension method that can be applied on INamingContainer. For your convenience I am attaching sample DynamicData application.

Regards,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
miksh
Top achievements
Rank 1
Iron
answered on 09 Jul 2010, 09:38 PM
Thanks for the sample project. It works fine but when I tried to copy Telerik-based files into my DD 4.0 web application (not website!) and assigning project's namespaces I ended up with complication errors like:

Error 1 The name 'TextBox1' does not exist in the current context <path>\DynamicData\FieldTemplates\MultilineTextTelerik_Edit.ascx.cs 15 13 MyNamespace

The same error is for a regular asp.net control located after the radcontrol.
Error 5 The name 'RequiredFieldValidator1' does not exist in the current context <path>\DynamicData\FieldTemplates\MultilineTextTelerik_Edit.ascx.cs 18 28 MyNamespace

It's wierd becuase rad controls are rendered fine in design-time. To refer to the telerik dll I did:
1. Copied Telerik.Web.UI.dll into bin folder
2. Added a reference to it
3. Added manually in web.config:
<system.web>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>
  </system.web>
  <system.webServer>
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
    </handlers>
  </system.webServer>





Any help will be appreciated.
0
miksh
Top achievements
Rank 1
Iron
answered on 09 Jul 2010, 09:45 PM
Found what the issue was - I need to remove/add controls to let ...ascx.designer.cs file to be generated properly.
0
Stephen Naughton
Top achievements
Rank 1
answered on 11 Sep 2010, 10:23 AM
Hi Nikolay,I'm looking at the code in the sample you posted here and is shows

 

<dynamic:DynamicRadGrid

 

and adds a referance here 
<%@ Register TagPrefix="dynamic" Namespace="Telerik.Web.UI.DynamicData" %>
How do I find these controls to add to the page can I add them to the toolbox?
Also I don't seem to be able to fine the namespace "Telerik.Web.UI.DynamicData" shown above.
0
Nikolay Rusev
Telerik team
answered on 14 Sep 2010, 08:48 AM
Hello Stephen,

As my colleague Sebastian mentioned RadGrid for DynamicData is distributed separately  and  you can keep track on the update on our blogs.

Regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Stephen Naughton
Top achievements
Rank 1
answered on 14 Sep 2010, 10:08 AM
Thanks Nikolay, I posted here first an when I got no reply I created a new thread, but thansk for answering anyway :)

Steve
Tags
Grid
Asked by
Forascu
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
miksh
Top achievements
Rank 1
Iron
Stephen Naughton
Top achievements
Rank 1
Share this question
or