RadDatePicker in GridTemplateColumn

6 posts, 0 answers
  1. Adam
    Adam avatar
    177 posts
    Member since:
    Oct 2012

    Posted 23 Jun 2008 Link to this post

    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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Jun 2008 Link to this post

    Hi Adam,

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

    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Adam
    Adam avatar
    177 posts
    Member since:
    Oct 2012

    Posted 27 Jun 2008 Link to this post

    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?
  5. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 30 Jun 2008 Link to this post

    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
  6. Adam
    Adam avatar
    177 posts
    Member since:
    Oct 2012

    Posted 30 Jun 2008 Link to this post

    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
  7. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 30 Jun 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017