We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

async out of sync

After an async postback in which a record is added to the datasource the record is not displayed in the grid. However I can verify that the record exists in the datasource by checking  the datasource on the next postback. The grid appears to be one behind as records are added to the datasource.

5 Replies

BM Bala Murugan A.S Syncfusion Team April 1, 2013 12:41 PM UTC

Hi Robert,

Thanks for using Syncfusion Products.

Currently we are working on your query with high priority and we will update you in one business day(April 2,2013).

Please let us know if you have any concerns.

Regards,
Bala Murugan A.S


HJ Hariharan J V Syncfusion Team April 2, 2013 12:57 PM UTC

Hi Robert Miller,


Thanks for your patience.


We would like to get more information about your requirement details..


1.      Which type of data source you are using in sample.


2.      What type of data binding used in sample.


3.      How do you update record of the data source using asynchronous postback .


pd  Please let us know if you have any concerns..


Regards,

Hariharan jv

 

 



RM Robert Miller April 4, 2013 12:35 PM UTC

"Which type of data source you are using in sample."
 
It's a custom collection.  e.g.
 
    public class PartsOrderList : IEnumerable<PartOrder>
    {
        ...
    }
It works fine with the ASP grid that comes with studio (asp:GridView)
 
 
"What type of data binding used in sample."
 
grid.DataSource =
 
 
"How do you update record of the data source using asynchronous"
 
(grid.DataSource as PartsOrderList).Add(part)


HJ Hariharan J V Syncfusion Team April 11, 2013 07:16 AM UTC

Hi Robert,

Thanks for your update.

We suggest you to maintain a records in list and add any record onto the list if required and bind that list to the grid. Please refer the below code snippets.

[Default.aspx]

List<Customers> CustomersCollection = new List<Customers>();

void Button1_Click(object sender, EventArgs e)

        {

            Customers Customers = null;

            Customers = new Customers("chennai", "india", "ABANA", "syncfusion", "john");

            CustomersCollection.Add(Customers);

           

            this.GridGroupingControl1.DataSource = CustomersCollection;

        }

For your convenience, we have prepared a simple sample to demonstrate this and the same can be downloaded from the below link.

Sample: WebApplication6.zip

Please let us know if you have any concerns.

Regards,

HARIHARAN JV



CH Chaimaà replied to Hariharan J V March 8, 2018 10:06 PM UTC

Hi Robert Miller,


Thanks for your patience.


We would like to get more information about your requirement details..


1.      Which type of data source you are using in sample.


2.      What type of data binding used in sample.


3.      How do you update record of the data source using asynchronous postback .


pd  Please let us know if you have any concerns..


Regards,

Hariharan jv

 

 


oh my god

Loader.
Live Chat Icon For mobile
Up arrow icon