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

Page Index changed When click on add new record of command item template button

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sweta
Top achievements
Rank 1
sweta asked on 06 Aug 2010, 06:14 AM

Hi,

i'm using radgrid to display, insert, edit and delete record. i'm using latest telerik dll of vs2010. and i'm working in vs2008.
i'm using SqlDatasource as datasourceid.
To insert new record i'm using EditFormSettings. i have button event specified in CommandItemTemplate.
Insert, Update, Delete functionality works fine. but it creating problem with insert button.
when i click on insert button Insert record template displayed on last page of grid.
suppose i have 2 pages in radgrid. currently i'm on first page and click on insert button then insert template is displayed on top of the 2nd page. it should display on top of the first page.

Please guide me on this issue.

thanks
Sweta

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Aug 2010, 07:22 AM
Hello Sweta,

You can dispaly the insert form on first page of grid by setting InsertItemPageIndexAction property of MasterTableView.

ASPX:
<MasterTableView  CommandItemDisplay="Top"   InsertItemPageIndexAction="ShowItemOnFirstPage">

Thanks,
Princy.
Tags
Grid
Asked by
sweta
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or