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

Editting in RadGrid

4 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Remya
Top achievements
Rank 1
Remya asked on 07 Mar 2012, 01:20 PM
Hi,

I want my radgrid to be in edit mode only when i clicks or enters the cell.I am not intented to put textbox or input columns inside the template..Is there any possible way to edit the bound column on click like editting in excel.

Help me
Thnx in advance

4 Answers, 1 is accepted

Sort by
0
Casey
Top achievements
Rank 1
answered on 07 Mar 2012, 04:59 PM
Hi Reyma,

Do you mean that you want to be able to place individual cells in edit mode when the user clicks on that cell, or do you want to whole row to go into edit mode when a user clicks in the row?

Casey
0
Remya
Top achievements
Rank 1
answered on 08 Mar 2012, 05:06 AM
Hi,

Thnx for replyng

I want the whole row be in edit mode when i enters/clicks any of the cell.
0
Accepted
Shinu
Top achievements
Rank 2
answered on 08 Mar 2012, 09:18 AM
Hello,

One suggestion is to put the cell in edit mode in ItemCommand event.
aspx:
<ClientSettings EnablePostBackOnRowClick="true"></ClientSettings>

C#:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
 if (e.CommandName == "RowClick")
 {
   GridDataItem item = (GridDataItem)e.Item;
   item.Edit = true;
 }
}

-Shinu.
0
Remya
Top achievements
Rank 1
answered on 09 Mar 2012, 06:04 AM
Hi,


Thnx alot for the reply..
Tags
Grid
Asked by
Remya
Top achievements
Rank 1
Answers by
Casey
Top achievements
Rank 1
Remya
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or