Products

Solutions

Resources

Partners

Community

About

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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryHiding an unwanted row in the Repository DashboardHiding an unwanted row in the Repository Dashboard
Previous
 
Next
New Post
10/4/2008 2:01 AM
 

Hi,

I have an empty row showing in my dashboard which I'm very keen to be rid of:

<table id="dnn_ctr851_RepositoryDashboard_DashTable" class="normal" cellspacing="0" cellpadding="0" border="0" style="border-width: 0px; width: 100%; border-collapse: collapse;">
<tbody>
<tr valign="top" style="width: 100%;">
<td align="left" valign="top" style="width: 100%;">
<table id="dnn_ctr851_RepositoryDashboard_lstObjects" cellspacing="0" border="0" rules="all" style="border-width: 0px; width: 100%; border-collapse: separate;">
<tbody>
<tr class="normal">
<td> </td>
</tr>
<tr class="normal">
<td>
<a id="dnn_ctr851_RepositoryDashboard_lstObjects_ctl02_hypDownload" class="normal" href=" __doPostBack('dnn...

It is not in the portfolio files anywhere nor in the html module i have above it. I suspect it is in the repository.ascx file outside of the template folders. eg.

<asp:DataGrid ID="lstObjects" runat="server" AllowSorting="True" Width="100%" AllowPaging="True"
                OnItemCommand="lstObjects_ItemCommand" BorderWidth="0" BorderStyle="None" OnPageIndexChanged="lstObjects_PageIndexChanged"
                ItemStyle-CssClass="normal" AlternatingItemStyle-CssClass="normal" AutoGenerateColumns="False"
                PageSize="5" PagerStyle-Visible="False" Visible="True" Enablev13wstat3="True"
                Style="border-collapse: separate;" ShowHeader="False">
                <HeaderStyle CssClass="normal" />
                <FooterStyle CssClass="normal" />
                <Columns>
                    <asp:TemplateColumn>
                        <ItemTemplate>
                            <asp:Label ID="TheFileName" runat="server" Visible="False">
                                <%# DataBinder.Eval(Container.DataItem,"FileName")%>
                            </asp:Label>
                            <asp:PlaceHolder ID="PlaceHolder" runat="server" Visible="False"  />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                </Columns>
            </asp:DataGrid>
        </asp:TableCell>
    </asp:TableRow>
</asp:Table>
<asp:Table ID="FooterTable" Width="100%" runat="server" CssClass="normal" CellSpacing="0" CellPadding="0">
    <asp:TableRow>
        <asp:TableCell>
            <asp:PlaceHolder ID="fPlaceHolder" runat="server"  />
        </asp:TableCell>

This dashboard adds a tagline directly beneath a page heading in an HTML module, so I have stripped all tables out of the rep html templates so that the repository file is only FILEUPLOAD and the dashboard is only FILENAME. Works perfectly except the dashboard tagline has one empty row above it which I need to find to get rid of so it is flush beneath the page heading...

 
New Post
12/7/2008 8:30 PM
 

Hi cowontherun,

Did you ever resolve this issue?  It appears that I'm having the same trouble... (my thread...)

If not, can you tell me your hosting conifguration? i.e. the OS of your server (is it Windows 2008 server?), is it shared, who's it with?  I'd like to be able to track down what's causing this, as it's not happening on my local host (running XP).

If you did resolve it, how'd you fix it?

Thanks,

James.

 

 

 
New Post
12/7/2008 11:41 PM
 

heh... this one's nearly impossible to figure out:

In DesktopModules/Dashboard/RepositoryDashboard.ascx
In the DataGrid tag for 'lstObjects', add ShowHeader="false"

Rob

 
New Post
12/8/2008 1:53 AM
 

ROBAX's fix sounds like the best solution to me.

If, however, you absolutely can't (or simply don't want to) change any core code, you could do the following (on a per-module basis):

In your module's SETTINGS->ADVANCED SETTINGS->HEADER setting, make a note of your module's ID (hint: it's in the URL when you're on the module's SETTINGS page) and then add the following to the HEADER setting:

   < style >
     #dnn_ctr(your module's ID here)_RepositoryDashboard_lstObjects > tr:first-child { display: none }
   < /style >

NOTE:  This uses CSS pseudo-class which may or may not be supported by your favorite browser (works in IE7).  Read more here:  http://www.w3schools.com/css/css_pseudo_classes.asp

As I said before, ROBAX's solution is easily the best IMO but this (use of pseudo-classes) is another trick to add to the toolbelt....

-mamlin


esmamlin atxgeek.me
 
New Post
12/8/2008 5:38 AM
 

ROBAX wrote

heh... this one's nearly impossible to figure out:

In DesktopModules/Dashboard/RepositoryDashboard.ascx
In the DataGrid tag for 'lstObjects', add ShowHeader="false"

Rob

 

Excellent! Mark this one as solved. Many thanks.  

However, it's a slight disservice to the repository module to say it's nearly impossible to figure out. It's pretty straightforward. I was aware of this file and had made some changes to it very early on in my repository module fiddling days.  20 years in the IT industry has not taught me to check my sourcesafe change log... I forgot that I'd made the change locally then couldn't work out why my live and local were different. I checked the 'Repository' folder for differences between the sites, but not the dashboard.  I guess I was distracted by the fact that the templates for the dashboard and the repository are stored in the repository folder... My bad!

Again, many thanks for pointing me in the right direction.

But wait, there's more - Not only did you solve the issue of the header, but you prompted me to further investigate the issue of the borders in Chrome and Opera.  This issue was also fixed by a change to the RepositoryDashboard.aspx file. In the "lstObjects" datagrid, in the template for the column, I added:

<asp:TemplateColumn ItemStyle-BorderWidth="0">

and the border behaved as expected.  Good border.

Thanks again to both of you for your replies.

James.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryHiding an unwanted row in the Repository DashboardHiding an unwanted row in the Repository Dashboard


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