Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron User Interface for .NET
»
Re-Order NUIDocuments within NDocumentManager programmatically
Re-Order NUIDocuments within NDocumentManager programmatically
Post Reply
Re-Order NUIDocuments within NDocumentManager programmatically
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Oliver Münchow
Oliver Münchow
posted 13 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 10,
Visits: 2
Within a NDocumentManager it is quite easy to add a new document by simply calling NDocumentManager.AddDocument(). And the user is able to re-order the items by simply drag & drop them in the desired order.
But how can this be achieved programmatically? The NUIDocument doesn't have any index property and the NDocumentManager returns only a fresh array containing all available documents.
Reply
Like
0
Nevron Support
Nevron Support
posted 13 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi Oliver,
You need first to remove the NUIDocument from DocumentManager.Documents using RemoveDocument and then add it in the desired position:
m_Manager.DocumentManager.RemoveDocument(doc1);
NDocumentHost host = m_Manager.DocumentManager.ActiveGroup;
m_Manager.DocumentManager.AddDocument(doc1, host, desiredIndex);
Of course, it applies when document view is MdiTabbed.
Best Regards,
Nevron Support Team
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search