Hi,
I just want to set a certain selectedItem during PagePrerender.My WebDropDown is databound.
cbo.SelectedItemIndex = 3
or
cbo.CurrentValue = "English"
are both ignored by the control.Every time the page is loaded the item with index = 0 is the actual selected Item in the webDropDown.
Which attribute do I have to set to get a certain item being selected by code behind?
best regardsAndreas
Hi there,
Please set the selected index at Page_Load instead as the logic of assigning the 0 index item to selected if no selection exists is done at PreRender. Setting the selected index on page load should resolve your issue.
Thank you for using the Infragistics forums!
Hello,
thank you for the support. I can set the the selectedItemIndex now in my actual case.
But how will I realize a scenario where I want to set the DropDown value dependent from a button click. The ButtonClick Event will always raise after the pageLoad Event of the userControl that is holding my WebDropDown.