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

Gridlines disappear on Filter row

4 Answers 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patrick Stovall
Top achievements
Rank 1
Patrick Stovall asked on 22 Jul 2008, 02:26 PM
How do I resolve the following:

I have columns that are filterable so they have the filter options below the column headers.  In that grid I also have Grid buttons (images) for editing, copy, delete, etc.  In the columns with those images, the filter row is not displaying grid lines.  How do I get the grid lines on the filter row to show up for the columns that are not filterable?

Thanks.
Pat.

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Jul 2008, 06:08 AM
Hi Patrik,

Try setting the GridLines to Vertical and see if it helps.

ASPX:
 <telerik:RadGrid ID="RadGrid1"  AllowFilteringByColumn="True" DataSourceID="SqlDataSource2" 
             GridLines="Vertical" > 
             



Thanks
Shinu.
0
Dimo
Telerik team
answered on 23 Jul 2008, 07:03 AM
Hello Patrick,

I have moved this forum thread in the classic RadGrid forum.

Internet Explorer is unable to display borders of empty table cells and that is why the borders disappear when you disable filtering for a given column. The workaround is to add a &nbsp; string in those table cells in item created. For example:

ASPX

<rad:RadGrid 
    ID="RadGrid1" 
    runat="server" 
    OnItemCreated="RadGrid1_ItemCreated"
 


C#

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) 
    if (e.Item is GridFilteringItem) 
    { 
        (e.Item as GridFilteringItem)["ColumnUniqueName"].Text = "&nbsp;"
    } 


This problem is fixed in RadGrid for ASP.NET AJAX, which add the &nbsp; string automatically for all empty table cells (except template cells).


Regards,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Patrick Stovall
Top achievements
Rank 1
answered on 23 Jul 2008, 12:52 PM
I think you jumped too soon in regards to moving the thread to the classic version of the RadControls forum.  This is happening in the latest release of the RadGrid for Ajax.  So needless to say, it needs to be moved back to the proper forum location.

As for a resolution, I will try what has been described.
0
Dimo
Telerik team
answered on 23 Jul 2008, 03:48 PM
Hello Patrick,

OK, in this case, could you please provide some more information about your scenario (code snippet or a sample page), so that we can reproduce and investigate the problem locally. Thanks.


All the best,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Patrick Stovall
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Dimo
Telerik team
Patrick Stovall
Top achievements
Rank 1
Share this question
or