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

Columns not showing up

1 Answer 363 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Allen
Top achievements
Rank 1
Allen asked on 24 Mar 2014, 04:20 PM

I have multiple radgrids on a single page. I have roughly 15 columns in one. Only 3 of the columns are set to display, however when running on my local machine only 2 of them display. In the developer tools of IE9 it shows it is being set as inline display: none. I have not set this and Have set it to display = true in my code with no luck. this is also happening on a two column grid where it is only displaying a single column in the grid. I am unsure of the issue and what is creating this. I have tried running IE in compatibility mode and have also tried different versions of IE.

I have to use IE 9 for this project.

RadGrid Code

<telerik:RadGrid ID="gridSRoster" OnItemDataBound="gridSRoster_ItemDataBound" OnDataBound="gridSRoster_DataBound" runat="server" Skin="Web20" CssClass="dvGridWrapper" Visible="false" BorderStyle="None" OnNeedDataSource="gridSRoster_NeedDataSource">
            <MasterTableView EditMode="InPlace" DataKeyNames="PERSID" AutoGenerateColumns="false" CssClass="autoShrink" Font-Size="10" BorderStyle="Solid">
                <HeaderStyle Font-Bold="true" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Height="15" />
                <AlternatingItemStyle BackColor="#B0C4DE" HorizontalAlign="Center" />
                <Columns>
                    <telerik:GridBoundColumn DataField="PERSID" UniqueName="PERSID" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FNAME" UniqueName="FNAME" Display="true" ItemStyle-HorizontalAlign="Left" HeaderText="Full Name"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="GRADE" UniqueName="GRADE" HeaderText="GRADE"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="UPC" UniqueName="UPC" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PARA" UniqueName="PARA" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ATCH_CODE" UniqueName="ATCH_CODE" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ASGN_UIC" UniqueName="ASGN_UIC" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ATCH_UIC" UniqueName="ATCH_UIC" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ATTACHED" UniqueName="ATTACHED" Display="false" HeaderText="atch"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DETACHED" UniqueName="DETACHED" Display="false" HeaderText="deta"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="TECHCODE" UniqueName="TECHCODE" Display="false" HeaderText="tech"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="AGRCODE" UniqueName="AGRCODE" Display="false" HeaderText="agr"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="intRosterID" UniqueName="intRosterID" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn Display="true" Visible="true" UniqueName="Hide">
                        <ItemTemplate>
                            <asp:LinkButton OnClientClick="return hide();" ID="btnNotIncluded" OnCommand="btnNotIncluded_Command" CommandArgument="<%#Container.ItemIndex %>" runat="server" Text="Hide" Visible="true" OnClick="btnNotIncluded_Click"></asp:LinkButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 27 Mar 2014, 12:23 PM
Hi Allen,

I took the provided aspx code and prepared a sample test page with it. The only thing I changed is that I set the Grid Visible property to true in order to display the grid. As you can see from the attached Grid.png screenshot three columns are shown in the grid as it should be, because only these columns are not hidden. Please examine the attached project and see what is the difference on your side. 

Regards,
Pavlina
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
Grid
Asked by
Allen
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or