User Profile & Activity

Hans Kristian Member
Page
of 69
Posted: October 16, 2013 12:27 AM
Hello,

Thank you the question.

If you don’t mind, could you please help me to provide me more information regarding your scenario?
It is possible to you to provide me the simple runnable sample that replicates your issue?
So I can help you to investigate your scenario further more.

Thank you very much and I apologize for any inconvenience this problem may have caused you.

Regards,
Hans.

Hello,

Thank you the question regarding WebGrid.

To make the row or cell became doesn’t editable (read-only), you could use SetForceNoEdit() JavaScript method.

I made a simple runnable sample to show how-to implement the SetForceNoEdit() method.
I bind the WebGrid to Access Data Source (Northwind.mdb database & Products table).

In use the SetForceNoEdit() method in OnRowSelect client side event.
I make the row / data that already Discontinued to become read-only.
Here’s the example snippet code how I implement the SetForceNoEdit() method:

function WebGrid1_OnRowSelect(controlId, tblName, rowIndex, rowEl) {    var WebGrid1 = ISGetObject(controlId);
    var rowObj = WebGrid1.RootTable.ToRowObject(rowEl);
    var Cells = rowObj.GetCells();
    if (Cells[3].Value == true && rowObj.ForceNoEdit == false) {
        rowObj.SetForceNoEdit(true);
        Cells[3].SetForceNoEdit(true); // To make the Check Box become read-only
    }
}

I also attached the sample, so that you can see the result as well.

Thank you.

Regards,
Hans.

Posted: October 11, 2013 3:18 AM
Hello,

Thank you for the question regarding WebTextEditor.

I can reproduce your issue on my local end as well. I will submit this issue to the developer team. It filled under work item #1567.

I apologize for any inconvenience this problem may have caused you.

Regards,
Hans.
Posted: October 10, 2013 11:24 PM
Hello,

I glad to hear that you have resolved your filtering scenario.

For the “first key stoke” issue, since this is a different (new) topic, please kindly create new thread / post regarding the “first key stoke” issue.
Later on, in the new thread, please kindly provide us the simple runnable sample that replicate the issue and the guidance how-to reproduce the issue as well.

Thank you very much for your help.

Regards,
Hans.

Posted: October 4, 2013 4:05 AM

Hello,

Thank you for the question.

After I investigate this filter issue, it seems the issue occurs due to we want to filter the column when the column hasn’t rendered yet.

I attached 2 WebGrid samples which show that we should / can filter a column after the column is already rendered (ready to be filtered)

In this sample, I bind the WebGrid programmatically (with OleDbConnection).
I add filtering code in PrepareDataBinding server side event. In that event I also add RetrieveStructure() method (to retrieve Column's structure).

In the first WebGrid sample, I put the RetrieveStructure() method “before” filtering code. The result is the filtering works fine.
Here’s the snippet code:

protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e){
    if (!IsPostBack)
    {
        WebGrid1.RetrieveStructure();
        WebGridFilter fltr = new WebGridFilter("ShipName", ColumnFilterType.Contain, "Vins");
        WebGrid1.RootTable.FilteredColumns.Add(fltr);            
    }
}

In the second sample, I put the RetrieveStructure() method “after” filtering code. The result is I got the same error message as yours.
Here’s the snippet code:

protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
{
    if (!IsPostBack)
    {
        WebGridFilter fltr = new WebGridFilter("ShipName", ColumnFilterType.Contain, "Vins");
        WebGrid1.RootTable.FilteredColumns.Add(fltr);
        WebGrid1.RetrieveStructure();
    }
}

Therefore, please kindly re-check / review your application’s code, whether the column is already rendered or not, when you try to filter it.

Hope this helps.

Regards,
Hans.

Posted: September 30, 2013 3:23 AM
Hello,

Thank you for the question.

Perhaps you could call ShowDropDown() method in window.onload javascript event.
Here’s the example snippet code how-to implement ShowDropDown() method:
<script type="text/javascript" language="javascript">    window.onload = function () {
        var WebCombo1 = ISGetObject("WebCombo1");
        WebCombo1.ShowDropDown(true);
    }
</script>

Hope this helps. Thank you.

Regards,
Hans.

Posted: September 25, 2013 11:52 PM

Hello,

Currently, we can’t provide you the WebGrid v6 documentation anymore, since we have discontinued the WebGrid v6.

We add some new content (feature) in WebGrid v8 documentation indeed.
However, you could still use WebGrid v8 documentation, because basically (overall) the documentation has not changed much.

we apologize for any inconveniences caused.

Regards,
Hans.

Hello,

Thank you for your reply.

Have you try to use the latest Intersoft Framework and WebGrid assembly version?

In WebGrid Solution Samples, there is WebGrid sample that show how-to enable / how the exporting feature works. The page (file) named “EnableExporting.aspx”.

Please kindly have review on the WebGrid Samples, EnableExporting.aspx and please let me know whether you get the same issue or not.
(start > All Programs > Intersoft WebUI Studio 2013 R1 > WebUI Studio for ASP.NET > WebGrid 8 > C# Samples. The physical location of the file is: "%ProgramFiles%\Intersoft Solutions\Intersoft WebUI Studio 2013 R1\ Samples\For ASP.NET\ISNet.WebUI.Samples\cs\WebGrid \EnableExporting.aspx".)

If you don’t get any error message or issue with the EnableExporting page, please kindly help me to modify the page and provide the modified sample to me. So I can help you to investigate the issue further more.

Thank you very much.

Regards,
Hans.

Posted: September 20, 2013 4:13 AM

Hello,

Thank you for the question.

To know/check whether the filter has been applied to the WebGrid, you could use OnColumnFilter or and OnAfterResponseProcess client side event.

Here’s the example snippet code regarding the client side event:

function WebGrid1_OnAfterResponseProcess(controlId, action, lastRO, xmlRO) {    var WebGrid1 = ISGetObject(controlId);
    alert(action);
    return true;
}
function WebGrid1_OnColumnFilter(controlId, tableObject) {
    var WebGrid1 = ISGetObject(controlId);
    alert("Column is Filtered");
    return true;
}

I also attach the example page about how I use/implement the client side event.

Please kindly have a review on the page to see result.

Hope this helps. Thank you.

Regards,
Hans.

Hello,

Thank you for your reply.

In my local end, the result is not an endless loop, but it takes more time to WebGrid to finish the checking process, indeed.

Perhaps you should use: “Checked” attribute to validate whether the row is already checked or not. Because there is no IsChecked() method in row object.

You could see / get the WebGrid’s documentation from your local environment, “Start Menu -> All Programs -> Intersoft Premier Studio 2013 R1 -> WebUI Studio for ASP.NET -> WebGrid 8 -> WebGrid 8 Documentation”.

You also could get / download the WebGrid’s documentation from this link below:
-http://intersoftpt.com/Support/WebGrid/Documentation/
-http://intersoftpt.com/Support/WebGrid/WebGrid.chm

To know whether the child row is collapse or expanded, you could use “ChildExpanded” attribute.
The “ChildExpanded” attribute will have False if the child row is collapse and vice versa.

You could use GetParentRow() method to validate whether the row has a parent or not.
Here’s the example snippet code how-to use the GetParentRow() method:

function WebGrid1_OnRowSelect(controlId, tblName, rowIdx, rowElm) {    var WebGrid1 = ISGetObject(controlId);
    var parentRow = WebGrid1.GetSelectedObject().GetRowObject().GetParentRow();
    if (parentRow) {
        alert("This row have parent row ");
    }
    else {
        alert("This row doesn't have parent row ");
    }
    return true; 
}

I use the GetParentRow() method in OnRowSelect client side event.

Hope this helps.

Regards,
Hans.

All times are GMT -5. The time now is 10:17 AM.
Previous Next