Reset columns' visible, lost data

2 replies. Last post: May 26, 2011 1:56 AM by Chermaine Hiew
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
i control the columns' visible, and refresh the webgird, then the data has lost, how can i avoid?
I just used the code, following:

<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:30 AM.
Previous Next