Hi,
I've read the question http://www.devexpress.com/issue=Q212633 but I don't understand how to apply this to my scenario or maybe I don't know if it apply to my scenario.
I have a file import process. I've implemented a popup action controller that implement the import process and finally it opens a new popup window with the process summary. (ListView --> "Import" click --> Popup1 is open. select file, process, etc --> Popup2 is open --> Refresh ListView when it closes)
How I can refresh the ListView after the user close the second popup?
Thanks in advance,
Marcelo
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello Marcelo,
Thanks for contacting us. It's difficult to help you without reviewing your sample and the full code you have implemented.
>>
(ListView --> "Import" click --> Popup1 is open. select file, process, etc --> Popup2 is open --> Refresh ListView when it closes)
<<
Please look at the following code from the issue you mentioned:
private void popupWindowShowAction1_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { e.View = CreateListView(typeof(Location)) e.DialogController.AcceptAction.Executing += new CancelEventHandler(AcceptAction_Executing); }
In your concrete scenario, you should handle the CustomizePopupWindowParams event for Popup2, and provide the rest code from the solution suggested by Anatol.
Please provide me with a sample where you have implemented this solution, in case of any further difficulty.
Thanks,
Dennis
Hi Dennis,
thanks for your reply.
I don't know how to handle the CustomizePopupWindowParams event for Popup2 because I don't have a popupAction.
I only create and open a new popup (please check the attached image in my first post)
ObjectSpace objectSpace = this.Application.CreateObjectSpace();
ProcessSummary ps = new ProcessSummary( objectSpace.Session );
…
e.ShowViewParameters.CreatedView = Application.CreateDetailView( objectSpace, ps );
e.ShowViewParameters.TargetWindow = TargetWindow.NewModalWindow;
…
How can I handle the event for the second popup?
Thanks in advance,
Marcelo
Hello Marcelo,
>>I don't know how to handle the CustomizePopupWindowParams event for Popup2 because I don't have a popupAction.
>>I only create and open a new popup (please check the attached image in my first post)
>>How can I handle the event for the second popup?
The best and a recommended way to show a popup window is to use PopupWindowShowAction. If it's not so in your project, then modify your code to use the PopupWindowShowAction instead of the regular SimpleAction or whatever you use to currently show a popup window.
After that, you will be able to apply the suggested solution. If this doesn't help, please provide a small sample project illustrating your situation. I will be glad to review it and provide you with a more exact solution, or a modified sample.
Thanks,
Dennis
Hi Dennis,
thanks for your reply.
I've replaced the single action for a popup action but I don't know how to execute the new popup action by code.
I've read the article E1393 but the DoExecute method needs a Window parameter that I do not have. (see the attached image)
Thanks in advance,
Marcelo
Hello Marcelo,
Thanks for the update. We are researching your problem and will answer ASAP. Please bear with us.
Thanks,
Dennis
Hello Marcelo,
Thanks for your patience and sorry for the inconvenience, caused by pointing you to a wrong direction. Further research showed that it's not possible to utilize the approach, described in the Q212633 issue, in your particular scenario, in the Web application.
It's possible to execute the PopupWindowShowAction in the Windows Forms via a specific helper, but it's not possible to do this on the Web, because the Web scenario doesn't support this functionality.
However, it's possible to implement your scenario (ListView --> "Import" click --> Popup1 is open. select file, process, etc --> Popup2 is open --> Refresh ListView when it closes) using another solution. It's demonstrated in the attachment.
Take special note that the main ListView can be only refreshed before the second popup is shown, because later when you click the OK button, it's not possible to update the main page on the client side.
Let me know if this solution meets your needs.
Thanks,
Dennis