clickevent dont fire on newrow

6 posts, 0 answers
  1. Pedro Filipe
    Pedro Filipe avatar
    8 posts
    Member since:
    Jan 2019

    Posted 21 Jan 2019 Link to this post

         Hi 

     

  2. Pedro Filipe
    Pedro Filipe avatar
    8 posts
    Member since:
    Jan 2019

    Posted 21 Jan 2019 in reply to Pedro Filipe Link to this post

    HI     

    i have a radgridview with with two images that fire a click do delete row and another to upload file.

     

    when i press on the  addnewrow button from the gridview, and go to write something on the newline, if i press on the images nothing append, the click event never fire. 

     

    how can add a click event on the newrow ?

     

     

     

    best

  3. Pedro Filipe
    Pedro Filipe avatar
    8 posts
    Member since:
    Jan 2019

    Posted 22 Jan 2019 Link to this post

    hi

     

    i done it.

     

    i achive it by doing this on cellclick event.

    if (clickedCell.RowElement is GridNewRowElement)
               {
                   radGridView1.Rows.AddNew();
                   radGridView1.Rows[radGridView1.Rows.Count - 1].Cells["NewLine"].Value = true;
                   
               }

     

  4. Dimitar
    Admin
    Dimitar avatar
    2841 posts

    Posted 23 Jan 2019 Link to this post

    Hello Pedro,

    If you are using GridViewCommandColumn you can use the CommandCellClick event. More information is available here: GridViewCommandColumn.

    Your solution is perfectly valid as well. 

    I hope this will be useful.  

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. Pedro Filipe
    Pedro Filipe avatar
    8 posts
    Member since:
    Jan 2019

    Posted 23 Jan 2019 in reply to Dimitar Link to this post

    thanks for your reply 

     

    my column is a imagecolumn. so i had to implement a click functionality that do the same as a button.

     

    best regards

  6. Dimitar
    Admin
    Dimitar avatar
    2841 posts

    Posted 23 Jan 2019 Link to this post

    Hello Pedro,

    There is a CellClick event that can be used for this as well.

    Do not hesitate to contact us if you have other questions.
     
    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top