User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: May 23, 2010 11:20 PM

Based on my analysis and research, your assement of the issue is correct. The cause of the issue is IE8 browser cache. Here are some article that I found on how to disable browser cache in ASPX page, Disable Browser Caching and Prevent Web Pages from Being Saved in Cache.

If you are using C#, the snippet from the article Prevent WebPages from Being Saved in Cache is:

<%
//FROM MIND Magazine,
//September 1999 issue
//GeekToGeek column by
//Robert Hess

//Below must be place before HTML tag
//and everything else on page

Response.Expires = -1;
Response.AddHeader("Pragma", "no-cache");
Response.AddHeader("cache-control", "no-store");

%>


 

I am very sorry for the attachment incident. I have re-archive the modified files and attached it to this post.

As my colleague has mentioned, you will need to add queries to the xsd in order for the sample to work correctly.

In WebScheduler the query that will be used will be defined in the ISDataSourceTable object under DeleteMethod, InsertMethod, SelectMethod, and UpdateMethod. If you would like to avoid conflict just named the query you are using for the form differently than the one used in WebScheduler.

Attached is the modified sample.

Other suggestion would be to use SQL command in the form instead of data table adapter object.  

Modified 05/24/2010: Attachment removed because extraction fails. 

In my test for both FireFox 3.6.3 and Safari 4.0.5 I found that the method will work without any issue. The edited cell will have a red color as the result of the snippet.

Currently the bug status, header mislalignment in freeze column WebGrid, is still open and it is still being analyzed by our developer.

Based on my analysis of the attached code, the issue occurs because you have just add the rows to the table and have not invoked AcceptChanges method.

In order to resolve the issue please add this line before returning the ds value in LoadData function:

ds.AcceptChanges();

I also suggest adding primary key to the datatable since you are setting PrimaryKeyID field as a DataKeyField in the WebGrid

dtFields.PrimaryKey = new DataColumn[] { dtFields.Columns["PrimaryKeyID"] };


Posted: May 18, 2010 10:44 PM

The snippet will modify the header color for all the date in month view, because the matching type in month view is set to 'MonthInboundDateHeader;MonthOutboundDateHeader;'

If you prefer only the current month is modified, please set the type in the month view to MonthInboundDateHeader;

In my test, it seems in Safari and Firefox browser, during body onload the content WebGrid height has not been set correctly so the ScrollTop assigment fails. You will need to use the setTimeout function to let the WebGrid set the proper height in order to set ScrollTop property.

Here is the modified snippet, in my test a delay of 10ms will be enough to properly set the ScrollTop correctly:

function body_OnLoad()
{
var strCook = document.cookie;
if (strCook.indexOf("!~") != 0)
{
var intS = strCook.indexOf("!~");
var intE = strCook.indexOf("~!");
var strPos = strCook.substring(intS + 2, intE);

var grid = ISGetObject("wgTest");

setTimeout(function()
{
grid.RootTable.GetElement(WG40.BODY, WG40.HTMLDIV).scrollTop = strPos;
}, 10);

}

}


Thank you for the feedback. I have noted this as a feature request and it is already been submitted to our WebGrid developer.

Posted: May 17, 2010 4:50 AM

Based on my analysis, it seems this issue is cause by a bug. A bug report has been submitted in our internal bug reporting service for further analysis.

We will update you if there is any update regarding this issue.

All times are GMT -5. The time now is 9:22 PM.
Previous Next