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: LiveCheckBoxList problems
sandro

From: pordenone, Italy
Posts: 10
Member Since: 10/25/06
posted January 9, 2007 10:00 AM

I have the following problems with the LiveCheckBoxList component:

1) if I add dinamically an Item to the list, the list is automatically updated only if it has altready some items in it; if it is empty it is not updated until page is reloaded. The code I use to add an Item is

myList.Items.Add(new ListItem(itemName, itemValue));

2) if a clear a list containing some items the list is not updated until I reload the page; my code is:

myList.Items.Clear();

3) if I select an item in the list the checkbox becomes automatically unchecked immediately after I check it with the mouse

All these actions are performed inside LiveButton_Click event handlers and my version of PowerWeb LiveControls is 1.5.4

Thanks Sandro
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted January 9, 2007 11:17 AM

Hi Sandro,
I am unable to reproduce any of your reported behavior.
Here is the simple test I performed:

//Two LiveButtons and a LiveCheckBoxList
private void LiveButton1_Click(object sender, System.EventArgs e)
{
  //Add items and check each selected state
  LiveCheckBoxList1.Items.Add(new ListItem(DateTime.Now.ToString(), DateTime.Now.ToString()));

  for (int i=0; i<LiveCheckBoxList1.Items.Count; i++
  System.Diagnostics.Debug.WriteLine(LiveCheckBoxList1.Items[i].Value + ": " + LiveCheckBoxList1.Items[i].Selected.ToString());
  System.Diagnostics.Debug.WriteLine("");
}

private void LiveButton2_Click(object sender, System.EventArgs e)
{
  //Clear items in list
  LiveCheckBoxList1.Items.Clear();
}

Everything I tried worked as expected.
Does this simple example work for you?
What must be changed to see the behavior you describe?

Thanks,
-ken
sandro

From: pordenone, Italy
Posts: 10
Member Since: 10/25/06
posted January 10, 2007 10:40 AM

Hi Ken,
I tried your example on my machine but it does not work: when I add an item to the list it is not shown in the browser if the list does not contain at least one static element. If the list is empty when I compile then I'm not able to see anything inside the browser even if I add items to the list; using a breakpoint I inspected the list and it contains all the items I added dinamically but they are not show on screen.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted January 10, 2007 12:26 PM

Hi,
What version of VS.NET are you using?
What browser are you using?

My app was developed with 2003, and I tried IE6, IE7 and Firefox.

Thanks,
-ken
sandro

From: pordenone, Italy
Posts: 10
Member Since: 10/25/06
posted January 11, 2007 2:52 AM

I'm working with VS.NET 2005 and I performed the test with IE6, IE7 and Firefox 1.5

Sandro
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted January 11, 2007 9:41 AM

Hi Sandro,
When I converted my 2003 project to 2005, it still worked, but then I tried a new 2005 project and saw the problem.

This has been reported to development as issue #4229.
To get the status of this issue, please contact David Harry (sales@dart.com).

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