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

Can't able to view hidden columns

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aswin S
Top achievements
Rank 1
Aswin S asked on 19 Jul 2010, 07:45 AM
Here is my issue,

I have 15 columns radgrid. I didn't set any width property to my grid.
I can able to view all 15 columns in the grid using the browser's horizontal scroll bar.
Using the HeaderContextMenu i had hidden last 10 columns in the grid.
Then i made a sort in a column which causes a postback.
Now, there is no horizontal scroll bar in my page and balance 5 columns in my grid were visible in single screen.
Then i made all the hidden columns back to visible using the HeaderContextMenu.
But, i can't able to see the columns that i made visible. I can't able to see the horizontal scroll bar either.
if i performed a postback using columnsort or columnfilter, i can see the columns along with the horizontal scroll bar.

I guess you can understand my problem. Pls help and accept my aplogies for bad English.

<telerik:RadGrid Skin="Vista" OnNeedDataSource="dsRFP_Selecting" ShowGroupPanel="True"
        AllowFilteringByColumn="true" AutoGenerateColumns="false" AllowPaging="true"
        AllowSorting="true" ID="grid1" runat="server" OnPreRender="RadGrid1_PreRender"
        OnItemCommand="RadGrid1_ItemCommand">
        <GroupingSettings CaseSensitive="false" />
        <MasterTableView GroupLoadMode="Server" HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerOnDemand"
            DataKeyNames="cr_id,rfp_number" EnableHeaderContextMenu="true">
            <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="images/expand.gif"
                    HeaderStyle-Width="10Px" UniqueName="EditCommandColumn1">
                </telerik:GridEditCommandColumn>
                <telerik:GridTemplateColumn HeaderStyle-Width="350Px" FilterControlWidth="250Px"
                    SortExpression="cr_name_og" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true"
                    ShowFilterIcon="false" DataField="cr_name_og" HeaderText="RFP Title [Click link to open Published RFP PDF]"
                    GroupByExpression="cr_name_og Group By cr_name_og">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblCRname" Text='<%# Eval("cr_name") %>'></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn HeaderStyle-Width="80Px" FilterControlWidth="70Px" CurrentFilterFunction="StartsWith"
                    AutoPostBackOnFilter="true" ShowFilterIcon="false" SortExpression="rfp_number"
                    HeaderText="RFP Number" HeaderButtonType="TextButton" DataField="rfp_number"
                    UniqueName="rfp_number" />
                <telerik:GridBoundColumn HeaderStyle-Width="150Px" CurrentFilterFunction="Contains"
                    AutoPostBackOnFilter="true" ShowFilterIcon="false" SortExpression="client_name"
                    HeaderText="Client Name" HeaderButtonType="TextButton" DataField="client_name"
                    UniqueName="client_name" />
                <telerik:GridBoundColumn HeaderStyle-Width="150Px" CurrentFilterFunction="Contains"
                    AutoPostBackOnFilter="true" ShowFilterIcon="false" SortExpression="cr_client_contact"
                    HeaderText="Client Contact" HeaderButtonType="TextButton" DataField="cr_client_contact"
                    UniqueName="cr_client_contact" />
                <telerik:GridBoundColumn HeaderStyle-Width="115Px" DataFormatString="{0:MM/dd/yyyy}"
                    SortExpression="cr_publish_dt" HeaderText="Published Date" DataField="cr_publish_dt"
                    UniqueName="cr_publish_dt" FilterListOptions="VaryByDataType" DataType="System.DateTime" />
                <telerik:GridBoundColumn HeaderStyle-Width="150Px" CurrentFilterFunction="Contains"
                    AutoPostBackOnFilter="true" ShowFilterIcon="false" SortExpression="program_mgr_name"
                    HeaderText="Program Manager" HeaderButtonType="TextButton" DataField="program_mgr_name"
                    UniqueName="program_mgr_name" />
                <telerik:GridBoundColumn HeaderStyle-Width="150Px" CurrentFilterFunction="Contains"
                    AutoPostBackOnFilter="true" ShowFilterIcon="false" SortExpression="cr_dev_status"
                    HeaderText="Current Status" HeaderButtonType="TextButton" DataField="cr_dev_status"
                    UniqueName="cr_dev_status" />
                <telerik:GridBoundColumn HeaderStyle-Width="50Px" CurrentFilterFunction="StartsWith"
                    AutoPostBackOnFilter="true" ShowFilterIcon="false" SortExpression="office_cd"
                    HeaderText="Office" HeaderButtonType="TextButton" DataField="office_cd" UniqueName="office_cd" />
                <telerik:GridBoundColumn HeaderStyle-Width="115Px" DataFormatString="{0:MM/dd/yyyy}"
                    SortExpression="cr_task_dt" HeaderText="Next Date to Contact" DataField="cr_task_dt"
                    UniqueName="cr_task_dt" FilterListOptions="VaryByDataType" DataType="System.DateTime" />
                <telerik:GridBoundColumn HeaderStyle-Width="150Px" CurrentFilterFunction="Contains"
                    AutoPostBackOnFilter="true" ShowFilterIcon="false" SortExpression="cr_cmpgn_status"
                    HeaderText="Campaign Status" HeaderButtonType="TextButton" DataField="cr_cmpgn_status"
                    UniqueName="cr_cmpgn_status" />
                <telerik:GridBoundColumn HeaderStyle-Width="115Px" DataFormatString="{0:MM/dd/yyyy}"
                    SortExpression="cr_due_dt" HeaderText="Proposal Due Date" DataField="cr_due_dt"
                    UniqueName="cr_due_dt" FilterListOptions="VaryByDataType" DataType="System.DateTime" />
                <telerik:GridBoundColumn HeaderStyle-Width="50Px" CurrentFilterFunction="Contains"
                    AutoPostBackOnFilter="true" ShowFilterIcon="false" SortExpression="cr_category_code"
                    HeaderText="Category" HeaderButtonType="TextButton" DataField="cr_category_code"
                    UniqueName="cr_category_code" />
                <telerik:GridBoundColumn HeaderStyle-Width="50Px" DataType="System.Int32" SortExpression="proposal_count"
                    HeaderText="Proposal Count" HeaderButtonType="TextButton" DataField="proposal_count"
                    UniqueName="proposal_count" />
                <telerik:GridBoundColumn HeaderStyle-Width="50Px" DataType="System.Int32" SortExpression="intent_count"
                    HeaderText="Intent Count" HeaderButtonType="TextButton" DataField="intent_count"
                    UniqueName="intent_count" />
            </Columns>
            <EditFormSettings UserControlName="detail.ascx" EditFormType="WebUserControl">
                <EditColumn UniqueName="EditCommandColumn1">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder"
            EnableRowHoverStyle="false" AllowDragToGroup="true">
            <Selecting AllowRowSelect="True"></Selecting>
            <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True">
            </Resizing>
        </ClientSettings>
    </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 21 Jul 2010, 11:28 AM
Hello Aswin,

I am not able to reproduce the described problem. You can find attached to this message a simple test page. Try it out and let me know how to modify it in order to reproduce the issue.


Sincerely yours,
Pavel
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
Aswin S
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Share this question
or