User Profile & Activity

Yudi Member
Page
of 259
Posted: July 30, 2015 3:26 AM

Based on the information I got from the team, they are expected to be available around Crosslight 4 Update 3.

Posted: July 30, 2015 3:13 AM

I worked closely with Patrick Hindall. The reported problem was caused by an update to .NET 4.0 which causing IE11 is not recognized as IE.

The solution was found by Patrick. Thank you, Patrick! :)

Apparently, there is an update to .NET 4.0 which specifically deals with this issue. Out of the box, .NET 4.0 does not recognize IE11 as “IE.” After the following update is applied, it does.

https://support.microsoft.com/en-us/kb/2836939.

After applying this update to .NET 4.0 on the hosting server, the page renders correctly under IE11.

So, if you modify the PageLoad event in your sample to check for this situation, like I did with the attached code, it demonstrates the behaviour I've been seeing (that the first selected item is dropped from the display after the postback).

I modified the code in Page_Load so it now looks like following:

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim checkedRows As ArrayList = WebGrid1.RootTable.GetCheckedRows()

        txtSelectedRows.Visible = True
        Dim text As String = "Checked rows: " & checkedRows.Count & vbLf & vbLf

        For Each keyValue As String In checkedRows
            text &= keyValue & ";"
        Next keyValue

        If checkedRows.Count = 0 Then
            text = WebGrid1.SelectedRowKeyValue()
        End If

        txtSelectedRows.Text = text
    End Sub

Save the changes and view the page in browser. The first selected item is not dropped from the display after postback. Please check the attached video which taken when test the scenario.

I modified SelfReferencingGrid.aspx sample based on your snippet code. The sample is enclosed as attachment. Save the changes and view the page in IE 9.

I was unable to replicate the problem. Rendering and expand child row run without any issues. Please check the video which shows how the test was conducted in my local end and feel free to let me know if you find anything that I might miss during my attempt to reproduce the problem.

Posted: July 29, 2015 7:56 AM

Sorry for the delay in sending this.

I modified BatchUpdateGuidProblem sample so it now works with batch update feature (insert, update, and delete transactions).

For more detail, please take a look OnBatchUpdate server-side event in BatchUpdateGuidProblem.aspx.cs file.

Please let me know whether this helps or not.

I created a sample of WebGrid based on the code in WebForm1.aspx in the sent GridTest project. Please add my sample in WebGridSamples project and view the page in browser.

By using this sample, WebGrid is correctly shows selected rows when user clicking a range with Shift + click (from top row to bottom). However, problem happens when user clicking a range from bottom row to top using Shift + click or random click by holding Ctrl key.

I need your help to get more information regarding this problem before I forward this to WebGrid development team. Please feel free to let me know if you have different result or find another selection problem.

following Javascript code will hide the column using Grid's built-in AJAX request.

<script type="text/javascript">
    
        function HideColumn()
        {
            var grid = ISGetObject("WebGrid1");
            var col = grid.RootTable.Columns.GetNamedItem("EmployeeID");
            
            col.Set("Visible", "false", true);
            grid.RefreshAll();
        }
        
    </script>

This approach should be more solid since the Grid will re-initialize all settings after the column is removed.

I have tested the solution on IE 11; Chrome 43; and Mozilla Firefox 39 (with AllowAddNew enabled). Please let us know whether this helps or not.

Posted: July 27, 2015 2:37 AM

Sorry for the delay in sending this.

The default export button invokes wgExport("[insert WebGrid ID in here]") in its onclick event. You can try to set the onclick event of your custom button with the same JS function and let us know whether it helps or not.

Sorry for the delayed fix of CROS-803. I will check with the dev whether the hotfix can be scheduled to be released along with the Crosslight 4 Update 1.

Glad to hear that the information helps.

Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.

All times are GMT -5. The time now is 11:23 PM.
Previous Next