Hello,
I’m trying to DataBind a RadPanelBar but with no success.
<P><%@ Page Title="" Language="C#" MasterPageFile="~/boris.Master" AutoEventWireup="true"<BR> CodeBehind="rejsekort_GUI_underside.aspx.cs" Inherits="Boris.rejsekort_GUI_underside" %></P> <P><asp:Content ID="Content1" ContentPlaceHolderID="bottom" runat="server"><BR> <div class="dashboardPanelbar"><BR> <telerik:RadPanelBar ID="panelBarDashboard" runat="server" Width="100%" EnableEmbeddedSkins="false"<BR> OnItemDataBound="panelBarDashboard_ItemDataBound" Skin="None" OnPreRender="panelBarDashboard_PreRender"<BR> CollapseDelay="100" ExpandDelay="100" BorderStyle="None" ExpandMode="SingleExpandedItem" AllowCollapseAllItems="true"><BR> <Items><BR> <telerik:RadPanelItem ImageUrl="Styles/Images/1318514913_clean.png" Text="Henrik Hansen - Person"<BR> Expanded="true" CssClass="roundedRadPanelItemFirst" AccessKey="1"><BR> <Items><BR> <telerik:RadPanelItem><BR> <ItemTemplate><BR> <div class="dashboardPanelbarItems"><BR> <table class="mainTable"><BR> <tr><BR> <td style="width: 50%"><BR> <div class="divRadPanelItemLeft"><BR> <span class="spanRadPanelItemLegend">CARD</span><BR> <table cellspacing="0" width="90%" class="leftTable"><BR> <tr class="leftTableItemColor"><BR> <td><BR> Balance<BR> </td><BR> <td><BR> 300 kr.<BR> <%# Eval("CardBalance")%><BR> </td><BR> <td><BR> <a href="#">Reload Saldo</a><BR> <br /><BR> <a href="#">Saldo modification</a><BR> </td><BR> </tr><BR> <tr class="leftTableAlternateColor"><BR> <td><BR> Expiry date<BR> </td><BR> <td><BR> 14-06-2012<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr class="leftTableItemColor"><BR> <td><BR> Reload contract<BR> </td><BR> <td><BR> 300 kr.<br /><BR> Min. 50 kr.<br /><BR> 2 daglige<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3"><BR> <BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3" align="right"><BR> <telerik:RadButton ID="btnViewEditCard" runat="server" Text="View / Edit card" EnableEmbeddedSkins="false"<BR> Skin="ThalesSkin" OnClick="btnViewEditCard_Click" CommandArgument="1" AccessKey="n"<BR> OnPreRender="btnViewEditCard_PreRender"><BR> </telerik:RadButton><BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3"><BR> <BR> </td><BR> </tr><BR> </table><BR> </div><BR> </td><BR> <td style="width: 50%"><BR> <div class="divRadPanelItemRight"><BR> <span class="spanRadPanelItemLegend">SETTINGS</span><BR> <table cellspacing="0" width="90%" class="rightTable"><BR> <tr class="rightTableItemColor"><BR> <td><BR> Passsengers<BR> </td><BR> <td><BR> Adult: 2<br /><BR> Children 13-17 : 2<br /><BR> Dog : 1<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr class="rightTableAlternateColor"><BR> <td><BR> Products on card<BR> </td><BR> <td><BR> Season pass<BR> </td><BR> <td><BR> <a href="#">View details</a><BR> </td><BR> </tr><BR> <tr class="rightTableItemColor"><BR> <td><BR> Current<BR> <br /><BR> discount level<BR> </td><BR> <td><BR> East: 4<BR> <br /><BR> West: 2<br /><BR> Across : 0<BR> </td><BR> <td valign="top"><BR> <a href="#">View discount details</a><BR> </td><BR> </tr><BR> <tr class="rightTableAlternateColor"><BR> <td><BR> Until :<BR> </td><BR> <td><BR> 30-09-2011<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3"><BR> <BR> </td><BR> </tr><BR> </table><BR> </div><BR> </td><BR> </tr><BR> </table><BR> </div><BR> </ItemTemplate><BR> </telerik:RadPanelItem><BR> </Items><BR> </telerik:RadPanelItem><BR> <telerik:RadPanelItem ImageUrl="Styles/Images/1318514913_clean.png" Text="Henrik Hansen - Person"<BR> Expanded="false" CssClass="roundedRadPanelItem" AccessKey="2"><BR> <Items><BR> <telerik:RadPanelItem><BR> <ItemTemplate><BR> <div class="dashboardPanelbarItems"><BR> <table class="mainTable"><BR> <tr><BR> <td style="width: 50%"><BR> <div class="divRadPanelItemLeft"><BR> <span class="spanRadPanelItemLegend">CARD</span><BR> <table cellspacing="0" width="90%" class="leftTable"><BR> <tr class="leftTableItemColor"><BR> <td><BR> Balance<BR> </td><BR> <td><BR> 300 kr.<BR> </td><BR> <td><BR> <a href="#">Reload Saldo</a><BR> <br /><BR> <a href="#">Saldo modification</a><BR> </td><BR> </tr><BR> <tr class="leftTableAlternateColor"><BR> <td><BR> Expiry date<BR> </td><BR> <td><BR> 14-06-2012<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr class="leftTableItemColor"><BR> <td><BR> Reload contract<BR> </td><BR> <td><BR> 300 kr.<br /><BR> Min. 50 kr.<br /><BR> 2 daglige<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3"><BR> <BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3" align="right"><BR> <telerik:RadButton ID="btnViewEditCard" runat="server" Text="View / Edit card" EnableEmbeddedSkins="false"<BR> Skin="ThalesSkin" OnClick="btnViewEditCard_Click" CommandArgument="2" AccessKey="n" /><BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3"><BR> <BR> </td><BR> </tr><BR> </table><BR> </div><BR> </td><BR> <td style="width: 50%"><BR> <div class="divRadPanelItemRight"><BR> <span class="spanRadPanelItemLegend">SETTINGS</span><BR> <table cellspacing="0" width="90%" class="rightTable"><BR> <tr class="rightTableItemColor"><BR> <td><BR> Passsengers<BR> </td><BR> <td><BR> Adult: 2<br /><BR> Children 13-17 : 2<br /><BR> Dog : 1<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr class="rightTableAlternateColor"><BR> <td><BR> Products on card<BR> </td><BR> <td><BR> Season pass<BR> </td><BR> <td><BR> <a href="#">View details</a><BR> </td><BR> </tr><BR> <tr class="rightTableItemColor"><BR> <td><BR> Current<BR> <br /><BR> discount level<BR> </td><BR> <td><BR> East: 4<BR> <br /><BR> West: 2<br /><BR> Across : 0<BR> </td><BR> <td valign="top"><BR> <a href="#">View discount details</a><BR> </td><BR> </tr><BR> <tr class="rightTableAlternateColor"><BR> <td><BR> Until :<BR> </td><BR> <td><BR> 30-09-2011<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3"><BR> <BR> </td><BR> </tr><BR> </table><BR> </div><BR> </td><BR> </tr><BR> </table><BR> </div><BR> </ItemTemplate><BR> </telerik:RadPanelItem><BR> </Items><BR> </telerik:RadPanelItem><BR> <telerik:RadPanelItem ImageUrl="Styles/Images/1318514913_clean.png" Text="Henrik Hansen - Person"<BR> Expanded="false" CssClass="roundedRadPanelItem" AccessKey="3"><BR> <Items><BR> <telerik:RadPanelItem><BR> <ItemTemplate><BR> <div class="dashboardPanelbarItems"><BR> <table class="mainTable"><BR> <tr><BR> <td style="width: 50%"><BR> <div class="divRadPanelItemLeft"><BR> <span class="spanRadPanelItemLegend">CARD</span><BR> <table cellspacing="0" width="90%" class="leftTable"><BR> <tr class="leftTableItemColor"><BR> <td><BR> Balance<BR> </td><BR> <td><BR> 300 kr.<BR> </td><BR> <td><BR> <a href="#">Reload Saldo</a><BR> <br /><BR> <a href="#">Saldo modification</a><BR> </td><BR> </tr><BR> <tr class="leftTableAlternateColor"><BR> <td><BR> Expiry date<BR> </td><BR> <td><BR> 14-06-2012<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr class="leftTableItemColor"><BR> <td><BR> Reload contract<BR> </td><BR> <td><BR> 300 kr.<br /><BR> Min. 50 kr.<br /><BR> 2 daglige<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3"><BR> <BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3" align="right"><BR> <telerik:RadButton ID="btnViewEditCard" runat="server" Text="View / Edit card" EnableEmbeddedSkins="false"<BR> Skin="ThalesSkin" OnClick="btnViewEditCard_Click" CommandArgument="3" AccessKey="n" /><BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3"><BR> <BR> </td><BR> </tr><BR> </table><BR> </div><BR> </td><BR> <td style="width: 50%"><BR> <div class="divRadPanelItemRight"><BR> <span class="spanRadPanelItemLegend">SETTINGS</span><BR> <table cellspacing="0" width="90%" class="rightTable"><BR> <tr class="rightTableItemColor"><BR> <td><BR> Passsengers<BR> </td><BR> <td><BR> Adult: 2<br /><BR> Children 13-17 : 2<br /><BR> Dog : 1<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr class="rightTableAlternateColor"><BR> <td><BR> Products on card<BR> </td><BR> <td><BR> Season pass<BR> </td><BR> <td><BR> <a href="#">View details</a><BR> </td><BR> </tr><BR> <tr class="rightTableItemColor"><BR> <td><BR> Current<BR> <br /><BR> discount level<BR> </td><BR> <td><BR> East: 4<BR> <br /><BR> West: 2<br /><BR> Across : 0<BR> </td><BR> <td valign="top"><BR> <a href="#">View discount details</a><BR> </td><BR> </tr><BR> <tr class="rightTableAlternateColor"><BR> <td><BR> Until :<BR> </td><BR> <td><BR> 30-09-2011<BR> </td><BR> <td><BR> <BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3"><BR> <BR> </td><BR> </tr><BR> </table><BR> </div><BR> </td><BR> </tr><BR> </table><BR> </div><BR> </ItemTemplate><BR> </telerik:RadPanelItem><BR> </Items><BR> </telerik:RadPanelItem> <BR> </Items><BR> </telerik:RadPanelBar> <BR> <div><BR> <asp:Panel runat="server" ID="pnlPager"><BR> <asp:HyperLink ID="hlPrevious" Text="Previous" runat="server" NavigateUrl="#" Visible="false"></asp:HyperLink><BR> <asp:HyperLink ID="hlNext" Text="Next" runat="server" NavigateUrl="#" Visible="false"></asp:HyperLink><BR> </asp:Panel><BR> </div><BR> </div></P> <P> <script language="javascript" type="text/javascript"></P> <P> function telerikModifications() {<BR> /* Add images */<BR> var panelbar = document.getElementById("<%= panelBarDashboard.ClientID %>");<BR> var spanItems = panelbar.getElementsByTagName("span");<BR> var Images = "<%=Images%>"<BR> var ImagesCount = -1;<BR> var arrImages = Images.split(",")<BR> var i = 0;<BR> for (i = 0; i < spanItems.length; i++) {<BR> if (spanItems[i].className == "<%=rpOut %>") {<BR> ImagesCount++;<BR> spanItems[i].innerHTML = spanItems[i].innerHTML + arrImages[ImagesCount];<BR> }</P> <P> if (spanItems[i].className == "<%=rpText%>") {<BR> spanItems[i].className = "";<BR> }<BR> }</P> <P> /* Add Legends */<BR> /* <div class='roundedPanelItemLegend'>TEST TEST</div>,<div class='roundedPanelItemLegend'>TEST Test Test</div>,<div class='roundedPanelItemLegend'>TEST Test</div> should be dynamically<BR> created as shown above for the "Images" variable*/<BR> var ulItems = panelbar.getElementsByTagName("ul");<BR> i = 0;<BR> for (i = 0; i < ulItems.length; i++) {<BR> if (ulItems[i].className.indexOf("rpRootGroup") != -1) {<BR> var liItems = ulItems[i].getElementsByTagName("li");<BR> var lis = "<%=Legends%>"<BR> var lisCount = -1;<BR> var arrlis = lis.split(",")<BR> var x = 0;<BR> for (x = 0; x < liItems.length; x++) {<BR> if (liItems[x].className == "rpItem rpFirst" || liItems[x].className == "rpItem" || liItems[x].className == "rpItem rpLast") {<BR> lisCount++;<BR> liItems[x].innerHTML = arrlis[lisCount] + liItems[x].innerHTML;<BR> }<BR> }</P> <P> }<BR> }<BR> }</P> <P><BR> function telerikRadButtonModifications() {<BR> var radPanel = document.getElementById("<%= panelBarDashboard.ClientID %>");<BR> var atags = radPanel.getElementsByTagName("a");<BR> i = 0;<BR> for (i = 0; i < atags.length; i++) {<BR> if (atags[i].className.indexOf("RadButton") != -1) {<BR> atags[i].removeAttribute("href");<BR> var tindex;<BR> tindex = atags[i].tabIndex;<BR> var button;<BR> button = atags[i].getElementsByTagName("input")[0];<BR> button.setAttribute("tabIndex", tindex);<BR> }<BR> }<BR> }</P> <P> </P> <P> </script><BR> <script type="text/javascript" src="Scripts/Telerik.js?<%=Guid%>"></script><BR></asp:Content><BR></P><BR><BR>panelBarDashboard.DataTextField = "CardDisplayId";<BR>panelBarDashboard.DataFieldID = "CardInternalId";<BR>panelBarDashboard.DataFieldParentID = "ParentID"; <BR>panelBarDashboard.DataSource = cardsDisplayed;<BR>panelBarDashboard.DataBind();<BR><BR>I am new to the Telerik controls, and I am having a difficult time achieving what I would think would be a fairly simple task.
I have a radgrid with it's edit form type set to "template". I would like to add a simple "file attachment" feature to the form, so that someone can attach a file when editing the record, and be able so see/open the attachments when viewing the record. Nothing fancy, just basic file attachment functionality. I was hoping there would be a basic "file attachment" type of control where I can just drop it on the form and tell it "here is my field to store the file, and here is the ID field (or some field) from the RadGrid datasource to use as a key" and it just works, but unless I am overlooking something I don't see it. Even as I am writing this post I notice this message board has a simple "Attach files" option at the bottom that I assume works like I what I want.
I have tried in vain to search through the forums and look at all the demo's, but I think I am only confusing myself. I have looked at the demos for the RadAsynchUpload control which seems close to what I need, but the demos don't seem to be set up with a radgrid edit template in use. They also seem to involve a fair amount of customised coding, which I was hoping to avoid. I also looked into the attachment grid column type, but I couldn;t get that to work either.
Can anyone provide me a clear/simple demo (VB.net) that shows how to achieve what I need? I would prefer to store the files (they will be small files, and only one file per record) in the SQL database, but could store them in a folder if that makes it easier.
Thanks.

Hello,
I am trying to implement the following solution to enable the double-click to edit feature on a TreeList: https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/ajaxified-radgrid/how-to/go-into-edit-mode-with-ajax-double-click
However, as I am trying to convert the RadGrid-based example above to the TreeList I am unable to find an equivalent of RadGrid's editItem method on a TreeList control (https://docs.telerik.com/devtools/aspnet-ajax/controls/treelist/client-side-programming/overview). The closest I found was to call the fireCommand("Edit", "") method, but it causes the page to postback and as such causes the javascript variables to lose references to the row being edited.
Can you think of a way to correctly implement the double-click to edit feature on the TreeList?
Thanks!


Can I have 3D view for RadHtml column chart. I am using telerik version 2014.1.225.40. Please help.
Thanks,
Rosalini

Hello, I am using 2015.3.930.40.
I added two ImageGalleryTemplateItem and now the RadImageGallery posts back on each forward and back. Can I prevent postback? If I do need to postback, how can I keep the animation between items? Thank you.
Is it possible to discover e.Item depth in itemdatabound?
Marc