Duplicate Edit Page fails

Hi
If I duplicate a working Edit page (where the PK is passed in as a parameter) it fails to build the new page as it cant find the Parameter. Its in the designer but fails to get included in the code behind. I've tried different Edit pages, same result each time.

Thanks, tim

Hi @timt,

This fails because no other page navigates to that page (or opens a dialog to it) passing that parameter. Radzen detects parameter usage when someone navigates to a page or opens dialog to it.

Hi
But I am trying to call that page from some custom code and pass across the parameter. Is there a way around this apart from editing the code behind manually and exclude the file from updates?

The fact the edit page knows there should be a PK parameter and its name means you could add it anyhow?

Thanks for your quick responses.
Tim

I can work around by manually adding the parameter in the partial file that does not get overwritten on rebuild
Thanks

The fact the edit page knows there should be a PK parameter and its name means you could add it anyhow?

This is known when another page navigates to that page and passes a parameter.

I can work around by manually adding the parameter in the partial file that does not get overwritten on rebuild

This is a viable solution indeed - the partial class is meant for extensibility!