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

HideRow

3 Answers 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thomas Rozzi
Top achievements
Rank 1
Thomas Rozzi asked on 19 Apr 2010, 04:25 PM
Hide Row isn't hiding other RadControls in a RadGrid IE7 Works in Firefox 3.5

Telerik control version 2009.3.1208.20

Thanks
Thomas

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 Apr 2010, 10:07 AM
Hello Thomas,

Internet Explorer has a problem, which leads to positioned elements always being displayed, even inside table rows with a display:none style. A possible workaround is to set a CSS class to all hidden rows and then use the following CSS rule:

.hiddenRowClass  *
{
       position:static !important;
}

Best wishes,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Thomas Rozzi
Top achievements
Rank 1
answered on 21 Apr 2010, 03:21 PM
Can you provide code snippet for adding that class to hidden rows.

The Javascript I am using for hiding the rows is:

radgrid.get_masterTableView().hideItem(index);



Thanks
Thomas
0
Dimo
Telerik team
answered on 22 Apr 2010, 08:30 AM
Hi Thomas,

For example:

var item;
var masterTable = radgrid.get_masterTableView().get_element();
if (masterTable && masterTable.tBodies[0])
{
    item = masterTable.tBodies[0].rows[index];
}
 
if (item)
{
    Sys.UI.DomElement.addCssClass(item, "hiddenRowClass");
}
 
// Use Sys.UI.DomElement.removeCssClass(item, "hiddenRowClass"); when showing the row


Best wishes,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Thomas Rozzi
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Thomas Rozzi
Top achievements
Rank 1
Share this question
or