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
I have a page that has 1 WebDialogBox with 7 WebGrids on it. The page also has 7 buttons. Depending on which button is clicked the WebDialogBox will be shown and the corrersponding grid will be set to visible using grid.Show() while the other 6 grids are hidden using grid.Hide() from the client side. This works correctly the first time the WebDialogBox is shown. However when you click on a different button, to agian show the WebDialogBox with a differrent grid, all grids that were previously shown are not being hidden.
I have attached a sample to illustrate the issue. PLease follow these steps to reproduce the issue:
1. Click the "Filter 1" button. The WebDialogBox will open and you will only see WebGrid1. This is the desired behaviour. Click OK or Cancel to close the WebDialogBox.
2. Click the "Filter 2" button. The WebDialogBox will open and you will now see WebGrid1 and WebGrid2 even though WebGrid1 has been set to Hide.
3. Repeat Step 2 for the remaining buttons and you will find that each time the previous grids that were visible are still visible when they should be hidden.
Can you please modify my sample to show how I can correctly hide all grids except for the one I want to show?
I checked your code and found out that you put the grid into a div container that its display property is set to “none” in order to hide the content of the div (the content is WebGrid) and you are also use Show()/Hide() method to set the display of WebGrid. Actually, you can choose to use one of the method above (by putting the grid in a div container and set the container display property to “none”; or by using Show()/Hide() method to set the visibility of WebGrid).
You’ve come so close with your desired behavior. One thing that left behind is hide the grid on OnClosed client side event of WebDialogBox.
I enclosed the modified version of your sample. please have the modified sample tested on your end and let me know whether this helps or not.
Hi Yudi, I have tested your sample and implemented your proposed solution into my application and I can confirm that the grids are now behaving exactly as I need them to.
Thanks for your assistance.
Glad to hear the good news.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
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