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

Adding two rows inside one do not raise CellDoubleclick event

1 Answer 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
FMorales
Top achievements
Rank 1
FMorales asked on 11 Nov 2014, 02:59 PM
Hi, 

I am trying to setup the grid in the way that when ther user add a new item to the grid, it show something that the following html table:

<table>
  <tr>
       <td>Name</td>
       <td>Surname</td>
  </tr>
  <tr>
       <td colspan ='2'>Gender</td>
  </tr>
</table

Something like 2 rows in one

All works fine, when I add a new item to the grid it greate the layout correctly, but when I perform click on the cell of the second "subrow", grid do not raise CellDoubleClick event, it only raise the event if a click on the first subrow.

Any help would be appreciated.

this.radGridControlSelection.BeginInit();
this.radGridControlSelection.DataSource = this.dataList;           
 
HtmlViewDefinition view = new HtmlViewDefinition();
 
this.radGridControlSelection.ViewDefinition = view;
 
view.RowTemplate.Rows.Add(new RowDefinition());
view.RowTemplate.Rows.Add(new RowDefinition());
 
view.RowTemplate.Rows[0].Cells.Add(new CellDefinition("Name"));           
view.RowTemplate.Rows[0].Cells.Add(new CellDefinition("Surname"));
 
view.RowTemplate.Rows[1].Cells.Add(new CellDefinition("Gender"));
view.RowTemplate.Rows[1].Cells[0].ColSpan = 2;
 
this.AsignTitlesToRadGridControlSelection();

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 14 Nov 2014, 09:37 AM
Hi Francisco,

Thank you for contacting us.

I was not able to reproduce the observed issue on my side. I have created similar view definition but the event is fired for all cells. I have attached my test project. Could you please check it and let me know how it differs from your real setup? 

I am looking forward to your reply.

Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
FMorales
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or