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 would like to use "HTML 4.01 Strict", but even XHTML Strict is an option. Thanks for forwarding and please keep this thread updated when you have an answer. Thanks.
Hi Yudi, thanks for your reply. So in other words, any Strict doctype is not supported. Did I get that right? Is support for that planned for the future? We need to get away from these old Transitional doctypes and right now only WebGrid stops us from doing so.
Hi Handy,
Ok, thanks. In the meantime (I needed a solution) we replaced the WebGrid with the standard grid from Microsoft ASP.NET. This works fine. So problem solved for now.
Eric
Thanks for your reply. Maybe you misunderstood me. I don't want to do anything with the Sum or the Footer. So I don't need to put the sum into any hidden field. The sum is just to block saving as long as the total is not 100%. We don't need to bother with that right now.
I want each individual value of the rows. So if someone edits five rows, I need these five values in the postback. If I understood you correctly, I should dynamically create hidden fields for every editable field. If the grid has two editable columns and a content of 6 rows, I would need to create 12 hidden fields. Then in ExitEditMode js event store the edited field by assigning the value in the correct field and in the postback read out all hidden fields, find the right ones and do the save that way. Is it that what you meant?
If yes, then I would still need to avoid postback after editing and changing the row selection to avoid that the values get overwritten after the postback. How would you do that?
In your previous post you were talking only about the footer, which is not the relevant issue. If you meant something else, then I didn't get that.
So you say that there is a workaround by using a hidden field. How would that work (except setting PostInputControls to true)? Can you adjust the latest sample to get this working?
Hi,
We don't need to discuss the footer, even if there is a bug there. Maybe you're just not using WebGrid6 or you selected another row instead of just pressing Enter or whatever. The footer is not the problem.
FlyPostBackSettings are set to true for all four attributes already (maybe not in the sample though).
What we need is a grid that
- displays database data
- The user can change values in one column, in several different rows before it gets saved.
- Buttons (outside of the WebGrid) to add a new row (requires postback to server to get all data to get added to the new grid row, also requires a popup to select what to get added) But leave this requirement away for now.
- When the user presses a Save button there should be a postback to the server and there all changes get stored in the database at once.
Problem right now: When changing a row, there is a postback to the server which causes the InitializeDataSource event, re-reading the database and overwriting all previously changed data in the grid. How should this get solved?
I think I have to implement the UpdateRow event and store the changed data in the ViewState or something like that. What is the recommended way to implement something like that?
Best way would be to avoid a postback to server until the user presses the Save button, but I'm not sure if that's possible. Other controls (like textboxes) maintain their content in the ViewState even during a postback, but this doesn't work for the WebGrid data when AutoDataCaching is off.
Thanks for your reply. But your sample seems to have the same issues (if not more).
Please see the attached code, based on your sample.
I've added a Save button and a js. The js is actually not needed to show the problem, but it solves another issue: If you edit a cell (enter 4.0 for example) and press the Enter key, then the footer Sum will not get updated. This js fixes this issue.
Also I see that the Sum in the footer disappears as soon as you click on another cell in a different row. My real life code doesn't have this issue (only this sample), so fixing this here is not important.
Now for the Save button: We only want to do the save of all data (manually with a SP call) if the Sum of all values is 10.0, so we have to check this in the Save event handler. But if you step through there, you can see that there is no data available to save in this event handler. The data doesn't get cached - that's the problem I have. What is the recommended way to keep the data until a save? Probably in Viewstate somehow? Remember I that I can't allow AutoDataCaching.
Thanks, Eric
Hi Yudi,
Thanks for your reply and the link. I downloaded the .chm file, but that documentation doesn't seem newer than the one I have installed with the product.
Also, please note that .chm files don't work by default in corporate environments. Desktop and homedrives and other users' folders are usually on a network share and .chm files on network shares cannot open. But I managed to get around this restriction.
That ISRes_Registered is for SmartWebResources answers this specific question. But it is not even mentioned in the documentation.
And the other values are only minimally described. The values for ViewStateItems for example are not listed, but there's a screenshot that says that there's a GUI to change the values and from there I would be able to extract the possible values (still not having a description for each value though).
So overall, there is no comprehensive documentation available. As I don't have any specific questions, I think we can close this thread. But maybe you got the message to improve the documentation for future releases.
Thanks,
Yes, this helps as a start. And what is OptimizeCss(Name)? And ISRes_Registered?
And what are the possible values for all these settings?
And what is CacheDuration and -Priority used for? We had to set AllowAutoDataCaching="false" in all our WebGrids. So do we still need to set this in web.config? And "where" is this cache located? Within the IIS? Or in the Session? Or somewhere within the IIS worker process?
And for the ViewStateItems I'd also like to have some more background information what this is used for.
Are there any keys we don't need (because only for old versions) or are there more keys we should set?
And regarding your documentation, I've searched in there already. Maybe you can point me to where you meant more information is. Searching for CacheDuration, OptimizeCss, ISRes_Registered returned no results in the help. And ViewStateItems only lists that such a property exists ("Gets or sets the items to be stored in view state storage"), but no real description.
A bettter documentation would help. But if you can provide more infos on these values for now, my question would be answered as well.
Thanks,Eric
Your answer sounds a little funny, but the roadmap attachment fully answers my question.
From what is said there: Next release of WebUI Studio 2011 R2 / WebUI Studio for ASP.NET includes WebGrid Enterprise 8 and will come out this month and has "improved security by eliminating XSS exploit through the use of JSON as the control data format".
Let me know if I misunderstood anything.
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