User Profile & Activity

Glenn Layaar Support
Page
of 99

Using the attached project, I could not replicate the issue in my environment. Using the described steps, I have change the month to March 2010 and try to replicate the error in Agenda view, Month view, and Timeline view without any success.

Did you use non-US culture in your environment?

We have a sample of the scenario depicted in this article in our WebUI Studio 2009 R2 SP1 WebGrid sample on the page ClientBinding_VirtualGroupPaging_WebService.aspx. The sample is using the GetPagedBugs function to select the data and in the new sample, this function has been modified using technique in section WebGrid LINQ DataProvider.

You will need to modify the select method in your WebService as well using the LINQ DataProvider in order to automatically handle the select operations.

Posted: February 15, 2010 10:23 PM

After filtering WebGrid, if the DataSource is DataTable, you will need to get the DataSource using GetCacheDataSource() method. This will return all the Row in the WebGrid. If you would like to retrieve the filtered row you will need to use the DataTable DefaultView property.

Here is the snippet:

((DataTable)[GridObject].GetCachedDataSource()).DefaultView



What I meant in the earlier post is the ASP .NET tabs is still not shown event after installing the ASP .NET manually, however my poject will run after the installation.

The 2 article you provided is quite spot on regarding this issue. It seems there is an issue in running IIS in 32 bit mode in 64 bit OS. Articles I found during my research regarding this issue also share the same sentiment.  

If you would like to change the project's .NET Framework version, you will need to use the command line tool under this scenario, this article < ASP.NET Tab is missing in the IIS MMC in the web server running Windows XP Pro x64 Edition with .NET Framework 2.0 (WOW64) >, has detaild the steps.

As with my colleague, I could not duplicate the double margin issue in the Mozilla browser, tested using FireFox 3.6 and latest build of WebGrid 7 and WebUI Framework 3, build 401 and build 751 respectively.

You could determine if the scrollbar is present by comparing the scroll height and client height element. We could use this technique in the WebGrid Initialize client side event handler to determine whether the HidePad should be set to True or False. Here is the snippet:

function WG_Init(controlId) {

var grid = ISGetObject(controlId);

setTimeout(function() {

var contentElem = grid.RootTable.GetElement(WG40.BODY, WG40.HTMLDIV);

if (contentElem.clientHeight < contentElem.scrollHeight)
grid.HidePadColumn = false;
else
grid.HidePadColumn = true;
grid.RefreshAll();
}, 10);
}


Posted: February 14, 2010 10:49 PM

It seems this behavior is caused by an IE bug. In order to display <d in IE you will need to insert the &ltd as &amp;ltd in the database so IE would not render it as <

In this thread, you mention that the snippet could not set the SelectedIndex of the ASP DropDownList in IE.

I have re-tested this snippet in IE and it works without any issue on my environment.

Perhaps, I did not explain clearly in my first post, however this workaround will require you to handle the EnterEditMode WebGrid client side event. Here is the snippet showing EnterEditMode handler set to the WebGrid:
<ISWebGrid:WebGrid ID="_WebGrid" runat="server">
<LayoutSettings>
<ClientSideEvents OnEnterEditMode="_WebGrid_OnEnterEditMode" />
</LayoutSettings>
...
</ISWebGrid:WebGrid>
This workaround works by setting the selected index of the DropDownList which has the same value as the cell value.
Posted: February 14, 2010 10:07 PM

Here is the updated snippet for OPTION element:

function _WebGrid_OnEnterEditMode(controlId, tblName, editObject) {   
//The workaround provided for the user for this issue

var _WebGrid = ISGetObject(controlId);

var cellObj = editObject.ToCellObject();

if (cellObj.Name == "Priority_WebGridColumn") {

var options = editObject.element.getElementsByTagName('option');
if (options[0].text != '--- PLEASE SELECT ---') {
var newOpt = document.createElement('option');
newOpt.setAttribute('value', '0');
newOpt.innerHTML = '--- PLEASE SELECT ---';
editObject.element.insertBefore(newOpt, options[0]);
}
}

return true;
}

The basic idea of the function is the same, however this snippet will insert a OPTION HTML element instead of OPTGROUP.

Regarding the issue in the other thread, I will reply my response in that thread in order to kept the discussion in this thread on topic.



In order to achieve the same result as the previous version, you will need to set the EventPageSize property to 1. Here is the snippet:

<TimelineView ResourceRowHeight="40" MinimumEventHeight="20" ContentCellWidth="20"
ResourceCellWidth="150" Enabled="true" NumberOfDays="1" StartTime="t0000" EndTime="t2300"
TotalEventInCell="1" EventPageSize="1" ZoomInLevel="Day15Minutes" ZoomOutLevel="Day15Minutes" />


Using the steps you describe, the ASP .NET tab is not shown. However, after re-installing ASP.NET Framework manually, default C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i -enable, the project runs without any issue.

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