Reset columns' visible, lost data

1 reply. Last post: May 27, 2011 2:57 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

I control columns' visible and refresh the webgrid,but when i edit data on webgrid,the data will lost

i just used the Javascript,the 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:39 AM.
Previous Next