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

EditMode="PopUp" & InsertItemPageIndexAction

2 Answers 181 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 01 Jun 2011, 05:44 PM

Are there any none issues with EditMode="PopUp" and InsertItemPageIndexAction="ShowItemOnFirstPage"

If I set EditMode="PopUp" the page index does not cahnge to the first page, or any page for that matter and newly inserted records aren't on page one.

This only seems to occur when EditMode="PopUp"

 

<MasterTableView EditMode="PopUp" Caption="Caption" CommandItemDisplay="Top"
                        NoMasterRecordsText="No Rows Returned!" DataKeyNames="ID" RetrieveNullAsDBNull="False"
                        HorizontalAlign="Center" BorderWidth="1" BorderColor="Gray" BorderStyle="Solid" 
                        InsertItemPageIndexAction="ShowItemOnFirstPage">

2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 06 Jun 2011, 04:09 PM
Hi Roger,

I followed your steps and was able to replicate the problem.
I will forward it to our developers so they can address it shortly.

Currently, you can handle the ItemCommand event of the grid and reset the grid current page index manually:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
    if(e.CommandName == RadGrid.InitInsertCommand)
    {
        (sender as RadGrid).CurrentPageIndex = 0;
    }
}

Check it out and let me know if this works for you.

Regards,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Roger Barnes
Top achievements
Rank 1
answered on 06 Jun 2011, 04:54 PM

Thanks for the reply, already done that as a work-around.  At least you where able to repro.

Thanks again
Tags
Grid
Asked by
Roger
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Roger Barnes
Top achievements
Rank 1
Share this question
or