Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing a button does not remove assigned OnClick Method #35

Open
AnNormalie opened this issue May 13, 2022 · 2 comments
Open

Removing a button does not remove assigned OnClick Method #35

AnNormalie opened this issue May 13, 2022 · 2 comments

Comments

@AnNormalie
Copy link

When removing a button in the designer with an assigned on Click event the code gets not removed.

eg this gets not removed when removing the button.

protected async System.Threading.Tasks.Task Button0Click(MouseEventArgs args)
{
    UriHelper.NavigateTo("article");
}

The project and the button got generated by Radzen (not RBS)

@akorchev
Copy link
Contributor

We will probably have to ask the user if they want to delete any event handlers as this may not always be the case.

Radzen does that by default as the code of the event handler is generated from the component itself when the user clicks run.

@AnNormalie
Copy link
Author

I see.
Sounds good to me to ask the user if the related code should be deleted.
Would love to see this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants