I am trying to bind to the Content Template of a RadPanelBar with and object (see below). I am able to get the Panel Labels to display but the panel items are not expandable and they don't show the Rad Text Box inside the content.
<telerik:RadPanelBar RenderMode="Lightweight" ID="RadPanelBar1" Runat="server" Width="75%">
<Items>
<telerik:RadPanelItem runat="server">
<ContentTemplate>
<telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DetailMessage") %>'></telerik:RadTextBox>
</ContentTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
public class DetailInfo
{
public string DetailMessage { get; set; }
}
public class PanelInfo
{
public int PanelId { get; set; }
public string PanelLabel { get; set; }
public DetailInfo Details { get; set; }
public string DetailMessage {get; set; }
}
protected void Page_Load(object sender, EventArgs e)
{
List<PanelInfo> PanelLabels = Enumerable.Range(1, 10).Select(m =>
new PanelInfo
{
PanelLabel = String.Format("Panel {0}", m),
PanelId = m,
Details = new DetailInfo { DetailMessage = string.Format("Detail {0}", m) },
DetailMessage = String.Format("Message {0}", m),
}
).ToList();
RadPanelBar1.DataSource = PanelLabels;
RadPanelBar1.DataTextField = "PanelLabel";
RadPanelBar1.DataValueField = "PanelId";
RadPanelBar1.DataBind();
}
Hi there,
I would like to change a couple of things regarding styling to the RadSiteMap (see attachment)
1. Remove horizontal line
I want to remove the horizontal lines, like beneath the 'Auxiliary equipment' text and 'Drivetrain' text.
2. Remove indent level
Is there a way to remove the indents before a level (like before the bullets)?
3. Add empty line last level
I want to create extra space between the 2 levels (like extra space between 'Weigh scale hand pallet trucks' and 'Drivetrain')
I hope somebody is able to assist.
Regards,
Marcel
Hello,
I'm using Telerik UI for ASP.NET AJAX build 2017.1.118.40 with the Metro theme.
My application has many RadGrid instances, and for some reason none of them are showing column checkbox selections correctly in their header context menus.
I've attached a screenshot to demonstrate. You'll see that the columns that should be checked (they are currently visible in the grid) are shown using a light blue color - but they aren't actually checked. If I explicitly toggle the checkbox (by clicking it), then it appears as expected, but only until the next postback.
I thought I might have some styles conflicting with this theme, but I've removed all my application's CSS (as a test), and nothing changed.
Has anyone else encountered this? Any thoughts or feedback would be greatly appreciated.
- Mark R.
Hi,
My RadComboBox in aspx:
<telerik:RadAutoCompleteBox runat="server" id="RadAutoCompleteBox" onclientrequesting="requesting"> </telerik:RadAutoCompleteBox>
I have array (50 items) in Javascript. Details item:
- Id- this element set to value selected item;
- Text ( Account Number + Description) - this element set to selection list in RadAutoCompleteBox;
- Account Number - this element set to input;
I would like update RadAutoCompleteBox in function requesting in Javasctipt.
function requesting(sender, eventArgs) {
var value = sender.get_text();
for (var j = 0; j < myArray.length; j++) {
if (myArray[j][1].indexOf(value) > -1) {
????????????;
}}};