Funny Problem with GridView and formatting

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/29/2012 5:59:12 AM
Gravatar
Total Posts 42

Funny Problem with GridView and formatting

HI

I have been working on this problem for about three weeks now. I'm currently testing a number of solutions without much luck.

Before a write a full report ( which I'm currently doing) I thought i might ask a simple question first.

What I'm trying to do is create a simple Gridview with two columns , with one column being a numric (money) value. This would be right justified.

I've used the standard (ItemStyle-HorizontalAlign="Right") to right justify the numeric value whthout any luck. The Gridview  has been bulit into a custom control .

Note1: To over come this problem I have used the CSS ( .TARight { float:right;background:#22FFFF; }  ) to  force the CSS on the item . The background color was to prove the CSS was being used.

Note2: Included the ASP>NET on a custom page ,  same problem.

Note 3 : None MP ASPX web page , but with my business logic and all GridView style functions worked... So it must be something to do with MP.

 

NOW HERE IS THE FUNNY BIT

If i move the custome control to one of the side content areas ( Left or Right) the gridview formating works.

So why would this work on the side content areas put not in the central content area ?

When the Control/GridView is displayed in the central content area there is a border (grid lines) around it , when none was selected and no border is displayed in the side content areas.

Note: I also changed the skin three times to ensure to make sure it was not a template problem. All the Airtisteer skins had the problem. But in the JqueryUI skin(s)  it works fine

Has anyone else had a problems like this ?

 

Regards

 

Lee Berry

 

 

 

3/29/2012 1:00:46 PM
Gravatar
Total Posts 18439

Re: Funny Problem with GridView and formatting

You need to look in the css for things that may be styling it, or use Firbug to find out what styles are applied from what style rules.

Hope that helps,

Joe

4/2/2012 8:16:45 PM
Gravatar
Total Posts 42

Re: Funny Problem with GridView and formatting

Hi Joe

thanks for that info ...

found the problem...within the Airtisteer generated CSS , the standard HTML tags ,Table , TH , TD  and TR are defined.

would have to looking more into CSS on how to override theses definitions. Tried to override/clear the CSS definitions but could not get them to work.

in the mean time i have switched to the jquery skin and will leave the CSS Airtisteer issue until later.

back to some real coding :)

 

Thanks

 

Lee

 

 

You must sign in to post in the forums. This thread is closed to new posts.