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: Bug: LiveDatagrid and Datagrid
lordhits2

From: Oakbrook Terrace, IL USA
Posts: 26
Member Since: 04/13/05
posted May 10, 2005 4:51 PM

This one is nasty. I have a LiveDatagrid inside of a user control. I place this user control on a page that already contains a regular base class lib Datagrid. Each is independent of each other and they do different things on the page.

If i now make a regular postback from my page, my base class library datagrid loses all its values. It seems like the viewstate for this control is killed somehow. I know this is because of the LiveDatagrid in the user control because if I remove it from the user control, everything works fine again. :(

H
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted May 11, 2005 10:54 AM

Hmmm. I can't duplicate. Can you take a look at my project at http://support.dart.com/downloads/test.zip and see if there's anything different about our two projects?
lordhits2

From: Oakbrook Terrace, IL USA
Posts: 26
Member Since: 04/13/05
posted May 11, 2005 11:11 AM

Hi Jeff,

Ok, just tried your sample and it works as expected BUT move the user control above the Datagrid on the aspx page AND add a asp.net button so it does a postback. Try that out and you'll see the regular Datagrid disappears on postback.

H
lordhits2

From: Oakbrook Terrace, IL USA
Posts: 26
Member Since: 04/13/05
posted May 11, 2005 11:17 AM

You don't even need to add the button in your sample. Just click any "select" from the regular datagrid will display the buggy behavior.

One other thing. I'm running this on v1.1.1 as v1.1.2 has this deal breaker bug for me:
http://support.dart.com/postings?topicid=5439.

Now if this datagrid issue turns out to be a bug too, it's a complete deal breaker for me until a new patch is released. :(

H
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted May 11, 2005 3:23 PM

Ah, I see it now. I have written this up as bug #3164. We will most likely give this a high priority for our next release, scheduled for May 31.

If you would like, I'll be in touch about testing a beta for this fix when we start working on this bug.
lordhits2

From: Oakbrook Terrace, IL USA
Posts: 26
Member Since: 04/13/05
posted May 11, 2005 3:25 PM

You have my email. Thx.

H
jimmyb1651

From: Kensington, MD USA
Posts: 2
Member Since: 06/14/05
posted June 22, 2005 10:55 AM

I have had a similar problem and I have tracked it down to a quirk in javascrip which rears it's ugly head in the script.js file pwInArray function. Basically the datagrids and user controls all have the same root control, the user control and the indexOf function is returning a value of 0 no matter what, so the first datagrid on your control is considered the parent of all others. I have aletered my function as follws and so far so good:
function pwInArray(pwId, pwArr){
for(var i=0; i<pwArr.length; i++){
if(pwId.indexOf(pwArr[i]) == 0) return pwId;
var pwParts = pwArr[i].split(':');
var pwCounter = 0;
if(pwParts.length == 1) pwCounter = 0;
for(var j=pwCounter; j<pwParts.length; j++){
if(pwParts[j].length > pwId.length)
{
if(pwParts[j].indexOf("_") != 0)
{
if(pwId.indexOf(pwParts[j]) > -1)
return pwArr[i];
}
}
}
}
return null;
}
John Talarico



From: Rome, NY USA
Posts: 630
Member Since: 06/01/05
posted June 23, 2005 9:07 AM

While testing our next release, I have confirmed that this bug has been addressed.
jimmyb1651

From: Kensington, MD USA
Posts: 2
Member Since: 06/14/05
posted June 23, 2005 9:31 AM

Any ETA on the next release?

In the meantime, I placed a regular DataGrid next to a LiveLabel. I then bind the DataGrid to my DataSource and render the DataGrid;s HTML to a string (see http://aspnet.4guysfromrolla.com/articles/091102-1.aspx). I then set the text of the LiveLabel to this string. It seems to work well for my needs.
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX