I add controller to force open specyfic listview after opening applicationlike described here:
https://www.devexpress.com/Support/Center/Question/Details/K18099/how-to-show-a-specific-view-at-application-startup-right-after-the-logon-window-or-after
Instead DetailView i want to show ListView:
C#public class CustomWinShowStartupNavigationItemController : WinShowStartupNavigationItemController
{
protected override void ShowStartupNavigationItem(ShowNavigationItemController controller)
{
base.ShowStartupNavigationItem(controller);
((WinWindow)Application.MainWindow).Form.BeginInvoke(new MethodInvoker(() => {
IObjectSpace os = Application.CreateObjectSpace();
//object theObjectToBeShown = os.FindObject<Contacts>(null);
//DetailView view = Application.CreateDetailView(os, theObjectToBeShown, true);
//view.ViewEditMode = DevExpress.ExpressApp.Editors.ViewEditMode.Edit;
DevExpress.ExpressApp.View view = Application.CreateListView(os, typeof(Contacts), true);
Application.ShowViewStrategy.ShowViewInPopupWindow(view);
}));
}
}
The List View opening but:
-
There no ribbon buttons
-
when i click on any record the list is closed and okDelegate is fired.
-
there are 2 buttons Ok and Cancel - these buttons are usefull for detailview, but for ListView or Dashbord doesnt
questions are: -
How to show ribbon for this list view with coresponding for list view actions ?
-
How to allow to edit selected records after double click instead closing window (maybe after resolving q1 this problem disaapear too)?
-
How to hide ok/cancel butons depending on view type ?
Hello,
We need additional time to answer your question.
Thanks,
Andrey