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
Hi,
I try to use saveLayout and Loadlayout of WebGrid 7. I've created a simple page with a webgrid and two buttons, one used to save layout and another to load layout. SaveLayout works fine, I change the layout of the grid and click the button "Save", then the layout is aved to the WGL file. Then I restart the page and click the button "Load", but the grid's layout isn't changed according to the WGL file.
Coluld you give me a hlep?
Thank
Mang
Hello Mang Lu,
I can replicated your issue here. The problem that you got is not when you click the Load button, but when you save. The save file might be uncompletely. But the other way to save and load webGrid's layout, I suggest you to use SaveTablesStructure. SaveTablesStructure can cover all scenario for save and load WebGrid's layout.
You can look at snippet code bellow :
protected void Button1_Click(object sender, EventArgs e) { WebGrid1.SaveTablesStructure(Server.MapPath("SampleLayout.isl")); // you can also use xml file }
protected void Button2_Click(object sender, EventArgs e) { WebGrid1.LoadTablesStructure(Server.MapPath("SampleLayout.isl")); WebGrid1.RebindDataSource(); }
Hope this helps.Riendy
Hi Riendy,
It works fine. I appreciate you giving me a great help.
Thanks.
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