iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
<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>
Hi Chermaine,
In your code, you set the visible property of Phone column to false. That's why the column is invisible. The RefreshAll function refreshed the grid according to the previous code, which is setting the column visible to false. The column data is not lost, it's just invisible.
If you want to view the Phone column again, simply set the visibility to true and call the RefreshAll function again. You could see my sample as a reference.
Hope it helps.
Regards,
Lili Khiung
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.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname