Hi Luis, hi all,
I've got these two problems:
The first one is the selected row won't render properly when the ListView loaded data and first time render them.
If I code like this:
1 <application>
2 <load>
3 <setProperty target="listView1" property="dataIndex" value="1" />
4 </load>
5 </application>
or:
1 <dataSource id="dataSource" serviceURL="AnyDataService.asmx" autoLoad="true">
2 <dataAvailable>
3 <setProperty target="listView1" property="dataIndex" value="1" />
4 </dataAvailable>
5 </dataSource>
then the property was set properly, but the users can't see the selected row with the selectedItemCssClass styled.
When the ListView is rendered, users can't select the second row becouse it's is already selected, but they can't firstly select other rows and then select the second row, and it will rendered correctly. So it seems have some problem.
And if I code like this:
1 <listView id="listView1" itemTemplateParentElementId="AnyElement" selectedItemCssClass="Selected">
2 ...
3 </listView>
it shouldn't work at all.
The second qustion is, I need the value of dataIndex available to set to "-1" too,
for example, I need mutiple ListViews to control one ItemView, only the last row being selected in all lists will rendered with the selectedItemCssClass style, all other ListViews' dataIndex property set to "-1".