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,
Is there a way to make the grid keep its state between postbacks? I mean, sometimes another control (like an asp button) fires a postback for a totally unrelated matter and the grid refreshes on every postback/flypostback.
On my InitializeDataSource event I have something like this:
if (!IsPostBack || webGridBeta.IsFlyPostBack) e.DataSource = GetDataSet();
So that it'd fetch my data source the first time and on every flypostback (asuming I'm sorting, filtering, etc), but on every other postback the grid fires this event and refreshes with a blank data source. Is it possible to make it behave like a regular gridview? Where on Page_Load you'd some thing like:
grid1.DataSource = GetDataSet(); grid1.DataBind();
And it'd keep its state till I rebind it?
Attached is a simple sample page that I create in order to recreate the issue you are facing.
In my test, after postback the WebGrid will keep it state after postback (sort and filter). The test is using the latest build of WebGrid 7 and WebUI Framework 3, build 403 and build 752 respectively.
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