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

ListView client-side databinding

2 Answers 54 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Yaroslav
Top achievements
Rank 1
Yaroslav asked on 23 Oct 2014, 10:26 AM
Is it possible to have many ListView with client-side databinding on one page?

2 Answers, 1 is accepted

Sort by
0
Yaroslav
Top achievements
Rank 1
answered on 23 Oct 2014, 10:32 AM
rendered HTML has two <div id="listView"> and first only work

<div id="listView">
    <a title="Go to previous page" href="javascript:void(0);" class="pagePrev" style=""></a>
    <a title="Go to next page" href="javascript:void(0);" class="pageNext"></a>
    <div id="items">
            <div class="item">
                <img alt="Photo" src="/Content/Images/GoalsImages/21-2076ad66-a80f-4b97-b2af-1cc122498412.jpg">
            </div>
    </div>
</div>

<div id="listView">
    <a title="Go to previous page" href="javascript:void(0);" class="pagePrev" style=""></a>
    <a title="Go to next page" href="javascript:void(0);" class="pageNext"></a>
    <div id="items">
    </div>
</div>
0
Konstantin Dikov
Telerik team
answered on 27 Oct 2014, 04:15 PM
Hello Yaroslav,

You could bind as many RadListView control on client-side as you want, but you must ensure that they will have unique IDs (for the inner elements as well).

Can you please provide the markup and the client-side logic of your current implementation, so we could investigate locally what could cause problems on your end. 

I am looking forward to your reply.


Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ListView
Asked by
Yaroslav
Top achievements
Rank 1
Answers by
Yaroslav
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or