Hi,
i have a problem with a webcombo. i created a webcombo and a button. when the button is clikced, an event is thrown that should change the data in the ultrawebgrid (dataadapter.fill()).
this doesn't work, the selected value of the webcombo is gone...
why is that...???
Can you step into the script debugger and see what code is executing that is causing the null ref? Is it coming from the WebCombo? I remember seeing an error like this in the early days of Microsoft's AJAX framework - though I can't recall if it was an "Atlas" bug, or a webgrid/combo compatibility issue that was later resolved. You may want to verify that you're using the latest version of NetAdvantage available - versions prior to 2006 vol 3 are not supported in Microsofts AJAX framework.
-Tony
Ah, i have it selection working now. (a missing asynchrefreshpanel was to blame)
However, i now get javascript errors when the selection occurs.
Error: "eventhandlers.blur is null or not an object"
This is an existing control someone else made so i'm just trying to get the thing working :)
Hi Tony,
I'm having a lot of trouble trying to select an item in the WebCombo programmatically. I use the following code:
If (selectedCell IsNot Nothing) Then
selectedCell.Activate()
selectedCell.Selected = True
End If
The selected cell is found, however its "Selected" property always remains false regardless of what i set it to. Is there any potential advice you could give me?
Thanks,
Sam
Make sure you're databinding the combo through the InitializeDataSource. If the combo goes to fire it's event, but hasn't been databound yet, it won't know what the selected item is. Also, if you forced a databind before the event fired, it could clear the selected row information.