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

GridPaging links set to disabled even though paging is on.

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wade
Top achievements
Rank 1
Wade asked on 30 Jan 2013, 06:55 PM
I have a problem where all the links for the pages are set to "disabled" even though they have been enabled in the control and are showing up. 

Here is my declaring code:

<!-- TAB 1 -->
<asp:Panel ID="panelTab1" runat="server">
    <div>
        <telerik:RadGrid ID="DataFeedGrid" runat="server" AllowSorting="true" AllowPaging="true"
            AllowCustomPaging="true" OnSortCommand="Grid_Sorting" OnPageIndexChanged="Grid_Paging"
            Skin="Vista" meta:resourcekey="DataGrid">
            <MasterTableView AutoGenerateColumns="False" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="false"
                 NoMasterRecordsText="No records match the search criteria.">
                <Columns>
                    <telerik:GridBoundColumn
                        ItemStyle-Width="125px" meta:resourcekey="GridBoundColumn1" />
                    <telerik:GridBoundColumn
                        ItemStyle-Width="100px" meta:resourcekey="GridBoundColumn2" />
                    <telerik:GridTemplateColumn >
                        <HeaderTemplate>
                            <asp:CheckBox ID="cbHdrFlightExplorer" runat="server" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbFlightExplorer" runat="server"  />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
            <AlternatingItemStyle BackColor="#E9E9E9" />
            <PagerStyle Mode="NumericPages" />
            <ClientSettings>
                <ClientEvents OnGridCreated="OnClientGridCreated" />
            </ClientSettings>
        </telerik:RadGrid>
    </div>

Here is the code in question it generates in relation to paging:
<td class="rgPagerCell NumericPages"><div class="rgWrap rgNumPart">
                        <a onclick="return false;" disabled="disabled" class="rgCurrentPage"><span>1</span></a><a disabled="disabled"><span>2</span></a><a disabled="disabled"><span>3</span></a><a disabled="disabled"><span>4</span></a>
                    </div><div class="rgWrap rgInfoPart">
                          Displaying page 1 of 4, items 1 to 2 of 8.
                    </div></td>

I can not find any code client side or server side that causes this behavior. 

Can anyone help?

1 Answer, 1 is accepted

Sort by
0
Wade
Top achievements
Rank 1
answered on 01 Feb 2013, 07:25 PM
Ok i figured out that it was because the grid was being disabled so that all the checkboxes in one of the coulmns could be set to disabled. I toyed around with using the readonly property but that was 1000000% useless. 

I don't understand why there isn't a way to disable the grid but still allow paging. 

I managed to solve it by leaving the grid enabled and every time a paging call is made firing off a clientside event that runs a jquery function that disables all the checkboxs for me. 

Tags
Grid
Asked by
Wade
Top achievements
Rank 1
Answers by
Wade
Top achievements
Rank 1
Share this question
or