hi there,
i have a problem finding the listview through javascript. it always returns null.
also i get an error on setting datasource : function not known.
i just included the 3 dll's in my bin folder. Serverside was working
javascript:
function pageLoad() {
var listview = $find("rlvProducts");
console.log(listview);
listview.set_dataSource(products);
listview.dataBind();
}
aspx:
<telerik:RadListView ID="rlvProducts" CssClass="test" runat="server">
<ClientSettings>
<DataBinding ItemPlaceHolderID="iphProducts">
<LayoutTemplate>
<ul id="iphProducts">
</ul>
</LayoutTemplate>
<ItemTemplate>
<li>#= id #</li>
</ItemTemplate>
</DataBinding>
</ClientSettings>
</telerik:RadListView>
also i followed this guide:
http://blogs.telerik.com/aspnet-ajax/posts/12-02-06/client-side-databinding-with-radlistview-for-asp-net-ajax---part-1.aspx
i have a problem finding the listview through javascript. it always returns null.
also i get an error on setting datasource : function not known.
i just included the 3 dll's in my bin folder. Serverside was working
javascript:
function pageLoad() {
var listview = $find("rlvProducts");
console.log(listview);
listview.set_dataSource(products);
listview.dataBind();
}
aspx:
<telerik:RadListView ID="rlvProducts" CssClass="test" runat="server">
<ClientSettings>
<DataBinding ItemPlaceHolderID="iphProducts">
<LayoutTemplate>
<ul id="iphProducts">
</ul>
</LayoutTemplate>
<ItemTemplate>
<li>#= id #</li>
</ItemTemplate>
</DataBinding>
</ClientSettings>
</telerik:RadListView>
also i followed this guide:
http://blogs.telerik.com/aspnet-ajax/posts/12-02-06/client-side-databinding-with-radlistview-for-asp-net-ajax---part-1.aspx