Index value inside Grid column template always returns zero.

I'm wondering why is the value of an index inside the <template> of a Grid column is always zero, thus the value it passes is wrong. Check on my code.

Check on the line Console.WriteLine, the value of "a" is always "0" and so param "a" of ToggleDxCodeRelationShip() always zero as well.

Attachment: Capture_4b37aa90.zip

4 Replies 1 reply marked as answer

J j November 3, 2020 03:37 AM UTC

I think I know what is happening to this. I think the best question to this instead is if there's a way we can determine the index the _billingProcedureDtos as it iterate throught it.


RS Renjith Singh Rajendran Syncfusion Team November 3, 2020 10:48 AM UTC

Hi J, 

Greetings from Syncfusion support. 

We are not clear about your exact requirement. We could see from your code, that you are using an older Syncfusion Blazor version. As we have included several bug fixes and features in our latest versions, we recommend you to upgrade to our latest Syncfusion Blazor package version 18.3.0.44

And also we prepared a sample based on your shared code, but we are not able to face the “a value is always 0” problem. We could get different values based on iteration for “a” in our application. We are attaching the sample for your reference, please download the sample from the link below, 
 
If we have misunderstood your query, or if you still need further assistance, then the following details would be helpful for us to proceed further on this and provide you a solution. 
  1. Share with us a detailed explanation of your complete requirement.
  2. Share the video demo showing the problem and explaining your complete requirement.

The provided information will help us analyze the problem, and provide you a solution as early as possible. 

Regards, 
Renjith Singh Rajendran 


Marked as answer

J j November 5, 2020 03:04 AM UTC

I think I'm OK with this now. There's something wrong with my code. Thanks for the help.


VN Vignesh Natarajan Syncfusion Team November 5, 2020 09:31 AM UTC

Hi J, 

Thanks for the update.  

We are glad to hear that you have achieved your query.  

Please get back to us if you have further queries.  

Regards, 
Vignesh Natarajan 
 


Loader.
Up arrow icon