Skip to main content
When I use a K2DropDownList control, I add my items to the "Items" collection.
I set the "Selected" value of one of the items being added to "True".
In the designer window it works perfectly in that the item is the default item in the control.
Unfortunately when I run the application (ASP.NET/C#) it opens the K2.net WebForm and the default item in the K2DropDownList is the first item in the collection.

Bug???

Thanks
C
This may have to do with the population of fields on the form's load event. What happens is that on the load event, fields that are linked to K2 datafields will be populated with the datafield's default value. To prevent this, set the textbox/drop-down list value on the smartform's PreRender event, or set the datafields default value in the process design to whatever value should be the default.

Reply