Hi
I'm looking to display a Datalist with an edit template. This works fine when I display simple content - I can use embed html with dynamic data ${data.MyField} no problem for example. What I want to do it to allow the user to click on the item to bring up the edit page for that item. I cant see any event on the Datalist for this?
So I tried adding a link.
I can add a Radzen Link control but it wont let me pass a parameter (the PK of the record to edit). what ever parameter I add in designer, its not being rendered, only the url is.
I can get it to work if I pass the PK - in this case a guid hard coded
<RadzenLink Path="edit-project/E64C3D79-F2F9-4D91-ADD0-509E7A058203" Text="Edit Project" class="card-link" />
but not
<RadzenLink Path="edit-project/${data.ProjectID}" Text="Edit Project" class="card-link" />
errors with: Component attributes do not support complex content (mixed C# and markup)
So my questions are:
- Best way of implementing an item click from a datalist
- Best way of implementing a Link control with url and dynamic parameter
- Best way of implementing dialog pop up for edit page when link clicked?
Thanks as always for a great product
Tim