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

clickevent dont fire on newrow

5 Answers 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pedro Filipe
Top achievements
Rank 1
Pedro Filipe asked on 21 Jan 2019, 04:55 PM

     Hi 

 

5 Answers, 1 is accepted

Sort by
0
Pedro Filipe
Top achievements
Rank 1
answered on 21 Jan 2019, 05:06 PM

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

0
Pedro Filipe
Top achievements
Rank 1
answered on 22 Jan 2019, 08:39 PM

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;
               
           }

 

0
Dimitar
Telerik team
answered on 23 Jan 2019, 09:15 AM
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.
0
Pedro Filipe
Top achievements
Rank 1
answered on 23 Jan 2019, 10:37 AM

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

0
Dimitar
Telerik team
answered on 23 Jan 2019, 01:10 PM
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.
Tags
GridView
Asked by
Pedro Filipe
Top achievements
Rank 1
Answers by
Pedro Filipe
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or