This is something that was driving me crazy.
I have a project that I updated to use the 2015.2.826.40 version. I noticed that when I was trying to clear the selection of the grid it was not working. The grid is set to allow selections and I have a function attached to a button that will clear the selection.Using the basic code (I tried a number of variations and even looping through the items and setting the selected property to false):
var
grid = $find(
"<%=RadGrid1.ClientID %>"
);
grid.clearSelectedItems();
I spent a lot of time going through the code and trying to find out what the issue could be, nothing. I discovered that if I set the grid to allowMultiSelect='true' then it worked! The issue is I can't allow multi select.
I then tested my old project (backup) and everything worked correctly. I then replaced the control .dll files in my new (updated) project with version 2014.2.724.40 and the code is now working :/
Is this a bug or known issue with this version? Has anybody else seen this? I am sure this is fixed in later versions but I am locked into this version. Any suggestions?
Thanks,
Craig
window.radopen=
function(url,_1c){
var
_1d=GetRadWindowManager();
return
_1d.open(url,_1c);
};
<
telerik:RadWindowManager ID="RadWindowManager1" runat="server"
Behavior="Default" InitialBehavior="None" Left="" style="display: none;" Top="">
<Windows>
<telerik:RadWindow ID="radwUploadFiles" runat="server"
NavigateUrl="~/Bursaries/UploadConfig.aspx" Title="Upload File(s)"
VisibleStatusbar="false" Width="840px" Height="620px" ReloadOnShow="true" Skin="Web20">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<script type="text/javascript">
function ShowUploader()
{
window.radopen(
null, "radwUploadFiles");
}
ImageButton
imgbtn = sender as ImageButton;
imgbtn.Attributes.Add(
"OnLoad", "ShowUploader();return false;");
Public
Sub
SaveRB_Click(
ByVal
sender
As
Object
,
ByVal
args
As
EventArgs)
Handles
SaveRB.Click
Dim
RadImageEditor1
As
RadImageEditor =
DirectCast
(MiscUtils.FindControlRecursively(
Me
.Page,
"RadImageEditor1"
), RadImageEditor)
RadImageEditor1.SaveImageOnServer(
""
, true)
End
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