Print Page | Close Window

How to clear the CXTPReportFilterEditControl text?

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=19515
Printed Date: 16 November 2024 at 1:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to clear the CXTPReportFilterEditControl text?
Posted By: ocoralan
Subject: How to clear the CXTPReportFilterEditControl text?
Date Posted: 22 February 2012 at 3:30am
In the ReportSample example, I opened the filter text dialog and input something in the edit control, the report control populated correctly. But when I closed the filter text dialog, the report control keeps the filtered state. I need the report control recovers to the unfiltered state when I close the filter text dialog whether the content of the edit control is empty or not. How should I do?

Thanks advance.



Replies:
Posted By: unknow
Date Posted: 18 May 2012 at 4:58pm
Hi. I'm also using that behavior in my application; what I did is that I intercept the event before the filter text dialog close, and I set the filter edit control associated text control to ""
 
Like this : m_myDlgBar.GetDlgItem(IDC_FILTEREDIT)->SetWindowText("");
 
where IDC_FILTEREDIT is a CXTPReportFilterEditControl.
 
Hope that helps ;)


Posted By: mdelar2009
Date Posted: 26 March 2013 at 5:32pm
m_filter.SetWindowText("");



-------------
readme.txt are for cowards, be brave, running...



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