User Profile & Activity

Glenn Layaar Support
Page
of 99

The issue has been sucessfully replicated in our environment using the steps you describe. A bug report, bug #407, has been submitted to our developer. We will inform you if there is any update or progresss regarding this issue.

Posted: September 10, 2009 12:55 AM

It will be similar with the steps on this article, How to use an ASP.NET application to query an Indexing Service catalog by using Visual Basic .NET

However, step #4 and #5 under Create an ASP.NET Web application will need to be modified to bind the data to WebGrid. We have already provided a sample to bind DataTable to a WebGrid using InitializeDataSource server side event. The sample is located in our WebGrid tutorial on BindingFlat.aspx page under V3.1 folder

Posted: September 10, 2009 12:44 AM

Currently, we do not have a feature to modify the text of the FieldList header. However, this could be achieved using a workaround.

If your grid will show Chart initially, we could use javascript to find the element and modify the inner HTML. Here is the snippet to modify the FieldList caption from Chart Field List [ Orders ] to Chart Field List ( Orders )

function WebGrid1_OnAfterInitialize(controlId) 
{
ModifyDefaultText(controlId);
}

var t = null;

function ModifyDefaultText(controlId)
{
var grid = ISGetObject(controlId);
var containerId = grid.Id;
var suffix = "TableFieldList";

var tblElem = document.getElementById(containerId + '_' + suffix);

if (tblElem == null)
t = setTimeout(function() { ModifyDefaultText(controlId); }, 20);
else
{
t = null;
tblElem.getElementsByTagName("table")[1].getElementsByTagName('td')[0].innerHTML = "Chart Field List<br/> ( Orders )";
}
}


Posted: September 8, 2009 12:00 AM

Unfortunately we could not replicate the issue in our environment, we have tested this issue using ProgrammaticExportClientside.aspx sample.

Since you mention it does work in IIS 6 and not IIS 7, have you use the correct anonymous access account in IIS 7 as detailed in the article Here

Please also make sure that the anonymous account has the proper rights for the bin folder.

Posted: September 6, 2009 9:55 PM
Please make sure the project bin folder already have ISNet.WebUI.WebGrid.dll, ISNet.WebUI.WebGrid.Resources.dll, and ISNet.ActiveReports.Exporting.dll

In a deployment scenario you do not need to add a reference to the ISNet.ActiveReports.Exporting.dll in you web.config
Posted: September 3, 2009 10:54 PM

Without modifying the code you could add a mousedown event during enter edit mode to the dropdown icon image to reposition the image. However, it is highly suggested to achieve this feature to modify the unophuscated code.

Here is the snippet, again in the sample I always position the sliderbar in top left corner:

function WebGrid1_OnEnterEditMode(controlId, tblName, editObject) {
var grid = ISGetObject(controlId);

var dropDownID = editObject.gridId + "_DDSlidebar";
Listener.Add(document.getElementById(dropDownID), "onmousedown", function() { repositionSlidebar() });
}

function repositionSlidebar() {

t = null;

t = setTimeout(function() {
document.getElementById("placeholderSlidebar").style.top = "10px";
document.getElementById("placeholderSlidebar").style.left = "10px";
}, 100);
}


Posted: September 3, 2009 5:49 AM

ISDataSource will generate multiple key in the Cache object for its internal mechanism, just as you reported before. In order to invalidate the data you will need to clear all the keys generated by the ISDataSource in the Cache object.

The idea is to iterate all the Cache object key and delete the key that match the pattern of the key created by the ISDataSource. In the snippet the CacheKeyDependency is "key1" 

protected void Button1_Click(object sender, EventArgs e)
{
IDictionaryEnumerator CacheEnum = Cache.GetEnumerator();
ArrayList keyList = new ArrayList();
while(CacheEnum.MoveNext())
{
if (CacheEnum.Key.ToString().Contains("key1:") || CacheEnum.Key.ToString() == "key1")
{
keyList.Add(CacheEnum.Key);
}
}

foreach (string key in keyList)
{
Cache.Remove(key);
}

GridView1.DataBind();
}


Posted: September 3, 2009 3:30 AM

ISDataSource has provided a function to clear the table cache, using the ClearCache function of the ISDataSource table. We could demonstrate this function by modifying the UsingCacheKeyDependency.aspx ISdataSource sample. Please add an ASP.NET button with a click event handler:

protected void Button1_Click(object sender, EventArgs e)
{
ISDataSource1.Tables.GetNamedItem("TimedDataKeyDependency").ClearCache();
GridView1.DataBind();
}

A button click will refetch the data because the cache has already been cleared

The webInput will only be active during edit mode, since during WebGrid display mode WebInput is not active the WebInput display format will not be used to format the cell value. In order to format the display of the cell in WebGrid you will need to use the DataFormatString property of the WebGridColumn. For example, if you wish to display the Price column with currency format:
<ISWebGrid:WebGridColumn Caption="Price" DataMember="Price" Name="Price" Width="100px" DataFormatString="c">
</ISWebGrid:WebGridColumn>




Posted: September 2, 2009 10:22 PM

Could you explain in more detail the setting of the WebGrid, controls included in the page, and more detailed steps to reproduce the issue? I could not reproduce the error using provided Intersoft WebGrid sample

All times are GMT -5. The time now is 12:43 PM.
Previous Next