Login  
Search All Forums
Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
AuthorForum: PowerWEB LiveControls for ASP.NET
Topic: DataGrid with LiveButton
rsanders1

From: Harrison, OH USA
Posts: 3
Member Since: 05/31/05
posted June 8, 2005 11:33 PM

I created a clean page containing a DataGrid and a LiveButton. I bound one set of data to the DataGrid during the page load event when not in a post back. I bound a different set of data in the LiveButton call back. I also included the "pwDiagnosticMode = true;" diagnostic switch.

If the second data binding changed the data but not the number of rows in the grid then the browser was not updated. The diagnostic area feedback showed a null response.

If the second data binding changed the data AND changed the number of rows, with either more or fewer rows in the grid, then the browser was updated... the grid disappeared from the page. The diagnostic area feedback showed that the outerHTML of the grid was replaced with the correct HTML containing the correct data. This was followed by setting the outerHTML of control 'DataGrid1__ctl0' to an empty string. This control does not exist in the page. I traced the script execution with the debugger and found that 'DataGrid1__ctl0' was truncated to 'DataGrid1' which is the name of the DataGrid control. If I supply an extra control named 'DataGrid1__ctl0' then the DataGrid is properly updated in the display.

LiveDataGrid works okay when I use it instead of DataGrid. The only reason I am currently using DataGrid is because a fix for issue #3145 that affects LiveDataGrid is not currently available to me.

I assume that the behavior I described with DataBrid is unexpected :-}.
rsanders1

From: Harrison, OH USA
Posts: 3
Member Since: 05/31/05
posted June 8, 2005 11:44 PM

By the way, I am using livecontrols.dll 1.1.2.0 and IE 6.0.

When I use FireFox things look better but not good. The browser correctly shows an updated grid if the number of rows changed but not if the number of rows stayed the same.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 10, 2005 5:08 PM

Hi,
If you use the DataGrid in a LiveWrapper, these issues are taken care of.
See:
http://support.dart.com/postings?topicid=5276
for info on using LiveWrapper.

The only problem I ran into was when the row count did not change with Firefox.
But clearing the Columns prior to re-binding took care of this.

Let me know if you still have problems when using LiveWrapper.

Thanks,
-ken
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX