I am using a datagrid with an image column(RadzenImage) .
The image would be retrieved from a secure web api.
Is it possible to add an auth token(jwt) to the image url request that is made?
If this is not possible, how can I lazy load the images into the grid if I request the images on my own within the application.
You can use your image property getter to lazy load the image
Thanks, I will give that a try.
Please can you provide an example of how to do this?
Hi Steve, I simply added a Template column with the following code
<RadzenGridColumn TItem="ShiftBto" Title="Start Image" Width="100px" Sortable="false" Filterable="false">
<Template Context="data">
<div class="d-flex justify-content-center">
<RadzenImage Path=@(data.StartPhoto == null ? GetShiftStartPhoto(data) : data.StartPhoto) Style="height:100px" Click="args => ViewImage(data.StartPhoto)" />
</div>
</Template>
</RadzenGridColumn>
The get method actually makes the call to the rest service(using auth) to get the image and returns the base64 encoded image.
Hope this helps