Adding two rows inside one do not raise CellDoubleclick event

2 posts, 0 answers
  1. FMorales
    FMorales avatar
    26 posts
    Member since:
    Aug 2014

    Posted 11 Nov 2014 Link to this post

    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();
  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 14 Nov 2014 Link to this post

    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.

     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top