Click here to Skip to main content
15,913,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i am using calender extender inside gridview in my website, which basically shows only mo,tu,we,thu instead of showing whole 7 days a week, can any one help me in this, in all other place expect grid vew the calender extender is working fine.

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<pre lang="xml"><td align="center" style="border: solid 1px #ddd">
                           <asp:Label runat="server" ID="LabelBoxShiftDate" Text='<%# Bind("DateReported") %>' Visible='<%# Eval("DateReported") != null %>' />
                           <asp:TextBox runat="server" ID="TextBoxShiftDate" Text='<%# Bind("DateReported") %>' Visible='<%# Eval("DateReported") == null %>' />
                           <cc1:CalendarExtender ID="CalendarExtender1" runat="server"
                                   TargetControlID="TextBoxShiftDate">
                               </cc1:CalendarExtender>
                           <asp:CompareValidator runat="server" ID="CompareValidatorDate" ControlToValidate="TextBoxShiftDate" Operator="DataTypeCheck" Type="Date" ErrorMessage="Please enter a valid date" />
                       </td>


Many Thanks
Posted
Updated 8-Sep-10 5:02am
v2

In your TD add Padding and height attribute.
style="border: solid 1px #ddd; padding: 0px; height: auto;"

Mark as answer/Solution if its helpful to you.
Happy Coding ;)
 
Share this answer
 
Comments
Dave Paras 6-May-11 2:37am    
Solution 2 and 3 has been deleted as Table and TR is automatically added.
Check the column width, is it being cut off?
 
Share this answer
 
Comments
muralekarthick 8-Sep-10 10:59am    
I checked its not being cut off

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900