HeaderTemplate in RadzenFieldset

There is a typo



in the HeaderTemplate. Please see the code in the attachment. The count after Hello is right. However, the count in HeaderTemplate of RadzenFieldset is not right. Please look into it.

Thanks,

I didn't get where is the typo - I don't see anything misspelled.

Hi @Angela_Lee

Check out this post - Loop variables not working

My suggestion would be to declare a temporary variable after the Cnt++ and then reference that in your <HeaderTemplate>, i.e.

Cnt++;
var tempVar = Cnt;
...
...
<RadzenFieldSet....
    <HeaderTemplate>
        <b>Mixture: </b>@tempVar/@Total

Regards

Paul

Sorry, it is not a typo. It is a problem with count in the HeaderTemplate.

Check @Paul_Ruston 's response. That's the cause of the behavior which you are seeing.

Thanks a million, @Paul_Ruston and Korchev, Your solution works.