<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX Discussion and Suggestions</title><link>http://forums.asp.net/1007.aspx</link><description>This forum is the place for ASP.NET AJAX 'getting started' questions, general questions that don't fit in one of the other forums about AJAX </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: [BUG] Can't select first element of the listview control due to bug of datacontrol class</title><link>http://forums.asp.net/thread/1364950.aspx</link><pubDate>Tue, 08 Aug 2006 21:49:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1364950</guid><dc:creator>Luis Abreu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1364950.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1364950</wfw:commentRss><description>&lt;p&gt;hello.&lt;/p&gt;
&lt;p&gt;well, i'll try to find a simple workaround (no promises though...).&lt;/p&gt;</description></item><item><title>Re: [BUG] Can't select first element of the listview control due to bug of datacontrol class</title><link>http://forums.asp.net/thread/1364791.aspx</link><pubDate>Tue, 08 Aug 2006 19:43:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1364791</guid><dc:creator>aldwis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1364791.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1364791</wfw:commentRss><description>Thanks Luis!&lt;br /&gt;&lt;br /&gt;What I need is my second question, to control one ItemView with mutiple ListViews, so I need available to set thier dataIndex to "-1", hmmm... I think it's similar to your question~:"P&lt;br /&gt;&lt;br /&gt;BTW, have a nice vacation!</description></item><item><title>Re: [BUG] Can't select first element of the listview control due to bug of datacontrol class</title><link>http://forums.asp.net/thread/1364591.aspx</link><pubDate>Tue, 08 Aug 2006 17:06:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1364591</guid><dc:creator>Luis Abreu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1364591.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1364591</wfw:commentRss><description>&lt;p&gt;hell no :D&lt;/p&gt;
&lt;p&gt;what do you really need? to select an item dinamically and make the list render it correctly? i'm currently on vacations, but if you tell me what you0re after, then i may take a look at it when i return...&lt;/p&gt;</description></item><item><title>Re: [BUG] Can't select first element of the listview control due to bug of datacontrol class</title><link>http://forums.asp.net/thread/1363230.aspx</link><pubDate>Mon, 07 Aug 2006 14:37:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1363230</guid><dc:creator>aldwis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1363230.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1363230</wfw:commentRss><description>Thanks!&lt;br /&gt;&lt;br /&gt;Yep, I think maybe I'd better use UpdatePanel with Server Controls currently...&lt;br /&gt;</description></item><item><title>Re: [BUG] Can't select first element of the listview control due to bug of datacontrol class</title><link>http://forums.asp.net/thread/1362461.aspx</link><pubDate>Sun, 06 Aug 2006 17:35:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1362461</guid><dc:creator>Luis Abreu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1362461.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1362461</wfw:commentRss><description>&lt;p&gt;hello.&lt;/p&gt;
&lt;p&gt;well, that's the problem i've been talking about...btw, i think that you can change this by modifying one or two lines on the atlas files (though this is far from good since you'll have to change it again when a new version is released).&lt;/p&gt;</description></item><item><title>Re: [BUG] Can't select first element of the listview control due to bug of datacontrol class</title><link>http://forums.asp.net/thread/1362367.aspx</link><pubDate>Sun, 06 Aug 2006 12:22:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1362367</guid><dc:creator>aldwis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1362367.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1362367</wfw:commentRss><description>ooop, sorry, another error in my post &lt;img src="/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt;:&lt;br /&gt;&lt;br /&gt;When the ListView is rendered, users can't select the second row
becouse it's is already selected, but they &lt;font color="#ff0000"&gt;can&lt;/font&gt; firstly select other
rows and then select the second row, and it will rendered correctly. So
it seems have some problem.&lt;br /&gt;</description></item><item><title>Re: [BUG] Can't select first element of the listview control due to bug of datacontrol class</title><link>http://forums.asp.net/thread/1362366.aspx</link><pubDate>Sun, 06 Aug 2006 12:17:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1362366</guid><dc:creator>aldwis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1362366.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1362366</wfw:commentRss><description>I see I can't edit my post, so I correct the third part of code here:&lt;br /&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&amp;lt;&lt;span class="tag"&gt;listView&lt;/span&gt;&lt;span class="attr"&gt; id=&lt;/span&gt;&lt;span class="attrv"&gt;"listView1"&lt;/span&gt;&lt;span class="attr"&gt;  dataIndex=&lt;/span&gt;&lt;span class="attrv"&gt;"3"&lt;/span&gt;&lt;span class="attr"&gt; itemTemplateParentElementId=&lt;/span&gt;&lt;span class="attrv"&gt;"AnyElement"&lt;/span&gt;&lt;span class="attr"&gt; selectedItemCssClass=&lt;/span&gt;&lt;span class="attrv"&gt;"Selected"&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;b id="2"&gt;2    &lt;/b&gt;	...&lt;br /&gt;&lt;b id="3"&gt;3    &lt;/b&gt;&amp;lt;/&lt;span class="tag"&gt;listView&lt;/span&gt;&amp;gt;&lt;/pre&gt;</description></item><item><title>Re: [BUG] Can't select first element of the listview control due to bug of datacontrol class</title><link>http://forums.asp.net/thread/1362363.aspx</link><pubDate>Sun, 06 Aug 2006 12:10:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1362363</guid><dc:creator>aldwis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1362363.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1362363</wfw:commentRss><description>Hi Luis, hi all,&lt;br /&gt;&lt;br /&gt;I've got these two problems:&lt;br /&gt;The first one is the selected row won't render properly when the ListView loaded data and first time render them.&lt;br /&gt;&lt;br /&gt;If I code like this:&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&amp;lt;&lt;span class="tag"&gt;application&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;b id="2"&gt;2    &lt;/b&gt;	&amp;lt;&lt;span class="tag"&gt;load&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;b id="3"&gt;3    &lt;/b&gt;		&amp;lt;&lt;span class="tag"&gt;setProperty&lt;/span&gt;&lt;span class="attr"&gt; target=&lt;/span&gt;&lt;span class="attrv"&gt;"listView1"&lt;/span&gt;&lt;span class="attr"&gt; property=&lt;/span&gt;&lt;span class="attrv"&gt;"dataIndex"&lt;/span&gt;&lt;span class="attr"&gt; value=&lt;/span&gt;&lt;span class="attrv"&gt;"1"&lt;/span&gt; /&amp;gt;&lt;br /&gt;&lt;b id="4"&gt;4    &lt;/b&gt;	&amp;lt;/&lt;span class="tag"&gt;load&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;b id="5"&gt;5    &lt;/b&gt;&amp;lt;/&lt;span class="tag"&gt;application&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;/pre&gt;or:&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&amp;lt;&lt;span class="tag"&gt;dataSource&lt;/span&gt;&lt;span class="attr"&gt; id=&lt;/span&gt;&lt;span class="attrv"&gt;"dataSource"&lt;/span&gt;&lt;span class="attr"&gt; serviceURL=&lt;/span&gt;&lt;span class="attrv"&gt;"AnyDataService.asmx"&lt;/span&gt;&lt;span class="attr"&gt; autoLoad=&lt;/span&gt;&lt;span class="attrv"&gt;"true"&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;b id="2"&gt;2    &lt;/b&gt;	&amp;lt;&lt;span class="tag"&gt;dataAvailable&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;b id="3"&gt;3    &lt;/b&gt;		&amp;lt;&lt;span class="tag"&gt;setProperty&lt;/span&gt;&lt;span class="attr"&gt; target=&lt;/span&gt;&lt;span class="attrv"&gt;"listView1"&lt;/span&gt;&lt;span class="attr"&gt; property=&lt;/span&gt;&lt;span class="attrv"&gt;"dataIndex"&lt;/span&gt;&lt;span class="attr"&gt; value=&lt;/span&gt;&lt;span class="attrv"&gt;"1"&lt;/span&gt; /&amp;gt;&lt;br /&gt;&lt;b id="4"&gt;4    &lt;/b&gt;	&amp;lt;/&lt;span class="tag"&gt;dataAvailable&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;b id="5"&gt;5    &lt;/b&gt;&amp;lt;/&lt;span class="tag"&gt;dataSource&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;/pre&gt;then the property was set properly, but the users can't see the selected row with the selectedItemCssClass styled.&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;And if I code like this:&lt;pre class="coloredcode"&gt;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&amp;lt;&lt;span class="tag"&gt;listView&lt;/span&gt;&lt;span class="attr"&gt; id=&lt;/span&gt;&lt;span class="attrv"&gt;"listView1"&lt;/span&gt;&lt;span class="attr"&gt; itemTemplateParentElementId=&lt;/span&gt;&lt;span class="attrv"&gt;"AnyElement"&lt;/span&gt;&lt;span class="attr"&gt; selectedItemCssClass=&lt;/span&gt;&lt;span class="attrv"&gt;"Selected"&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;b id="2"&gt;2    &lt;/b&gt;	...&lt;br /&gt;&lt;b id="3"&gt;3    &lt;/b&gt;&amp;lt;/&lt;span class="tag"&gt;listView&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;/pre&gt;it shouldn't work at all.&lt;br /&gt;&lt;br /&gt;The second qustion is, I need the value of dataIndex available to set to "-1" too,&lt;br /&gt;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".</description></item><item><title>Re: [BUG] Can't select first element of the listview control due to bug of datacontrol class</title><link>http://forums.asp.net/thread/1362023.aspx</link><pubDate>Sat, 05 Aug 2006 15:42:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1362023</guid><dc:creator>Luis Abreu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1362023.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1362023</wfw:commentRss><description>&lt;p&gt;hello.&lt;/p&gt;
&lt;p&gt;yep. the bug is still there. btw, how are you selecting the element? doesn't it event work when you click on a row (that should automatically select the element)?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: [BUG] Can't select first element of the listview control due to bug of datacontrol class</title><link>http://forums.asp.net/thread/1362001.aspx</link><pubDate>Sat, 05 Aug 2006 14:49:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1362001</guid><dc:creator>aldwis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1362001.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1362001</wfw:commentRss><description>Hey guys!&lt;br /&gt;I've got the same problem when using July CTP,&lt;br /&gt;I've tried serveral ways to set the default value of listView's dataIndex property,&lt;br /&gt;the property were set succeed but the control not render correctly with selectedItemCssClass.</description></item><item><title>[BUG] Can't select first element of the listview control due to bug of datacontrol class</title><link>http://forums.asp.net/thread/1259814.aspx</link><pubDate>Mon, 17 Apr 2006 18:19:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1259814</guid><dc:creator>Luis Abreu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1259814.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1259814</wfw:commentRss><description>&lt;p&gt;hello guys.&lt;/p&gt;
&lt;p&gt;i've found a bug on the way the dataIndex is initialized in the datacontrol javascript class. by default, it's set to 0 and , in my opinion, it should be set to -1. due to this, if i build a simple listview and set the selecteditemcssclass, i won't be able to see the selected item on the list because set_dataIndex method won't update the selected item since it starts by comparing the value passed to the function with the current selected value which, by default is set to -1.&lt;/p&gt;
&lt;p&gt;so, i'd suggest that the initial value of the dataIndex should be set to -1. &lt;/p&gt;
&lt;p&gt;thanks.&lt;/p&gt;</description></item></channel></rss>