Here my snipet. I have two problems. First, i can't view selected item, after i select item in dropdown and save. Second, if create new item without select domain, it has wrong site code. Domain can't be zero because site_data not contains item with code 0;
Help me please
selectable
totrue
in the ListView.You get value
0
for domain because you did not define a default value forsite
in yourdataSource
so being a number the default value is0
and it is not important the fact that there is no0
in the list of values that you provide (there is no such validation). So you should have it as:Where I set
defaultValue
forsite
to1
(first value in the list).Your code modified here: http://dojo.telerik.com/@OnaBai/Ihab