I absolutely love the datepicker control. I have to say my favorite part beyond it 'just working' is the MinDate and MaxDate.
My situation is that I have an ASP.NET 2.0 DataList where every date field is editable (I hate the design, my client loves it). Unfortunately 5 datepickers for each row adds a lot of size to the rendered HTML content.
So far I've cut over 60KB from the output after finding
this post on using an external CSS file.
Now my question.
I see the datepicker's calendar renders as a table and that each TD is rendered as:
Code: HTML/ASPX
<td align="center" valign="top" style="height:16px"><div height="100%" >14</div></td>
What I would like to do is use a CSS class for the TD. Is this possible? It doesn't seem like much gain but it is repeated so many times it is definitely adding up.
Also, any other tips for cutting down the render weight? I don't want to call it bloat but I wanted to add that word for anyone else searching like I did.
I know there might be something I can do with the scripts to extract them to the server that might help too but I haven't worked with that yet.
Thanks.