I have a WebDropDown populated at the server, and would like to client-side set or clear the checkbox on a particular item
<ig:WebDropDown ID="MyDropDownControl" runat="server" DisplayMode="DropDownList" EnableMultipleSelection="True" MultipleSelectionType="Checkbox" />
var ctrl = $find('MyDropDownControl');
var item0 = ctrl.get_items().getItem(0);
// these next two statements do select/unselect
// but no effect to the checkbox
item0.select();
item0.unselect();
// this does set the checkbox, but seems rather dangerous
item0.get_element().childNodes[0].checked = true;
Thank you!
Eric,
According to the bug, the fix was verified in version 9.1.20091.2065. I believe the July service release is build 2067, so it should be present there. Our August service release, which should ship soon, should also have the fix.
regards,David Young
I'm trying to lookup the status of the issue 19154. Do you have the link where I can search on this issue? Can you just tell me the version/hotfix number where this is fixed. I'm currently using 9.1.20091.2055.
Thanks,
Eric
Hello Terry,Thank you for attaching your sample application for the WebDropDown issue you had described when using FireFox version 3.0.11. After downloading and testing your sample, I was able to reproduce the behavior in FireFox and have submitted a request to Development for a resolution for this issue. For the benefit of anyone else encountering the same issue, the development issue number is 19154.
Your support case has been updated with this information and you will be notified when this issue has been resolved.We appreciate you bringing this development issue to our attention. Thank you for using the Infragistics forums and contacting Infragistics Developer Support.Sincerely,Mike D.Developer Support EngineerInfragistics, Inc.
Yep, sorry :) So for postback scenarios you will also need to do this :
// first uncheck as usual
childNode.checked = false;
// then object state also need to be changed, since after the postback it will re-apply the previous state
items.getItem(x).set_selected(false);
In the latest Service release for this month, where this issue is already fixed, this is done internally and works fine for postback-scenarios.
Hope it helps,
Angel
Angel,
I think you missed the point:
It works if you do not do a postbackIt does not work if you do a postback in Firefox - the checkbox remains checkedFF 3.0.11
IE8 works fine
Thanks!