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

Add New Record on Page Load

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dpos
Top achievements
Rank 1
dpos asked on 19 Feb 2009, 09:22 PM
Hi,

I have the Add New Record link at the bottom of my grid but I would like to automatically call the event and show the new empty record in the grid on page load. Is this possible?

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Feb 2009, 03:42 AM
Hi,

You can try out the following code to keep the grid in Insert mode on page load:
cs:
 protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        RadGrid1.MasterTableView.IsItemInserted = true
        RadGrid1.Rebind(); 
    } 

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