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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Gridview PagerStyle CssClass property not workingGridview PagerStyle CssClass property not working
Previous
 
Next
New Post
5/3/2007 2:28 PM
 

I don't think that this is DNN specific.  But I figured that DNNers were the best people to ask.

 

I have a gridview which has a pager.  I am trying to set the pager CssClass = "NormalBold", but it isn't working.  I have tried doing this via the properties of the grid, the page source and the code behind file.  None work.  I see that other people are having the same problem, but I am not seeing the solution.

 

Stuart


Hilbert Solutions, LLC
Owner, Hilbert Solutions, LLC
http://www.HilbertSolutions.com
A DNN Service Provider
From Module Development to DNN Upgrades, your one stop DNN Shop
 
New Post
5/4/2007 8:51 AM
 

Please check whether the Style Sheet in which style is written is loading properly.

Check this in Page View Source mode.


"Knowledge Sharing Matters!"
 
New Post
5/4/2007 8:55 AM
 

I am using DNN's NormalBold.  I know the stylesheet is loading properly because it works for other parts of the grid, like RowStyle.

Stuart


Hilbert Solutions, LLC
Owner, Hilbert Solutions, LLC
http://www.HilbertSolutions.com
A DNN Service Provider
From Module Development to DNN Upgrades, your one stop DNN Shop
 
New Post
5/5/2007 12:42 AM
 

I think you should check the rendered html code to verify that the rendered grid is actually getting the style that you applied.

If style is applied properly then please make sure that NormalBold style is not overriden with the same name in any style sheet that are applied on the page.

You can search the NormalBold style in the html code if there is any inline css style.


"Knowledge Sharing Matters!"
 
New Post
5/7/2007 1:48 PM
 

Here is the code that is rendered for the GridView.

 

<div>
   <table class="Normal" cellspacing="0" cellpadding="4" align="Center" rules="cols" bordercolor="#CCCC99" border="1" id="dnn_ctr394_ViewUserDirectory_grdDirectory" style="color:#000000;background-color:#FFFFFF;border-color:#CCCC99;border-width:1px;border-style:None;font-style:normal;border-collapse:collapse;">
    <tr class="SubHead" align="left" valign="bottom" style="color:#FFFFFF;background-color:#999999;font-weight:normal;font-style:normal;text-decoration:none;">
     <th scope="col" style="color:#FFFFFF;border-color:#CCCC99;border-width:1px;border-style:Solid;">Display Name</th><th scope="col" style="color:#FFFFFF;border-color:#CCCC99;border-width:1px;border-style:Solid;">First Name</th><th scope="col" style="color:#FFFFFF;border-color:#CCCC99;border-width:1px;border-style:Solid;">Last Name</th>
    </tr><tr class="Normal" align="left" style="color:#000000;background-color:#FFFFFF;border-color:#000000;border-style:None;font-style:normal;text-decoration:none;">
     <td>Administrator Account</td><td>Administrator</td><td>Account</td>
    </tr><tr class="Normal" align="left" valign="bottom" style="color:#000000;background-color:#FFFFCC;border-color:#000000;border-style:None;font-weight:normal;font-style:normal;text-decoration:none;">
     <td>Erick Hilbert</td><td>Erick</td><td>Hilbert</td>
    </tr><tr class="NormalBold" align="left" valign="bottom" style="color:#FFFFFF;background-color:#999999;border-color:#000000;border-style:None;font-size:8pt;font-weight:bold;font-style:normal;text-decoration:none;">
     <td colspan="3"><table border="0">
      <tr>
       <td><span>1</span></td><td><a href=" __doPostBack('dnn$ctr394$ViewUserDirectory$grdDirectory','Page$2')" style="color:#FFFFFF;">2</a></td>
      </tr>
     </table></td>
    </tr>
   </table>
  </div>

The following code seems to be Pager specific...

<tr class="NormalBold" align="left" valign="bottom" style="color:#FFFFFF;background-color:#999999;border-color:#000000;border-style:None;font-size:8pt;font-weight:bold;font-style:normal;text-decoration:none;">
     <td colspan="3"><table border="0">
      <tr>
       <td><span>1</span></td><td><a href=" __doPostBack('dnn$ctr394$ViewUserDirectory$grdDirectory','Page$2')" style="color:#FFFFFF;">2</a></td>
      </tr>
     </table></td>
    </tr>

 

Here is a screenshot of what is rendered.  What am I doing wrong?

Thanks for the time,

Stuart


Hilbert Solutions, LLC
Owner, Hilbert Solutions, LLC
http://www.HilbertSolutions.com
A DNN Service Provider
From Module Development to DNN Upgrades, your one stop DNN Shop
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Gridview PagerStyle CssClass property not workingGridview PagerStyle CssClass property not working


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