iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi Guys,Kindly advise how to close the detail view when the master list goes back to the upper stack. Using the Master/Detail sample that you have provided... going back to the category list after viewing an item from the inventory (ItemListViewController) should close the detail view, regardless if the detail view has navigation context or not. We need to set it back to the default detail view such as when "no item is selected" to avoid editing or manipulating the details once the master panel/view is back to the category list.
Thanks!
Hello Domingo,
While it's possible for the development team to implement this behavior as a built-in feature (through an option), you can also implement this behavior directly in your app.
Most of our components are designed with solid architecture and interfaces which expose a number of methods that you can call in the platform-specific view context. Since this task relates to the iOS specific view, you can easily achieve this behavior by getting the instance of the IMasterDetailViewController from the table view controller in question, and then call the SetDetailViewController method in the ViewDidDisappear method override.
Crosslight also comes with a lot of convenience APIs which might not be easily discovered. For instance, you can use GetParentViewController(parentType) and pass in an interface type to get the instance of the parent view controller with the particular type.
Here's the code example, referring to the MyInventory_MasterDetail sample.
private IMasterDetailViewController _masterDetailController = null; protected override void InitializeView() { base.InitializeView(); // gets the master detail instance that host this view controller _masterDetailController = this.GetParentViewController(typeof(IMasterDetailViewController)) as IMasterDetailViewController; } public override void ViewDidDisappear(bool animated) { base.ViewDidDisappear(animated); // set the detail view controller with animation _masterDetailController.SetDetailViewController(new ItemDetailViewController(), true); }
With the code above applied, when you go back from the items list to category, notice the detail view is now nicelyanimating back to "No items selected".
Hope this helps,Jimmy
Yes, currently this is how it's implemented.
Hi Jimmy,I'm discussing this with our developer, as far as i know Android state management is rather different so method must be rather different. I will get back to this if i have new information regarding this issues.Best Regards,Arief
Hi Jimmy,I will inform feature request for developer under CROS-861, as this is not the default android behaviour.Please note that we will be planned this feature after version 4 release.Best Regards,Arief
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname