When I create <igDP:UnboundColumn Name="Id" Binding="{Binding XPath=@id}"/>, instead of expected value of attribute id, grid shows "System.Xml.XmlAttribute", similarly for expressions that evaluate to elements "System.Xml.XmlElement" is displayed.
Same binding works when used in custom CellValuePresenter (relative to DataItem).
How can I bind to XPath expressions ?
Hello,
You can use
Sincerely,ValerieDeveloper Support Engineer Infragisticswww.infragistics.com/support
Indeed that works, but shouldn't it be considered a bug ? Bindings with XPAth without Path work everywhere else.
Hi,
I believe that the difference is related to whether the binding is returning a collection of the attributes or a single value.
Without the Path=Value the element would need to be able to handle a collection.
I hadn't heard back from you and I was wondering if you had further questions.
Not really though I still consider it a bug. Same binding works for example inside CellValuePresenter when used directly against DataItem. This problem is probably caused by indirection through DataRecord/RecordPresenter.
I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this in our internal tracking system with a Development ID # 17989.
I will create a case based on this question and you will hear from me shortly thru that case.