User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: November 2, 2009 11:01 PM

In our environment the sample return no row and there is no such error as you described. Could you inform us the WebGrid build and WebUI Framework you are using in order to analyze this issue further.

Using this snippet to modify the PageHeader section of a PDF report, I have no spacing issue

protected void WebGrid1_PrepareExportExecute(object sender, PrepareExportExecuteEventArgs e)
{
    ActiveReport3 report = e.ReportObject;
    DataDynamics.ActiveReports.Label lblProject = new DataDynamics.ActiveReports.Label();
    lblProject.Text = "Report Custom Header";
    lblProject.Alignment = TextAlignment.Left;
    report.Sections["PageHeader"].Controls.Add(lblProject);
}

 

Posted: November 2, 2009 9:30 PM

The toolbox installation might fail if there is some registry that our installer fail to find. You will need to manually add the toolbox to the visual studio yourself if this issue occurs. 

We never got any report regarding Northwind issue, if you could give us more detail about the northwind issue or the toolbox issue, we will inform our installer developer of the issue 


Posted: November 2, 2009 9:06 PM

You could use the Custom AggegrateFunction property. This way you could handle the aggegrate function and return the total value that will comply with your scenario. The event handler will be handled by CustomAggegrate server side event. Here is the snippet:

protected void WebGrid1_CustomAggregate(object sender, ISNet.WebUI.WebGrid.CustomAggregateArgs e)
{
    if (e.Column.Name == [ColumnName])
    {
        //Get the GroupTotal using custom function
        e.AggregateResult = GetTotal();
    }
}

 


Posted: November 2, 2009 5:11 AM

Attached is a sample to replicate the scenario you are facing. 

If you are using SendCustomRequest to invoke the method, you could use the PrepareDataBinding event to apply the filter and refresh the grid in the InitializePostBack server side event. 

It seems the property value in the JS code is case sensitive, so the correct snippet will be:
function setWebGridAccess(type) {
    var wg = ISGetObject('_webGrid');
    if (type == "read") {
        wg.RootTable.AllowEdit = "No";
        wg.RootTable.AllowDelete = "No";
        wg.RootTable.AllowAddNew = "No";
    }
    else {
        wg.RootTable.AllowEdit = "Yes";
        wg.RootTable.AllowDelete = "Yes";
        wg.RootTable.AllowAddNew = "Yes";
    }
}

 

Posted: November 2, 2009 4:03 AM

Unfortunately, currently WebGrid does not have any setting ot property to allow different display position for the pager. WebGrid pager will always be shown on the lower right corner of the WebGrid.

Posted: November 2, 2009 3:52 AM

Issue discussion is continued on this thread

Posted: November 2, 2009 3:51 AM

Sorry for the late reply, could you provide more detail regarding the environment? The WebGrid dll build,  WebUI Framework dll build, and your OS.

Please check your build version in your GAC and your project bin folder, in case where the UpdateManger failed to update the GAC.   

In a ClientBindind scenario, please use ClientBindingSettings ServiceEvents Selecting to add custom filter. This way the filter argument will be used during the data selecting (Paging will be taken into account)

Using the ClientBinding_Paging.aspx sample, add ServiceEvents Selecting. WebGrid Definition:

<ClientBindingSettings DataLoadMode="PagedData" DataSourceType="WebService" ItemTypeName="Bug"
    ServiceUrl="WebService.asmx">
    <ServiceMethods BatchUpdateMethod="UpdateBugs" SelectMethod="GetPagedBugs" />
    <ServiceEvents Selecting="WebGrid1_DataSelecting" />
</ClientBindingSettings>

 Here is the event handler snippet, all filter action will filter the data which has Target value similar to fut or bug:

function WebGrid1_DataSelecting(gridObj, selectArgs) {
    if (selectArgs.FilterExpression != "")
        selectArgs.FilterExpression = "[Target] like 'fut' or [Target] like 'bug'";
}

 

   

All times are GMT -5. The time now is 2:06 AM.
Previous Next