User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: September 22, 2009 10:27 PM

In my environment, setting the column width during PrepareDataBinding server side event will set the height correctly. However, percentange width currently only works in IE browser. For non-IE browser you should set AutoFitColumns property to true under Layout Settings.

Posted: September 22, 2009 10:14 PM

The issue could not be replicated in my environment. Since you just recently upgrade to v7, have you update the WebUI Framework 3 to the latest build as well, for WebGrid 7 you will required WebUI Framework 3 build 70x.

If you have already using WebUI Framework 3 build 70x, please clear your temporary ASP .NET folder, default location in C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files, and you browser cache.

Using the latest build for WebGrid 6 and 7, we also could not replicate the height issue


Posted: September 22, 2009 10:08 PM

In order to disable the Hyperlink column you could set the ColumnType to text, however you will need to set the column type to hyperlink for the column you wish to have hyperlink style. This could be done during InitializeRow server side event. Here is the snippet to set the column type of URL column

e.Row.Cells.GetNamedItem("url").Column.ColumnType = ColumnType.Text;
e.Row.Cells.GetNamedItem("url").Column.ColumnType = ColumnType.HyperLink;

In order to disable context menu, please set the property AllowContextMenu to false under the LayoutSetting.

Posted: September 18, 2009 3:56 AM

The enchancement will be available in the next hotfix.

In order to determine if a stack button is currently opened you will need to use FreezedButton property of WebFishEye, like so

if (this.WebFishEye1.FreezedButton != null)
//Do logic if a stack button is open

In order to close the stack the function CloseStackButton has already been prepared. You could invoke it from the WebFishEye object. Here is the snippet:

this.WebFishEye1.CloseStackButton();



You could try using CustomAggegrate server side event to achieve this functionality.

For example you would like to format UnitPrice column to have c6 format

<ISWebGrid:WebGridColumn Caption="UnitPrice" DataMember="UnitPrice" DataType="System.Decimal" Name="UnitPrice" Width="150px" AggregateFunction="Custom" FooterText="Total : " DataFormatString="c6">

Because we set the column to have an aggegrate custom we will need to implement CustomAggegrate server side event. In this event we could also have a different format string for the aggegrate column

protected void WebGrid1_CustomAggregate(object sender, ISNet.WebUI.WebGrid.CustomAggregateArgs e)
{
if (e.Column.Name == "UnitPrice")
{
// obtain the rows that need to be calculated
WebGridRowCollection rows = e.Rows;
Decimal total = 0;

// loop through all rows
foreach (WebGridRow row in rows)
{
total += Decimal.Parse(row.Cells.GetNamedItem("UnitPrice").Value.ToString());
}

// pass the result back to AggregateResult.
e.AggregateResult = total.ToString("c2");
}
}


Posted: September 17, 2009 11:42 PM

Attached is a simple sample of the scenario you are facing.

We could not replicate the issue #1, Column value2 has a Decimal datatype with DataFormatString ""#,##0.##". The value and format in the WebGrid and exported excel will match.

Regarding issue #2, the issue will be replicated using \r\n as the new line, using <br/> will not replicae the issue. Currently, our exporting feature only supports <br/> as the new line indicator, I have forwarded the \r\n issue to our developer, to let the developer look into this issue.

Posted: September 17, 2009 10:59 PM

I have forwarded your issue to our developer and it has been logged as a feature request. We will inform you if there is any update regarding this item.

Posted: September 17, 2009 10:56 PM

The issue occurs because currently WebFishEye has not supported secure URL yet. The secure URL link will be supported in the next hotfix release of WebFishEye.

Posted: September 17, 2009 8:57 PM

You could send the credential to technical@intersoftpt.com and mention that this issue has been discussed in the forum and also please provide the link to this thread

Posted: September 16, 2009 11:37 PM

The sample will run correctly after setting the administrator and standard user account with the proper access to the TempReports folder. The account must be able to have write access to the folder to allow them to create the export file in the TempReports.

After setting the proper access the issue will not occur using the scenario you describe

Tested using IIS7 in Windows Vista on .NET Framework 2.0, Impersonation True with Windows Authenthication, and Anonymous access disabled with the sample you provided

All times are GMT -5. The time now is 9:14 AM.
Previous Next