RadGrid is missing with OpenAccess Dynamic Data Template

10 posts, 1 answers
  1. John
    John avatar
    7 posts
    Member since:
    Sep 2013

    Posted 09 Sep 2013 Link to this post

    Hi everyone,

    According to the online documentation http://documentation.telerik.com/openaccess-orm/developers-guide/asp.net-development/integrating-with-asp.net-dynamic-data/developer-guide-dynamic-data-wizard-create-new-web-app "How to create dynamic data application" (with OpenAccess ORM):

    - part 4. "... Also you can use either a standard Microsoft GridView control or a custom control, called DynamicRadGrid, which derives from RadGrid. The Use RadControls for Ajax option is enabled only if you have installed RadControls for ASP.NET AJAX on your machine. When the option is chosen, the code file containing the grid is imported in the project and used in all List pages.".

    My question is - I've got RadControls for ASP .Net Ajax installed on my machine but I still not getting that very important feature for me - to choose RadGrid instead of standard MS GridView. Is that option available at all as it describes in the documentation ?

  2. John
    John avatar
    7 posts
    Member since:
    Sep 2013

    Posted 10 Sep 2013 Link to this post

    Telerik,

    Please answer, I really need to find out that ... 
  3. DevCraft banner
  4. John
    John avatar
    7 posts
    Member since:
    Sep 2013

    Posted 11 Sep 2013 Link to this post

    Is this that "legendary" Telerik support  ??
  5. Answer
    Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 13 Sep 2013 Link to this post

    Hello John,

    Generally, the Dynamic Data wizard of Telerik OpenAccess ORM understands whether RadControls for ASP.NET AJAX are installed through a check about their Visual Studio integration.

    I tested the How to: Create a New Dynamic Data Web Application article with both Telerik OpenAccess ORM and RadControls for ASP.NET AJAX installed on the machine (through the .msi files of the products) and successfully reproduced the scenario.

    My best guess about the cause for the issue you experience is that the Telerik.Web.Design.dll, Telerik.Web.UI.dll, and Telerik.Web.UI.Skins.dll assemblies are available locally on your storage device and are referenced in your project but are not deployed by RadControls for ASP.NET AJAX Installer.

    Could you please confirm that both of the products are installed through one of the following:
    - Telerik.Web.UI_<version_number>.msi and Telerik-OpenAccess-ORM-<version_number>.msi
    - Telerik Control Panel
    - Telerik Trial Installer

    Kindly note that the forums are a community driven resource for the OpenAccess ORM Free Edition without a guaranteed answer by a Telerik software engineer. For urgent problems that need answers in 24 hours we do provide a dedicated priority support service. We will send you more details in the sales feedback thread you have posted.

    I am looking forward to your feedback.


    Regards,
    Doroteya
    Telerik
    OpenAccess ORM Q2 2013 brings you a more powerful code generation and a unique Bulk Operations support with LINQ syntax. Check out the list of new functionality and improvements shipped with this release.
  6. John
    John avatar
    7 posts
    Member since:
    Sep 2013

    Posted 15 Sep 2013 Link to this post

    Thank you for the response ...

    I've re-installed DevTools and succeded  to have that option to choose between MS GridView and RadGrid cpntrols.

    Telerik Data Dynamic Wizard creates custom pages for Edit, List, Insert and Details for EVERY database object.

    However, I've got another question - if I want to customize layout in RadGrid in  List.aspx, it means I will have to do it through all pages created by Wizard in Custom pages folder and it can be up to 70 pages !!! (in my case scenario).

    How can I use RadGrid globally for all List pages ?

    Another question is - I've customized RadGrid in List.aspx to have "Insert New" button in the header on top of the Grid and when
    I click to insert new record it doesn't work saying that this behavior is  not supported ...

    Plus, search  filter gives errors as well ...

    Basically, I need RadGrid control in MS Dynamic Data application to have "Column Filter" and "Insert New" functionality working without errors before we buy the software. 
    Have you got a working sample of using RadGrid (with "Column Filter" and "Insert New" functionality) in Dynamic Data application ?

    Thank you in advance for the response ...
  7. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 17 Sep 2013 Link to this post

    Hi John,

     
    You could find the code generation templates used by Dynamic Data Wizard under the following location [OA_InstallFolder]\dsl2012\CodeGenerationTemplates\DynamicData\[CSharp | VisualBasic]. You could modify them to reflect the your requirements during code generation process.

    Hope that helps.

    Regards,
    Damyan Bogoev
    Telerik
    OpenAccess ORM Q2 2013 brings you a more powerful code generation and a unique Bulk Operations support with LINQ syntax. Check out the list of new functionality and improvements shipped with this release.
  8. John
    John avatar
    7 posts
    Member since:
    Sep 2013

    Posted 18 Sep 2013 Link to this post

    Hi,

    It didn't really helped me because I've no idea what and where to change in that template file ...

    Have you got a working sample of RadGrid in MS Dynamic Grid application with EnableColumnFilter = true and "Insert New" in the RadGrid header ??

    In case you haven't got, could you create the sample for us so we can evaluate the functionality before we buy DevTools ?
  9. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 19 Sep 2013 Link to this post

    Hello John,

    In order to do that please do the following steps:

    • Go to the [OA_InstallFolder]\dsl2012\CodeGenerationTemplates\DynamicData\[CSharp | VisualBasic]\PageTemplates folder;
    • Open the RADListTemplate.tt template;
    • Specify EnableColumnFilter=true and InsertNew under the dynamic:DynamicRadGrid;

    Hope that helps.

    Regards,
    Damyan Bogoev
    Telerik
    OpenAccess ORM Q2 2013 brings you a more powerful code generation and a unique Bulk Operations support with LINQ syntax. Check out the list of new functionality and improvements shipped with this release.
  10. John
    John avatar
    7 posts
    Member since:
    Sep 2013

    Posted 19 Sep 2013 Link to this post

    Hi Damyan,

    Thank you for the response ...

    Now I've got the "Insert New" button in the RadGrid header (by specifying CommandItemDisplay="Top" in MasteTableView of the DynamicRadGrid and also I've got AllowFilteringByColumn="true") in the List.aspx template.

    However, when I run the project and click the "Insert New" button of the RadGrid control the following error occurs:

    "The method or operation is not implemented ..."


    How can I fix this ?

    Also, I've checked the AllowFilteringByColumn functionality and it doesn't work either. I've fixed the initial error by setting 
    GridDataSource.AutoGenerateWhereClause = false, and after that another error occurs (when I select "StartWith" from dropdown list options of the column filter control): 

    "Expression expected ..."


    How can I fix this ?




  11. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 24 Sep 2013 Link to this post

    Hello John,

    Based on your description it is hard to determine the cause of the problem. In such cases we recommend assembling a sample project showing the unwanted behavior so we could debug it and advice you with the best possible solution. You could upload the project on public sharing site or open a formal ticket where you could attach a project.

    Regards,
    Antonio Stoilkov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
DevCraft banner