Hello ,
im Trying to use RadLightBox to show some pictures for different items so on click i need to change hidden field value and rebind the list .
so how can i rebind the light box from client side.
JS Code
function OpenImages(ItemID) {
$('#<%= hdnItemID.ClientID%>').val(ItemID);
//alert(ItemID);
var rlbItemImages = $find('<%= rlbItemImages.ClientID%>');
rlbItemImages.get_items();
//rlbItemImages.DataBind();
rlbItemImages.show();
}
RadLightBox Code
<telerik:RadLightBox ID="rlbItemImages" runat="server" DataSourceID="odsItemImages" ShowLoadingPanel="true"
EnableAjaxSkinRendering="true" RegisterWithScriptManager="true"
DataImageUrlField="ItemPath" DataDescriptionField="ItemPath" DataTitleField="ItemPath">
</telerik:RadLightBox>
Object DataSource Code
<asp:ObjectDataSource ID="odsItemImages" runat="server" SelectMethod="QueryDatabase" TypeName="AdoClass.DBitemsImagesSP" OldValuesParameterFormatString="original_{0}">
<SelectParameters>
<asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
<asp:Parameter Name="ID" Type="String" />
<asp:ControlParameter ControlID="hdnItemID" Name="ItemID" PropertyName="Value" Type="String" />
<asp:Parameter DefaultValue="" Name="ItemImage" Type="Object" />
<asp:Parameter Name="ItemPath" Type="String" />
<asp:Parameter DefaultValue="rtvImagesPaths" Name="Operation" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hdnItemID" />
Regards ,
im Trying to use RadLightBox to show some pictures for different items so on click i need to change hidden field value and rebind the list .
so how can i rebind the light box from client side.
JS Code
function OpenImages(ItemID) {
$('#<%= hdnItemID.ClientID%>').val(ItemID);
//alert(ItemID);
var rlbItemImages = $find('<%= rlbItemImages.ClientID%>');
rlbItemImages.get_items();
//rlbItemImages.DataBind();
rlbItemImages.show();
}
RadLightBox Code
<telerik:RadLightBox ID="rlbItemImages" runat="server" DataSourceID="odsItemImages" ShowLoadingPanel="true"
EnableAjaxSkinRendering="true" RegisterWithScriptManager="true"
DataImageUrlField="ItemPath" DataDescriptionField="ItemPath" DataTitleField="ItemPath">
</telerik:RadLightBox>
Object DataSource Code
<asp:ObjectDataSource ID="odsItemImages" runat="server" SelectMethod="QueryDatabase" TypeName="AdoClass.DBitemsImagesSP" OldValuesParameterFormatString="original_{0}">
<SelectParameters>
<asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
<asp:Parameter Name="ID" Type="String" />
<asp:ControlParameter ControlID="hdnItemID" Name="ItemID" PropertyName="Value" Type="String" />
<asp:Parameter DefaultValue="" Name="ItemImage" Type="Object" />
<asp:Parameter Name="ItemPath" Type="String" />
<asp:Parameter DefaultValue="rtvImagesPaths" Name="Operation" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hdnItemID" />
Regards ,