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...dnnGrid  -  programatically creates Columns without HeadersdnnGrid - programatically creates Columns without Headers
Previous
 
Next
New Post
4/23/2012 12:11 PM
 

I have tried to use dnnGrid (Telerik RadGrid wrapper) to create Grid Columns programatically (with AutoGenerateColumns=false).

I was able to add all desired Columns, but Grid does not show Column Headers.

I have tried same with Telerik RadGrid (just changed dnnGrid to RadGrid)  and same code is working without problem.

It seems as bug in dnnGrid wrapper. I have used DNN 6.1.5

 

 

 

 
New Post
4/23/2012 1:20 PM
 

I also commented on your Gemini post but will address this here as well: The DnnGrid automatically localizes its column headings using the HeaderText with ".Header" appended as the key into the parent control's localization resource file. Without providing a local resource file from which to pull the localized heading text, the column headings will indeed be empty.

I "think" (but have not verified from looking at the code) the reason this works when AutoGenerateColumns=true is that the setting of column header text to be the names of each column's DataField occurs during the databind after DNN's own localization of header text whould have occurred. If you create columns in the HTML markup and set a column's HeaderText to say "Name" but do not provide a localization resource file having a key of "Name.Header" and corresponsing value of "Name" you will also see that no header text is displayed for the column.

So, I don't see this as a "bug" but rather a design decision. It would be good if the DnnGrid would expose a property such as Localize to disable this automatic header localization in cases where the developer does not wish to provide a localization resource file.

 


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/24/2012 11:39 AM
 

Thank you, Bill

I have just replaced dnnGrid by original Telerik RadGrid and everything is working fine.

So, I agree with you, that design decision is not good. I think that hard-coded elements in DotNetNuke should be minimized. Grid is thing which in the most situation used for dynamic, programmatically created data, so request to have resource file for each Grid with column headers makes DnnGrid not useable in real business applications. I hope, that DotNetNuke team did not have similar decisions in other parts of DotNetNuke.

Val

 

 

 

 

 

 

 
New Post
11/9/2012 3:23 PM
 
I just ran into this issue too. There definitely needs to be a way to programatically override the localization feature.

David O'Leary
Efficion Consulting
 
New Post
12/3/2012 2:00 AM
 
I am also facing same problem
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...dnnGrid  -  programatically creates Columns without HeadersdnnGrid - programatically creates Columns without Headers


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