OnCommandClicked does not always fire

Hi,

On a recent project i use EjsGrid.
I fill the grid from different API's.

I want to use the grid to display starting and ending times for all our employees.
Every row contains a custom edit button.
When the button is pressed i want to have some edit dialog.

Problem is the OnCommandClicked doesn't fire on every row.



Attached a full working source.

Can you help me out?

Best regards,

Thijs van Rijswijk

Attachment: OnCommandClicked_843cdc77.zip

3 Replies

RS Renjith Singh Rajendran Syncfusion Team March 31, 2020 02:37 PM UTC

Hi Thijs, 

Thanks for contacting Syncfusion support. 

We suggest you to ensure to set nullable type for the null valued Date fields in the model bound to Grid, to overcome the problem you are facing. Please use the below highlighted code to overcome the problem you are facing, 

 
    public class ClockTimesCollectionDto 
    { 
        ... 
       public string SiteIdStart { get; set; } 
        public DateTime? StartTime { get; set; } 
        public int TranIdStop { get; set; } 
        public string SiteIdStop { get; set; } 
        public DateTime? StopTime { get; set; } 
        public string Comment { get; set; } 
        ... 
   } 


We have also modified the attached sample. Please download the sample from the link below, 
 
Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran 



TV Thijs van Rijswijk March 31, 2020 11:16 PM UTC

Hi Renjith,

Thanks for your reply.
It works fine.

Best regards,

Thijs van Rijswijk


RN Rahul Narayanasamy Syncfusion Team April 1, 2020 05:51 AM UTC

Hi Thijs, 

Thanks for the update. 

We are happy to hear that the provided solution works. Please get back to us if you need further assistance. 

Regards, 
Rahul 


Loader.
Up arrow icon