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

Empty grid with headers

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brendan Vogt
Top achievements
Rank 1
Brendan Vogt asked on 21 Aug 2008, 02:02 PM
Hi,

I have a grid which is used for 2 purposes.  The page on which it is receives a querystring name ClientId which contains the ID of the client.  Then all the accounts for that client is populated into a grid.  If the page receives no querystring at all, then it means that it is new client.  I need this same grid (which displayed the accounts), to be empty with the Add link on it.  In this way I can add new accounts for a new client.

What must i do?

Thanks
Brendan

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 Aug 2008, 02:18 PM
Hi Brendan,

You have to set ShowHeadersWhenNoRecords="true" and also, you must have at least one non-autogenerated column. For example:


<telerik:RadGrid ID="RadGridEmpty" runat="server">
    <MasterTableView CommandItemDisplay="Top" ShowHeadersWhenNoRecords="true">
        <Columns>
            <telerik:GridBoundColumn DataField="....." HeaderText="..." />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>



Sincerely yours,
Dimo
the Telerik team

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