Button on DataList can't access ${data}

Hello Radzen Team!

I'm working in the Radzen IDE where I'm adding a Template to a DataList that has a label and a button. I've changed the Value of the Label control to ${data.Id} and it renders the value correctly. I've then added a Click Event to the button on the Template:

But trying to access the ${data.Id} in the Click Event causes:

'object' does not contain a definition for 'Id'.

I wanted to make sure that I was using the IDE correctly, so I added a DataGrid through the automatic CRUD generators to verify the Click Event for the delete button and it appears to be setup the same way (other than the confirmation dialog and the data source method):

Any guidance on this?

Maybe I should search before I type :slight_smile:

Same issue as this: Problem referencing datalist template data from within button template

I've replied to your post.

@enchev -- sorry, I guess my issue seemed to be related, but is a little different. When I'm using ${data.Id} in the Click Event of a Button that's on Template of a DataList, that's where I'm getting the error, not in the Template of the button itself. I've also verified that ${data.Id} works in a label on the same template.