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

Grid Visible False

2 Answers 119 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Allan
Top achievements
Rank 2
Allan asked on 08 Nov 2012, 06:46 AM
Is it possible to get data items in code behind if grid visible is False?
For Each dataItem As GridDataItem In rgd_Tasks.Items

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Nov 2012, 07:05 AM
Hi Allan,

Its not possible to get the data item when the visible is false. Try setting a CssClass for the RadGrid and set its Display to none in CSS instead of setting the visible property. Then you will be able to get the data item.

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" CssClass="RadGridDisplay" . . .>

CSS:
<style type="text/css">
    .RadGridDisplay
    {
        display:none !important;
    }
</style>

Thanks,
Shinu.
0
Allan
Top achievements
Rank 2
answered on 13 Nov 2012, 05:57 PM
Thank you SHinu. Worked great.
Tags
Grid
Asked by
Allan
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Allan
Top achievements
Rank 2
Share this question
or