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

First and Previous button not working in RadGrid

1 Answer 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
: Arumuga Vignesh
Top achievements
Rank 1
: Arumuga Vignesh asked on 25 Sep 2013, 06:01 AM

Hi  Arumugam,

Post the below issue in telerik.

I am using a radgrid with paging. In that next and last page is working but previous and first page buttons are not working.

<telerik:RadGrid ID="rgRole3" runat="server" Skin="Office2007"

        CssClass="rgrole1" onneeddatasource="rgRole3_NeedDataSource"

        AllowPaging="True" PagerStyle-AlwaysVisible="true" CellSpacing="0"

        GridLines="None" AllowSorting="True" AutoGenerateColumns="False" onupdatecommand="rgRole3_UpdateCommand">

<PagerStyle AlwaysVisible="True" PageSizeControlType="RadComboBox" Mode="NextPrevAndNumeric" ></PagerStyle>

 

        <ClientSettings>

            <Scrolling AllowScroll="True" UseStaticHeaders="true"  />

        </ClientSettings>

 

    <MasterTableView>

<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

 

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

 

<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"

            Created="True"></ExpandCollapseColumn>

    <Columns>

    <telerik:GridEditCommandColumn Display="true" HeaderStyle-Width="60px"

            CancelImageUrl="Cancel.gif" InsertImageUrl="Update.gif"

            UpdateImageUrl="Update.gif">

    <HeaderStyle Width="60px"></HeaderStyle>

    </telerik:GridEditCommandColumn>

 

<EditFormSettings>

<EditColumn UniqueName="EditCommandColumn1"

        FilterControlAltText="Filter EditCommandColumn1 column"

        CancelImageUrl="Cancel.gif" InsertImageUrl="Update.gif"

        UpdateImageUrl="Update.gif"></EditColumn>

</EditFormSettings>

 

<PagerStyle AlwaysVisible="True" PageSizeControlType="RadComboBox"></PagerStyle>

    </MasterTableView>

<clientsettings>

<Selecting AllowRowSelect="True" />

<scrolling allowscroll="True" UseStaticHeaders="true"  ScrollHeight="350px" /></clientsettings>

<FilterMenu EnableImageSprites="False"></FilterMenu>

    </telerik:RadGrid>

I have  searched all your demos and forums but I am not able to find the correct solution. Please let us know the correct solution

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 25 Sep 2013, 06:25 AM
Hi ,

I have tried your code and its working fine at my end.Can you please try the following code snippet and check if the paging works.

ASPX:
<telerik:RadAjaxManager ID="RadAjaxManager1" EnableAJAX="true" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rgRole3">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgRole3"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid ID="rgRole3" runat="server" Skin="Office2007" CssClass="rgrole1"
    EnableViewState="true" AllowPaging="True" PagerStyle-AlwaysVisible="true" CellSpacing="0"
    GridLines="None" AllowSorting="True" AutoGenerateColumns="True" OnNeedDataSource="rgRole3_NeedDataSource">
    <PagerStyle AlwaysVisible="True" PageSizeControlType="RadComboBox" Mode="NextPrevAndNumeric">
    </PagerStyle>
    <ClientSettings>
        <Scrolling AllowScroll="True" UseStaticHeaders="true" />
    </ClientSettings>
    <MasterTableView>
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
        </RowIndicatorColumn>
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"
            Created="True">
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridEditCommandColumn Display="true" HeaderStyle-Width="60px" CancelImageUrl="Cancel.gif"
                InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif">
                <HeaderStyle Width="60px"></HeaderStyle>
            </telerik:GridEditCommandColumn>         
        </Columns>
        <EditFormSettings>
            <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"
                CancelImageUrl="Cancel.gif" InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif">
            </EditColumn>
        </EditFormSettings>
        <PagerStyle AlwaysVisible="True" PageSizeControlType="RadComboBox"></PagerStyle>
    </MasterTableView>
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
        <Scrolling AllowScroll="True" UseStaticHeaders="true" ScrollHeight="350px" />
    </ClientSettings>
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
</telerik:RadGrid>

Thanks,
Princy
Tags
General Discussions
Asked by
: Arumuga Vignesh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or