Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development | Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
Author | Forum: PowerWEB LiveControls for ASP.NET Topic: LiveDataGrid and LiveTimer causes freeze on re-Bind() |
mikewheat mikewheat@tm.net From: Davison, MI USA Posts: 26 Member Since: 05/16/05 |
posted March 13, 2006 5:57 PM Hi, I am using a LiveDataGrid and a LiveTimer which fires every 10 seconds. The following code is called by the timer. Dim loDataSet As DataSet Dim lcStkNo As String Dim r As Integer loDataSet = MyDataSet() For r = 0 To loDataSet.Tables("Report").Rows.Count - 1 lcStkNo = loDataSet.Tables("Report").Rows(r)("StkNo") loDataSet.Tables("Report").Rows(r).BeginEdit() loDataSet.Tables("Report").Rows(r)("NavText") = lcStkNo loDataSet.Tables("Report").Rows(r).EndEdit() Next LiveDataGrid1.DataSource = loDataSet.Tables("Report").DefaultView LiveDataGrid1.DataBind() If I comment out the DataBind, the browser does not freeze. If I leave it in, the browser freezes on the second DataBind() and never unfreezes. The first DataBind is in the Page_Load() event. I found a similar post in December 2005, but could not bind the answer I was looking for. I too have quite a few rows in the DataSet. Thank you, Mike Wheat |
John Talarico![]() From: Rome, NY USA Posts: 630 Member Since: 06/01/05 |
posted March 15, 2006 9:33 AM When you say there are quite a few rows in the dataset, how many is that? Hundreds? Thousands? How many columns? I just posted an explanation on how Ajax and client-script, combined with updating very large numbers of page elements, can cause delays. If you reduce the number of elements, does the delay go away? http://support.dart.com/postings?topicid=6507 |
mikewheat mikewheat@tm.net From: Davison, MI USA Posts: 26 Member Since: 05/16/05 |
posted March 15, 2006 10:14 AM Hi John, There are about 450 records. 8 columns. I can reduce the numeber of records to 10-15 and the delay is gone. I have added pagination to the grid and the delay has also gone away. I am satisfied with this solution. Thank you, Mike |
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
This site is powered by
![]() |