This is a migrated thread and some comments may be shown as answers.

Multiple server-call RadListView

1 Answer 50 Views
ListView
This is a migrated thread and some comments may be shown as answers.
nilesh
Top achievements
Rank 1
nilesh asked on 03 Apr 2010, 08:32 AM
Hello
 i am using the RadListView for displaying product boxes with ingress. i have following code


<telerik:RadListView runat="server" ID="products" Visible="false" ItemPlaceholderID="ProductItemContainer">
   <layouttemplate>
          <asp:PlaceHolder runat="server" ID="ProductItemContainer"/>
    </layouttemplate>
     <itemtemplate>
            <div class="<%=ArticleClassName%>">
                             <%#finArtTitle(CStr(DataBinder.Eval(Container.DataItem, "itemname")))%>
           </div>
   </itemtemplate>
</telerik:RadListView>


Now when i have place break-point for function "finArtTitle()" then i surprised to know that it fires for 16-times; when i have 4-products boxes (records).


Any suggestions / reasons please ?

Thanks.




1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 06 Apr 2010, 07:30 AM
Hello Nilesh,

We have recently address similar issue with current version of RadListView. Therefore the fix will be included in the SP1 of Q1 2010 release. Meanwhile you may check the next internal build, as it should contains the fix too.

However, taking into account the mentioned method execution count, you should check your logic for double binding. In normal conditions, with ViewState enabled and on initial load, even without the fix, the method should be called 8 time not 16.

Regards,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ListView
Asked by
nilesh
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or