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

Grid inline edit Add New button Query

5 Answers 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karthik Kantharaj
Top achievements
Rank 1
Karthik Kantharaj asked on 13 Jun 2012, 06:06 AM
Hi Guys,

I saw the below link
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

In this can i move the Add New which is at the top to be placed out side of the grid i.e a button which does the Add new record operation

Thanks
Karthik.K

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 Jun 2012, 06:46 AM
Hello Karthik,

Try setting the CommandItemDisplay as shown below..
aspx:
<MasterTableView CommandItemDisplay="Bottom" >

Thanks,
Princy.
0
Karthik Kantharaj
Top achievements
Rank 1
answered on 13 Jun 2012, 07:18 AM
Hi Princy

Thank you

My question is i need the same functionality outside the grid that's my requirement
If i places your code add button will come to the bottom of the grid
i.e a separate asp button places outside grid and when clicked a new row added in grid

Please correct me if i am wrong

Thanks
Karthik.K
0
Princy
Top achievements
Rank 2
answered on 14 Jun 2012, 06:14 AM
Hello Karthik,

Try the following code to open insert form in an external button click.
C#:
protected void Add_Click(object sender, EventArgs e)
{
  RadGrid1.MasterTableView.IsItemInserted = true;
  RadGrid1.MasterTableView.Rebind();
}

Thanks,
Princy.
0
Karthik Kantharaj
Top achievements
Rank 1
answered on 14 Jun 2012, 07:28 AM
Hi Princy

Thank you

I will try this and let you know

Karthik.K
0
Karthik Kantharaj
Top achievements
Rank 1
answered on 18 Jun 2012, 05:45 AM
Hi Princy

Its working great
Thank you

Karthik.K
Tags
Grid
Asked by
Karthik Kantharaj
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Karthik Kantharaj
Top achievements
Rank 1
Share this question
or