Hi,
i am using WebDropDown 2011.2 version,
i have also upgraded 2011.2 by new service pack 2086.
i am using fallowing version: Assembly="Infragistics4.Web.v11.2, Version=11.2.20112.2086
Problem:
In my dropdown has fallowing value
DropDownItem("ABC 1","ABC-1");
DropDownItem("ABC 2","ABC-2");
DropDownItem("ABC 3","ABC-3");
DropDownItem("ABC 4","ABC-4");
if a select a dropdown value 2 and access its CurrentValue from code behind
then it give me ABC%2 this is incorrect it should give me ABC 2.
I suspect this is a bug since the additional encoding is not mentioned in the documentation:
ms-help://NetAdvantage_ASPNET121/Web_ASPNET121/WebElements/Infragistics4.Web.v12.1~Infragistics.Web.UI.ListControls.WebDropDown~CurrentValue.html
Also, it breaks existing code, for example:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.1/CLR3.5/html/WebDropDown_Lazy_Loading.html
Please clarify if this is a defect or not, and if it will be corrected in upcoming releases.
Hi Mypost,
If you need any further assistance on the matter please do not hesitate to ask.
Hello Mypost,
The CurrentValue property only gets/sets the value of the input box of the control. It is not associated with any item from the DropDownItems collection, so that's why you are getting null for SelectedItem.
Let me know if you have any further questions.
Thanks for reply.
sorry for that.
if we set dropdown value from code behind when page load first time.
("dropdown.currentvalue ="ABC 2")
and then user do not change value of fropdown from aspx page and then click on any butoon
for axample save button, then if we try to access dropdwn.selecteitem then selecteditem is null.
why?
I'm sorry I couldn't understand the question. Could you please clarify what do you mean by selecting "dropdown.currentvalue ="ABC 2";" and how exactly do you access the selected item - in response to event or otherwise? It would also be helpful if you could share the markup of your WebDropDown.
Thank you.