Status | ID | Priority | Type |
Closed | 36446 | Trivial | Question |
Profile | Reply |
RossClient | Hi I would like to remove the UseByListViewCriteriaObjectCreating functionality from my project. Is there a global way to remove this? Kind Regards |
User | Description | Posted On |
MariyaVoytovichAgent | Hello Nico! To remove the UseByListViewCriteriaObjectCreating functionality from my project, you need deactivate ListViewCriteriaObjectCreatingController. Feel free to contact us if you have any questions. Regards, | |
Ross | Hi Mariya Please can you let me know how to deactivate the controller please. I tried to deactivate it but there isn't any option to do so. Kind Regards | |
MariyaVoytovichAgent | Hello Nico! Sorry for the delay with the answer. To disable ListViewCriteriaObjectCreatingController, inherit From a Controller ListViewCriteriaObjectCreatingControllerWin. In constructor set active property to false. public partial class CustomListViewCriteriaObjectCreatingControllerWin : ListViewCriteriaObjectCreatingControllerWin { public CustomListViewCriteriaObjectCreatingControllerWin() { this.Active["CustomController"] = false; InitializeComponent(); }protected override void OnFrameAssigned() { } Feel free to contact us if you need further assistance or have additional questions. Regards, | |
Ross | Hi Mariya! I still can't get it to work. I created a ViewController in the Project.Module called "CustomListViewCriteriaObjectCreatingControllerWin" as shown in code below. Partial Public Class CustomListViewCriteriaObjectCreatingControllerWin Protected Overrides Sub OnActivated() End Sub End Sub Im new to the XAF Framework. I do apologize for the inconvenience. Kind Regards | |
MariyaVoytovichAgent | I want to draw your attention to the fact that in the override method OnFrameAssigned, you do not need to call the base. Regards, | |
Ross | Yeah I tried with calling base and without and it still didn't work. Regards | |
MariyaVoytovichAgent | Сan You provide a demo project? Regards, | |
Ross | Hi Mariya Its all sorted out thanks. |