Print Page | Close Window

Can I have dropdowns in the Report Control?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=4823
Printed Date: 22 November 2024 at 1:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can I have dropdowns in the Report Control?
Posted By: drisch
Subject: Can I have dropdowns in the Report Control?
Date Posted: 17 August 2006 at 12:56pm
Hello,
 
I would like to create an editable spreadsheet-like grid using CXTPReportControl, which I already use elsewhere for non-editable reports. However in this editable case I would like one of the columns to have a dropdown list where the user picks one of the values in the dropdown. For instance, the column may be language and the list has several languages in it. From the samples I see that it is possible to have this in the properties grid where a value can be set from a dropdown list. Can it also be done in the report control, and if so, how? I see a class CXTPReportInplaceList, but I don't know how to use it, or even if it is the functionality I am looking for.
 
Any help would be appreciated.
 
-Derek



Replies:
Posted By: SuperMario
Date Posted: 17 August 2006 at 3:02pm
Yes, open the Report sample, then select from the menubar Report Control->Control Test->Task List Sample.  Here the Status and Priority columns have dropdowns.


Posted By: drisch
Date Posted: 22 August 2006 at 3:18pm

Thank you very much. That's exactly what I was looking for. I see that by doing the following, I am implying a dropdown with the following added values:

pColumnStatus->GetEditOptions()->AddConstraint(_T("Not Started"), taskStatusNotStarted);



Posted By: gjertsen
Date Posted: 14 August 2007 at 3:48pm
I'm using something like
pColumn->GetEditOptions()->AddComboButton();
pColumn->GetEditOptions()->AddConstraint("choice 1");
pColumn->GetEditOptions()->AddConstraint("choice 2");

and the combo box works like a champ... except that I want to actually constrain the input to ONLY one of the constraints - not free text input. If the column itself does not allow edit, then the combo box doesn't work at all, but if it does allow edit, it allows free editing. What am I missing?


Posted By: znakeeye
Date Posted: 17 September 2007 at 7:07am
Change the style of the combo button.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net