Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Prevent CalendarExtender from Adopting Table CSS

$
0
0

Ok, my eyes are bleeding and I spent 4 hours last night narrowing down my problem to the stupid table CSS in which the calendarextender/textbox resides in.

I'm using a CalendarExtender inside a GridView ItemTemplate along with a textbox.  Both of thse are withii an Ajax UpdatePanel but I don't think that is causing any problem at all.

Long story short, the GridView is based on CSS and the rowstyle/altrow style have the following spacing.  With the spacing in place the Ajax CalendarExtender is hosed ...days missing, partial months, etc.  As soon as Ii set the padding to 0 in the grid CSS the calendar displays perfectly.

I have already copied/created a ajax__calender.css file with the default calendar css rules but that didn't help.  How do I override the table td tr, etc. rules of the gridview within the ajax calendar CSS so the gridview table crap isn't picked up by the calendar control?  I don't want to have to alter the gridview CSS and make all my gridviews look like crap for the sake of making a calendar display correctly.

http://i392.photobucket.com/albums/pp9/tophog01/Misc/gridview.png

 Help?

 .yuigrid.rowstyletd,.altrowstyletd

{

padding:4px10px4px10px;border-right:solid1px#cbcbcb;

}

If I set the above rule for the gridview to the below everything is fine.  Aggravating!

padding: 0px;

border-right:solid1px#cbcbcb;

Viewing all articles
Browse latest Browse all 5678

Trending Articles