This is a migrated thread and some comments may be shown as answers.

RadDatePicker in GridTemplateColumn

5 Answers 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 23 Jun 2008, 05:06 PM
We have a checkbox and a RadDatePicker in a GridTemplateColumn using the Office2007 skin for the grid. For some reason, the RadDatePicker is showing up with the left and bottom borders inside the grid (meaning the border below the RadDatePicker and the border to the left of the input and to the left of the calendar icon). Below is the GridTemplateColumn that we are using:

<telerik:GridTemplateColumn HeaderText="Expiration" UniqueName="TemplateColumn1"
                                <ItemTemplate> 
                                    <asp:CheckBox ID="chkExpires" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.Expires") %>' />&nbsp; 
                                    <telerik:RadDatePicker ID="dtpExpires" runat="server" DbSelectedDate='<%# Bind("ExpireDate") %>'
                                        <DatePopupButton CssClass="radPopupImage_Default" /> 
                                        <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" Skin="WebBlue"
                                        </Calendar> 
                                        <DateInput Width="100%"
                                        </DateInput> 
                                    </telerik:RadDatePicker> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 

I need to get the borders gone because it doesn't look good and the DatePicker is taking up a lot more space than it needs to.

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Jun 2008, 05:06 AM
Hi Adam,

Go through the following forum link which discusses a similar issue.
Border Issue while implementing Calender in Rad Grid

Shinu.
0
Adam
Top achievements
Rank 1
answered on 27 Jun 2008, 04:08 PM
Unfortunately, I was not able to get the solution to work. I cannot add styles to the page because I'm using a content page inside of a master page and style tags cannot be added to content pages. But even when I output the styles to the page from code behind, I did not get the intended result. Is there a style that I can apply the input, calendar, or date picker as a whole that would get this to work?
0
Dimo
Telerik team
answered on 30 Jun 2008, 06:29 AM
Hi Adam,

The issue you are experiencing, should not occur with the latest version of RadGrid for ASP.NET AJAX. Are you by any chance using some older version? Or are you using some non-embedded customized version of the Office2007 skin for RadGrid?

Indeed, it is not correct to add CSS styles or register CSS files in the content page, however you can add those styles in a CSS file, which is registered in the masterpage.

Let us know if you need further advice.


Best wishes,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Adam
Top achievements
Rank 1
answered on 30 Jun 2008, 12:48 PM
We are using the latest version of the Grid and the Date Picker (released 5/15 I believe, which we downloaded and installed a week ago). If the issue should be fixed in this latest version (without having to apply the CSS styles), then something isn't right.

Thanks,

Adam
0
Dimo
Telerik team
answered on 30 Jun 2008, 12:56 PM
Hello Adam,

Well, in this case I will be glad if I can take a look at a live URL or a simple project, which reproduces the problem. If it turns out that we are missing some scenarios, we will fix the skins. Otherwise, we will tell you what is causing the visual glitch (you can use tools such as Firebug to find out, by the way).


Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Adam
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Adam
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or