Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...How to use DNNGrid?How to use DNNGrid?
Previous
 
Next
New Post
4/11/2012 12:21 PM
 

Hello,
I'm trying to implement the usage of a RadGrid control by using its DNN wrapper class, DNNGrid, but miss something: the UX guide sample at http://uxguide.dotnetnuke.com/UIPatte... actually declares an asp:datagrid control, and the only other sample I can find is at http://www.tressleworks.ca/Blog/tabid... , referenced from DNN Wiki, where all the work is done dinamically from server-side code.

Is it possible to use this wrapper at design time? If I try something like this:

<%@ Register Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls" TagPrefix="cc1" %>
<cc1:DnnGrid id="g" runat="server"></cc1:DnnGrid>

I get an Unknown server tag error. Declaring the control in code, however, works well. Where's my fault?

Thank you,
al.




 
New Post
4/12/2012 4:28 AM
 
  Try change it as  <cc1:DNNDataGrid id="g" runat="server"></cc1:DNNDataGrid>.  It should work after change "DnnGrid" to "DNNDataGrid".

Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
4/12/2012 5:59 AM
 

Ops... thank you!

I still am missing something stupid anyway: my dnngrid never shows up on page, no matter the data I try to display. If I put two controls like this in my module:

<%@ Register Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls" TagPrefix="cc1" %>
<cc1:DNNDataGrid id="grd1" runat="server" AutoGenerateColumns="true"/>
<asp:GridView ID="grd2" runat="server" AutoGenerateColumns="true" />

and pupulate data with the same code:

grd1.DataSource = DotNetNuke.Entities.Tabs.TabController.GetPortalTabs(Me.PortalId, 0, True, True)
grd1.DataBind()
               
grd2.DataSource = DotNetNuke.Entities.Tabs.TabController.GetPortalTabs(Me.PortalId, 0, True, True)
grd2.DataBind()

I only see the asp:gridview populated, while dnngrid does not appear even in page source.
Must be something stupid, I know it is ;)

Using DNN 6.1.5.


 
New Post
4/12/2012 10:42 AM
 
    We haven't use DNN Grid before(normally we use asp grid view). However, I recommend you take a look at DesktopModules\Admin\Sitemap\SitemapSettings.ascx, this file contains a DNNGrid instance , you can see how it works as a example.

Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
4/12/2012 12:05 PM
 

Hello,
thanks very much for the hint, I could solve with your help - it was indeed a stupid error in control declaration.

BTW the correct declaration, if anybody is interested, is like:

<%@ Register TagPrefix="dnn" Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" %>

<dnn:DnnGrid id="grdSubmissions" runat="server" AutoGenerateColumns="true"/>

Regards,

al.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...How to use DNNGrid?How to use DNNGrid?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out