Hi RadEditor team!.
I have a problem related to the RadEditor control. I want to use my definition tag in the RadEditor's content.
Ex: <#xyz> Here is my tag </#xyz>
I paste it into the HTML mode, then click Design mode after that click HTML mode again, the closing tag (</#xyz>) is disappearing
My question is: how can I keep the input value of my definition tag?.
I'm using Telerik.Web.UI with version: 2012.3.1016.35 for SharePoint 2013.
Thanks a lot.
Lee K
I'm in the process of implementing a grid that requires the FilterCheckList (like Excel) and BatchEditing (which requires GridTemplateColumn). In the grid below, the columns State & FullName work just fine, but once i turned the column "Days" into a template column, the filtering on that column stopped working. Any ideas? Currently using 2014.1.225.40. Thanks!
ASP.NET
<telerik:RadGrid ID="gridData" runat="server" Skin="Telerik" OnNeedDataSource="NeedDataSource_Data" AutoGenerateColumns="false" AllowSorting="true" AllowFilteringByColumn="true" ShowHeader="true" ShowFooter="true" Width="100%" OnFilterCheckListItemsRequested="RadGrid1_FilterCheckListItemsRequested" FilterType="CheckList" GridLines="Both" AllowPaging="false"> <GroupingSettings CaseSensitive="false" /> <MasterTableView DataKeyNames="ID, Days" CommandItemDisplay="Top" EditMode="Batch"> <BatchEditingSettings EditType="Row" /> <Columns> <telerik:GridBoundColumn DataField="FullName" SortExpression="FullName" HeaderText="Name" FilterCheckListEnableLoadOnDemand="true" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"></telerik:GridBoundColumn> <telerik:GridTemplateColumn DataField="Days" HeaderText="Idle" FilterCheckListEnableLoadOnDemand="true" AllowFiltering="true" SortExpression="Days" AutoPostBackOnFilter="true" UniqueName="Days"> <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "Days") %> </ItemTemplate> <EditItemTemplate> <%# DataBinder.Eval(Container.DataItem, "Days") %> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="State" HeaderText="State" FilterCheckListEnableLoadOnDemand="true" ></telerik:GridBoundColumn> </Columns> </MasterTableView></telerik:RadGrid>C#
protected void RadGrid1_FilterCheckListItemsRequested(object sender, GridFilterCheckListItemsRequestedEventArgs e) { string DataField = e.Column.DataField; DataSet ds = (DataSet)Cache[cacheKey]; List<object> list = (from row in ds.Tables[0].AsEnumerable() select row[DataField]).Distinct().ToList(); DataTable dtResults = new DataTable(); dtResults.Columns.Add(DataField); DataRow drResult; foreach(object obj in list) { drResult = dtResults.NewRow(); drResult[DataField] = obj; dtResults.Rows.Add(drResult); } e.ListBox.DataSource = dtResults.AsEnumerable().Where(x => !x[DataField].ToString().IsNullOrEmpty()).OrderBy(y => y[DataField]).CopyToDataTable(); e.ListBox.DataKeyField = DataField; e.ListBox.DataTextField = DataField; e.ListBox.DataValueField = DataField; e.ListBox.DataBind(); }Hi All,
I've implemented this code from Docs and Api reference but the toolbar is no longer showing when I change the position of div when shown.
Any Help?
Thanks in advance!
<div id="wrapper" style="display:none;"> <telerik:RadEditor ID="RadEditor1" runat="server"> </telerik:RadEditor></div><telerik:RadButton runat="server" ID="RadButton1" Text="Toggle Visibility" OnClientClicked="OnClientClicked" AutoPostBack="false"></telerik:RadButton><script type="text/javascript"> function OnClientClicked(sender, args) { var editor = $find("<%= RadEditor1.ClientID %>"); var wrapper = $get("wrapper"); var isEditorVisible = editor.isVisible(); if (isEditorVisible) { $telerik.$(wrapper).hide(); // jQuery approach //wrapper.style.display = "none"; // JS approach } else { $(wrapper).attr("style", "LEFT: 300px; WIDTH: 400px; HEIGHT: 500px; POSITION: absolute; TOP: 62px; z-index: 210"); //Code added to set position when shown $telerik.$(wrapper).show(); // jQuery approach //wrapper.style.display = ""; // JS approach editor.repaint(); } }</script>Hello Dear Friends,
I'm sick and tired searching for an error with my rotator.
Before I put the code in here, I would like if someone could direct me where is the error could be.
I worked ok for years under Win XP IIS 5.
After I transited to Win 7 - it stopped working.
I have 2 rotators.
1) Static. it just rotates pictures to left/right withput interactin.
2) Dynamic. it is filling with Web controls (panels) with questions and answers (questionary pages)
The 1-st works, 2-nd doesn't...
IIS is set to .NET 4, Telerik.WebControl.UI.dll also 4-th
If I look into page code after the RadControl is dinamically created, then I can see all pages in code. Also, it's important, the RadRotator is also created without error.
But there is no Rotation and it is not visible at all, though, as I said before, the code is generated ok.
I tried IE and Chrome with the same result.
Please, help me where to go... I spent already several days with that transition from XP to W7. I needed to recreate 2 DBs and connect them to old code..
And one of the DBs was Oracle.. I was so much pain for me..
Now I'm just close to the end, and it's Rotator... maybe you already have met that kind of behavior - invisibility?
Hi Team,
I am getting a strange issue while using Radgrid. In my project two pages have used Rad Grid. In most of the machine it is working fine. But in few machine the data is not being displayed in the grid. But the data is showing outside the grid. There are search boxed in the header column of the grid. The search boxes are repeating multiple times inside a large div. The data is coming after the div. Please have a look on the attached file. Any idea on this?
Regards,
Arnab
Hello Team,
Recently I upgraded ,telerik control(2015, 2, 623, 40) to make compatible for IE 11 but after upgrading the telerik control ,getting unexpected behavior for control
I am using telerik RadListBox along with RadContextMenu ,also RadListBox having postback on selection of the record .But when I do right click to open the contextmenu then postback event getting fire and not able to select the context menu.
I will appreciate ,if I get the early response , because it urgent need for business
here is code sample
-----------------------------------------------------------------------------------------------------------------------
HTML
<telerik:RadListBox ID="rdListDocumentTypes" Skin="Outlook" Height="150px" Width="305px"
AllowReorder="true" AllowDelete="true" OnClientSelectedIndexChanged="DirtyTrackListBox"
OnClientContextMenu="showContextMenuOnDocumentType" SelectionMode="Single" AutoPostBack="true"
runat="server">
<ButtonSettings ShowDelete="false" ShowReorder="false" />
</telerik:RadListBox>
<telerik:RadContextMenu ID="contextMenuDocumentTypes" runat="server" OnClientItemClicking="OnClientDocumentTypeDelete"
Skin="Outlook" OnClientItemClicked="onItemClickedOnDocumentType" Style="top: 298px;
left: 12px">
<Items>
<telerik:RadMenuItem Text="Delete" Value="Delete" />
</Items>
</telerik:RadContextMenu>
------------------------------------------------------------------------
JavaScript
function OnClientDocumentTypeDelete(sender, eventArgs)
{
if (eventArgs.get_item().get_value() == "Delete")
{
if (!confirm('Are you sure you want to delete this record?'))
{
eventArgs.set_cancel(true);
return false;
}
ResetDirty(sender._element);
return true;
}
return false;
}
function showContextMenuOnDocumentType(sender, e)
{
var menu = $find("<%=contextMenuDocumentTypes.ClientID %>");
if (menu == null) return;
var rawEvent = e.get_domEvent().rawEvent;
if (e.get_item() != null)
{
menu.show(rawEvent);
e.get_item().select();
}
$telerik.cancelRawEvent(rawEvent);
}
function onItemClickedOnDocumentType(sender, e)
{
var listBox = $find("<%=rdListDocumentTypes.ClientID %>");
var index = listBox._selectedIndices[0];
var id = listBox._itemData[index].value;
document.getElementById("<%=hdfSelectedDocumentType.ClientID %>").value = id;
}

Hello
I have a TileList created from a datasource with a group field that groups tiles by day. Now I want to add a GroupTile Header with a ContentTemplate programmatically.
At the moment it is static in the .ascx file (see below). But I need something like this created in code behind and added to the TileListGroup.
I know I can add a group with .Groups.Add(group) but I just don't get how to create and add an RadContentTemplateTile as a header to it.
How can I get there...
<telerik:TileGroup Name="2015-09-18">
<telerik:RadContentTemplateTile runat="server" Shape="Wide" CssClass="noHover OEGroupTile">
<ContentTemplate>
<div class="OEGroupTileContent">
<div class="OETileTopContent">​Friday, 18.09.2015 (Today)</div>
<div class="OETileBottomLeftSmall">​some text</div>
</div>
</ContentTemplate>
</telerik:RadContentTemplateTile>
</telerik:TileGroup>