[DevExpress Support Team: CLONED FROM Q332740: NewObjectViewController - How to hide the New Action from the main menu, but still have it available inline as the New Item Row feature of ListEditor]
Running into the same issue with XAF v24.1.5 in Blazor. The controller shown above removes both the 'New' button as well as the in-line '+' button.
I wish there was an option to set a List View to ONLY edit in-line or only edit in a tab. If it's in-line, show the '+' button, if it's tab, show the 'New' button. Also, setting in-line editing would disable opening a tab when clicking on a row.
It's not a good user experience to have a mixture of those two edit behaviors in one list view. I can see scenarios where the tab makes a lot of sense, but for example for the one below, the user only manipulates two fields (Last Updated On and Last Updated By are set by EF automatically) and showing a new tab for that makes no sense.
Hello,
I tried to replicate this behavior in a simple example, but the application with a controller from the initial thread leaves the inline '+' action visible:
Please refer to the attached example and check how it works on your side. If it operates correctly, compare it with your project to find the difference that leads to the issue. If you can't find the cause of the issue, modify the attached project so that it illustrates the behavior you encountered and send it to us.
Your usage scenario is not fully clear to me. Would you please elaborate on the steps that lead to the issue and what result you expect after these steps?
Thanks,
Andrey
Thanks much, I'll have a look and see what's going on.
First thing I noticed is that you are using 24.1.6 while I was on 24.1.5. Will go and update my version to see if that was the issue. Will report back.
So there were a couple of differences…
So far I have NOT been able to either fix my project with what was done in yours nor break yours with what I'm doing in mine.
As a general thing, I wish the grids were setup that if you have inline editing selected, ONLY inline editing was working, i.e. the pen icon, the + icon and clicking on a row just opens the inline editor instead of going to a new tab. And if you have another edit form selected, you have the New button which opens a new tab with the edit form and clicking on a row opens a new tab with the edit form. It certainly would make things much cleaner as you wouldn't need a custom controller to remove buttons and add others back in.
Hello,
Please continue comparing these project to find out the difference that leads to the issue.
Thank you for your feedback. We appreciate it.
Regards,
Andrey