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.
Thanks for reply.
there is 1 more problem.
if dropdown has 2 value for example:
ABC1 and ABC 2
and we select dropdown.currentvalue ="ABC 2";
then it shows as selected in view and its highlighted.
but if we try to access dropdown.selecteditem then it shows me selecteditem as null,
while it should auto set selectitem in dropdown, if we set existing text in dropdown.
Is there a way to do this?
Hi Mypost,
If you need any further assistance on the matter please do not hesitate to ask.
Hello Mypost, It seems that this is the control's behavior by design. The special characters in CurrentValue property, including blank space, when being sent to or from the server, are additionally encoded. A possible workaround in this case would be to use code, similar to the following:
string htmlValue = WebDropDown1.CurrentValue;
string decoded = HttpUtility.UrlDecode(htmlValue);
Alternatively you could use SelectedItem.Text property of the WebDropDown.
Please let me know if this helps.