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,
I am using on my "Search List" page WebExplorerPane and Webgrid (full_view.png).
After hiding search parameters in first WebExplorerPane item (hidden_search_parameters.png) I expect that the second item with webgrid autoresize to full height of page. It doesn't happen.
Second item of WebExplorerPane move up without resizing (second_item_continer_view.png). In attached file second_item_continer_view.png I bordered second item container using developer toolbar.
Please, could you suggest me any solution how auto resize item with webgird.
I attached also file aspx_file_part.zip with code.
Regards,
Mariusz
Hi Mariusz,
Unfortunately, we cannot do auto resize for the WebGrid to fill the whole pane. The Height of pane is inherited from its container, in this case, the WebGrid its self. The other workaround that might do is to set the height of WebGrid every time we collapse or expand the pane. However, you will need the exact value of height of WebGrid in both situation (Pane expanded and pane collapsed). That is why, we need to use the client side OnAfterCollapse and OnAfterExpand. Here I attached you a sample running code.
I hope it helps and please, do not hesitate to ask if you have any other questions. Thank you.
Best Regards,
Andi Santoso
Hi Andi,
I tried you solution. I found interesting property for Webgrid "NeedHeightResize" on client side and I used it this way :
function WebExplorerPane1_OnAfterCollapse() { var oWebGrid = ISGetObject("WebGrid1"); oWebGrid.NeedHeightResize = true; } function WebExplorerPane1_OnAfterExpand() { var oWebGrid = ISGetObject("WebGrid1"); oWebGrid.NeedHeightResize = true; }
It works fine for empty WebGrid, but unfortunately after executing search and collapsing parameters panel a receive something like this (window_bars.png). This is pobably a bug with WebGrid behaviour.
It could be acceptable solution without problem with bars. Do you know how to solve problem with bars.
Problem with bars appears always when we use WebGrid in WebExplorerPane. It doesn't matter if I tray to resize it or not .
Thank you in advance.
Hi Mariuz,
Unfortunately, that property is not meant to execute this kind of scenario. NeedHeightResize property will set the value that tells the grid whether it needs to resize its own height after one of its rows has been removed/hidden on client side. So it will affect if we removed or hid a row(s).
So, in my opinion, the best way to solve you issue is by setting its pixel manually using SetHeight of the WebGrid. Sorry for the inconvenience but I hope it helps. Thank you.
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