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 have got some webgrids, in which rows are added edited or deleted dynamically. Based on a popup, values are taken inside javascript and the InitialisePostback event is called. After the data is updated inside database, clientAction.Refresh is called. This makes the grid to reflect changes. The problem is that after the dynamic asynchronous modification, the rows are getting shrinked. Please refer to both screenshots, showing original and dynamic webgrids. Am using default style of webgrid. Infact for a moment(when just as the webgrid is refreshed), i could see the webgrid coming to full width. But within a fractions of second, it shrinks. The shrinking applies to only the rows, except header row. However the header row gets added on with a padded space, which am removing using webgrid initialise event, using grid.HidePadColumn=true.
I have done a fix currently by making methods in prepare databinding event to run only at not postback case. Now its working. Let me play around a bit and i will inform you as soon as i can give u a sample that replicating the issue.
Am waiting for a reply.Its 3 days passed. I will be more specific. After updating webgrid through webflypostbackmanager, the style shrinks or say becomes awkward. And there appears to be a padding space left with as large as 10px in firefox. Please reply as soon as possible.
Hi,
I am sorry for the late response, in the method that you used did you change any style of WebGrid? Or you only do Refresh for the grid? Also did you used Refresh or RefreshAll?
Best Regards,
Gordon Tumewu
okee... but all other threads posted by me also getting delayed...and those got no reply till now...
To your questions -> Well the webgrid is a dynamically build one. To explain more, the webgrid layout (only the layout) is specified in a usercontrol design page. The webgrid is using default styles with some overriding. The overriding is done by specifyimg the default classes for rows and all. For eg to apply padding of two am specifying the class WG5E-Row.This is done only in the design page. So no style problems are occurring when a postback is made. All style problems are occuring when grid.refresh() is made. All the data are dynamically bind to the grid. So no columns are known in advance. Is that because the webgrids are dynamically made, grid.refresh is making it to loose the style? Am using RefreshAll. The grid is only refreshed.
I am sorry but I am confuse with the scenario, you said that you used grid.Refresh but you also said you are using RefreshAll, could I know which one that you used? Also is it works using Refresh or RefreshAll?
One more thing if it is possible simple sample will be very helpfull for me to provide you with the solution.
sorry for that confusion. Am using grid.Refresh() for all the webgrids.
Is it possible to send me the sample? I am trying to create a sample, but still cannot replicate the issue.
Great to hear that the problem solved. Just let me know if you have another issue.
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