private AccessibleObject GetItemAccessibleObject(RadListDataItem item)
        {
            RadListControlAccessibleObject  parent1 = this.parent as RadListControlAccessibleObject;
            RadDropDownListAccessibleObject parent2 = this.parent as RadDropDownListAccessibleObject;

            if (parent1 != null)
            {
                return((AccessibleObject)parent1.GetItemAccessibleObject(item));
            }
            if (parent2 != null)
            {
                return((AccessibleObject)parent2.GetItemAccessibleObject(item));
            }
            return((AccessibleObject) new RadListDataItemAccessibleObject(item, (AccessibleObject)null));
        }
 private AccessibleObject GetItemAccessibleObject(RadListDataItem item)
 {
     if (this.DropDown.OwnerDropDownListElement != null)
     {
         RadDropDownList control = this.DropDown.OwnerDropDownListElement.ElementTree.Control as RadDropDownList;
         if (control != null)
         {
             RadDropDownListAccessibleObject accessibilityObject = control.AccessibilityObject as RadDropDownListAccessibleObject;
             if (accessibilityObject != null)
             {
                 return((AccessibleObject)accessibilityObject.GetItemAccessibleObject(item));
             }
         }
     }
     return((AccessibleObject) new RadListDataItemAccessibleObject(item, (AccessibleObject)this));
 }