Find by ID:
Go
[Log in | Register]
Home
Support Center Home
Knowledge Base Home
Code Central
Report Issue
Report a Bug
Make a Suggestion
Ask a Question
Security
Log in
Register
Forgot Password
Support Center Stats

Issue Reports
Total: 34153
Active: 372
Processed: 33781

Suggestions
Total: 15009
Active: 574
Processed: 14435

Questions
Total: 74321
Active: 150
Processed: 74171

1830 Knowledge Base Articles

663 Code Central Examples

27775 Support Center users

19 Online users

Powered by Developer Express AJAX-Enabled ASP.NET components

This website is powered by Developer Express ASP.NET technologies including the ASPxMenu, ASPxNavBar, ASPxTabControl, ASPxSiteMapControl, ASPxPopupControl and the ASPxGridView and Editors Suite.
Database connectivity is via eXpressPersistent Objects.

View Issue

Question Details: Multiple ListViews

ID: Q101731
Problem Type: Question
Opened By: Allen Chan
Reviewed by DevExpress: Yes
Status:
Processed
Resolution:
Answered
Modified On: 4/28/2008 10:57:40 AM
Product Group: .NET
Product: eXpressApp Framework
Version: 2008.1
Operating System: Windows XP
IDE: Microsoft Visual Studio 2008
Log in to Track Changes or Edit
Description

Created by Allen Chan at 4/20/2008 12:39:12 PM

How can i show two or more unrelated ListViews in the same form?

Upon clicking an icon in the navbar, i need to show two ListViews, one on the left and another on the right.

I'm thinking of something that looks similar to the side-by-side master-detail view option with a splitter.

Can this be done?

Thank you for your support

Reviewed by Developer Express Team at 4/21/2008 1:25:49 AM

Processed (Answered) by Developer Express Team at 4/21/2008 9:12:06 PM

Hi Allen,

>>
I'm thinking of something that looks similar to the side-by-side master-detail view option with a splitter.
Can this be done?
<<
Yes, please refer to similar issues in our Support Center:
two forms on one screen?
Changing Filter Components
How to create a singleton class (for instance, to create a specific record, that cannot be deleted for administrative purposes)
illustrating how to accomplish your task.
Please let me know in case of any difficulty when implementing this. We are always ready to help.

Thanks,
Dennis

Reactivated by Allen Chan at 4/23/2008 3:36:29 AM

Hi Dennis,

That is an interesting solution. I have yet to try it though.
But let me just make sure we are on the same page.

When you click on the navigation on the right, a ListView appears.
It is on that form where i need to show two distinct ListViews.
One on the left, another on the right.

Are you saying that if i do:

    [RootObject]
    public class SearchTasksObject : XPObject {
        private string filterCriteria;
        private XPCollection<Task> tasks;
        private void FillCollections() {
            if(tasks == null) {
                tasks = new XPCollection<Task>(Session);
            }
            if(!String.IsNullOrEmpty(filterCriteria)) {
                tasks.Criteria = new BinaryOperator("Subject", filterCriteria + "%", BinaryOperatorType.Like);
            }
            else {
                tasks.Criteria = null;
            }
         }
        public SearchTasksObject (Session session) : base(session) { }
        public string FilterCriteria {
            get { return filterCriteria; }
            set {
                filterCriteria = value;
                FillCollections();
            }
        }
        [Aggregated]
        public XPCollection<Task> Tasks {
            get {
                FillCollections();
                return tasks;
            }
        }
    }

or of course, some derivative of it, then I'd basically have the two ListViews that I want?

I'm just making sure that we are not trying to cover DetailView here.

Anyway, perhaps an even broader, but more appropriate question here is, can you modify the layout of the
ListView form itself? Meaning, can I add a button there, another grid perhaps, put them all in a tab.

Thank you very much for your support.

Updated by Developer Express Team at 4/24/2008 3:25:26 PM

Hi Allen,

Thank you for the update. We are working on this problem and will post a solution once it is found. Please bear with me.

Thanks,
Dennis

Processed (Answered) by Developer Express Team at 4/24/2008 7:44:04 PM
Attachment: dxSampleQ101731___.zip (143045 bytes)

Hi Allen,

Please see the attached sample project. I have customized the layout of the DummyHolder_DetailView to achieve such a design. Is it what you want?

>>
Meaning, can I add a button there, another grid perhaps, put them all in a tab.
<<
Yes, you can. Please refer to the Implement Custom Detail View Item and the How to: Add a Button to a Form for a sample.

Thanks,
Dennis

Reactivated by Allen Chan at 4/24/2008 10:10:32 PM

Wow, based on the screen shot, it is indeed what i need! Thank you very much.

Unfortunately, running the project you've provided gives me an error:

"The database version is greater than the application version. The application needs to be updated"

How can I fix this?

Thank you for your support.

Processed (Answered) by Developer Express Team at 4/25/2008 11:45:32 AM

Hi Allen,

To tell you the truth, the application I sent you has already been configured and was ready to work without any additional tricks. Simply download it and run the WinSolution.Win.exe file.

The error message you received is caused by the fact that the version of your database is different from the version of your modules. The fastest way to fix this is to drop the ModuleInfo table in your database. Please see the Update Application Database help topic for more information.
Please let me know if this information helps you to overcome the problem.

Thanks,
Dennis

Reactivated by Allen Chan at 4/26/2008 12:28:23 AM

Hi Dennis,

Thank you, dropping the ModuleInfo table did the trick. Have a great day!

Processed (Answered) by Developer Express Team at 4/28/2008 10:57:40 AM

Hi Allen,

OK, I am very glad to hear that this issue has been resolved and it now works well. Thank you for informing us. Your feedback is greatly appreciated.

Thanks,
Dennis