Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - ComboBox Caption not updated when selection change
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ComboBox Caption not updated when selection change

 Post Reply Post Reply
Author
Message
JoukevRossum View Drop Down
Groupie
Groupie
Avatar

Joined: 03 November 2011
Location: The Netherlands
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote JoukevRossum Quote  Post ReplyReply Direct Link To This Post Topic: ComboBox Caption not updated when selection change
    Posted: 14 December 2015 at 3:52am
Hi,

I'm using a combobox in the ReportControl V16.2.3. When I select a value from the combobox, the value is changed, but the caption does not.

I'm using the following code to populate the combox:

            var column = rcBerichten.Columns.Find(1); //value of the column index
            column.EditOptions.Constraints.DeleteAll();
            column.EditOptions.AllowEdit = false;
            column.EditOptions.ConstraintEdit = true;
            column.EditOptions.Constraints.Add("(Dossier map)"SelectedDossier.DossierNummer);
 
            foreach (var fldr in Collections.Collections.ListDossierFolder.Where
(d=>d.DossierNummer == SelectedDossier.DossierNummer && d.ParentFolder == SelectedDossier.DossierNummer.ToString()))             {                 column.EditOptions.Constraints.Add(fldr.FolderName, fldr.FolderId);                              }             foreach (ReportRecord rec in rcBerichten.Records)             {                 if (string.IsNullOrEmpty(Instellingen.Instance.EmailMap))                 {                     rec[1].Caption = "(Dossier map)";                     rec[1].Value = SelectedDossier.DossierNummer;                 }                 else                 {                     var folder = Collections.Collections.ListDossierFolder.FirstOrDefault
(d => d.FolderName == Instellingen.Instance.EmailMap && d.DossierNummer == SelectedDossier.DossierNummer);                     if (folder != null)                     {                         rec[1].Caption = folder.FolderName;                         rec[1].Value = folder.FolderId;                     }                     else                     {                         rec[1].Caption = Instellingen.Instance.EmailMap;                         rec[1].Value = -1;                     }                 }                                  foreach (ReportRecord chd in rec.Childs)                 {                     if (string.IsNullOrEmpty(Instellingen.Instance.EmailMap))                     {                         chd[1].Caption = "(Dossier map)";                         chd[1].Value = SelectedDossier.DossierNummer;                     }                     else                     {                         var fldr = Collections.Collections.ListDossierFolder.FirstOrDefault
(d => d.FolderName == Instellingen.Instance.EmailMap && d.DossierNummer == SelectedDossier.DossierNummer);                         if (fldr != null)                         {                             rec[1].Caption = fldr.FolderName;                             rec[1].Value = fldr.FolderId;                         }                         else                         {                             rec[1].Caption = Instellingen.Instance.EmailMap;                             rec[1].Value = -1;                         }                     }                 }             }
What am I missing/doing wrong?
Thanks in advance,
Best regards,
Jouke van Rossum
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2015 at 11:01am
Hello Jouke van Rossum,

This bug with ComboBox AllowEdit and ConstraintEdit conflict was fixed for version 16.4 (svn revision 16502) . Try to using our new Release Candidate of v17.0.

Regards,
 Oleksandr Lebed 
Back to Top
JoukevRossum View Drop Down
Groupie
Groupie
Avatar

Joined: 03 November 2011
Location: The Netherlands
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote JoukevRossum Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2015 at 11:14am
Hi Oleksandr Lebed,

Thank you for your response!

I will look into it. 

I found a quick'n'dirty fix for now :)

Regards,

Jouke van Rossum
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 8.1 (x64)
Language: Visual Studio 2012 ActiveX C#
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.