As shown in figure
CodePudding user response:
You have a problem is the source of the binding to control the Id is null instead of coming on the null (or should be the entire object is null)CodePudding user response:
What is the object. See lv selecteditemCodePudding user response:
Lv. SelectedItem actual type of the object is MenuList but you want to use the as forced to transform it into a MenuModel lead to unsuccessful.While transformation, as in is will return null if the conversion is not successful.
So m assigned to null