Grid Visible False

3 posts, 0 answers
  1. Allan
    Allan avatar
    121 posts
    Member since:
    Jun 2008

    Posted 08 Nov 2012 Link to this post

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

    Posted 08 Nov 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Allan
    Allan avatar
    121 posts
    Member since:
    Jun 2008

    Posted 13 Nov 2012 Link to this post

    Thank you SHinu. Worked great.
Back to Top