User Profile & Activity

Chermaine Hiew Member
Posted: May 27, 2011 4:52 AM

The situation is when we use mode VirtualLoad to load new data,the sum did not update.  Please check the attachment.

The column of UnitsInStock  in page1, the sum is 1759,when we load all data ,the sum did not update.but it should be 6418.



So,how can i reach you directly? MSN or something else.

Posted: May 26, 2011 1:51 AM

Maybe i did not describle exactly. we just want use the function as the attch file. 

The picture just change webgrid's column,but use the JavaScript(WebGrid1.RefreshAll()), the webgrid will structure again,so the unsaved data will lost.


When you modify data on the webgrid,reset the columns' visible,use the following JavaScript ,data will lost.

<script language="javascript" type="text/javascript">

    <!--

    function button1_onclick() {

        var WebGrid1 = ISGetObject("WebGrid1");

        var rootTable = WebGrid1.GetRootTable();

        var PhoneColumn = rootTable.Columns.GetNamedItem("Phone");

        PhoneColumn.Set("Visible""false"true);

        WebGrid1.RefreshAll();


        return true;

    }

    // -->

</script>

All times are GMT -5. The time now is 4:50 AM.
Previous Next