Hi,
I have the following function inserted in my RichText Commands.js file:
RadEditorCommandList["InsertAccordion"] = function (commandName, editor, args) {
var selectedHtml = editor.getSelectionHtml();
var newHtml = "<div class=\"accordion-rte\">" + selectedHtml + "</div>";
editor.pasteHtml(newHtml);
};
It should wrap the selected content in a <div> with the css class "accordion-rte".
Simply enough I thought... But when I have a text like:
<h2>Heading 2</h2>
<p>Some text</p>
<p>Heading 2.1</p>
<p>put some text here for paragraph 2.1</p>
<p>Heading 2.2</p>
<p>put some text here for paragraph 2.2</p>
<p>Some other text</p>
<p> </p>
and I select in design mode the text from "Heading 2.1" to "put some text here for paragraph 2.2" and then exucute my script the result is:
<h2>Heading 2</h2>
<p>Some text</p>
<p>Heading 2.1</p>
<p>put some text here for paragraph 2.1</p>
<p>Heading 2.2</p>
<p>put some text here for paragraph 2.2</p>
<p>
<div class="accordion-rte"> </div>
</p>
<p>Some other text</p>
<p> </p>
while debugging I see the newHtml variable is containing the right value. It got messed up somewhere in the pasteHtml function.
Does anyone has a clue what's going wrong? and how I can get it to work?
Much appreciated,
Peter

Hi
I'm trying to bind a RadMap to some JSON returned from an ASPX page.
<script> function TestGetMap() { var shapeData = ""; $.ajax({ type: "GET", url: "/Data/GetJsonTrip.aspx", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { shapeData = JSON.stringify(msg); var ds = new kendo.data.DataSource(shapeData); var kendoMap = $telerik.$("#<%=tripMap.ClientID %>").data("kendoMap"); kendoMap.layers[1].dataSource = ds; } }); }</script>I've tried setting the datasource to msg instead of the string version, tried different layers, etc.
My map looks like this
<telerik:RadMap runat="server" ID="tripMap"> <LayersCollection> <telerik:MapLayer></telerik:MapLayer> <telerik:MapLayer Type="Shape" Opacity="0.7"> <StyleSettings> <StrokeSettings Color="#ffffff" Width="10" /> </StyleSettings> </telerik:MapLayer> </LayersCollection> <CenterSettings Latitude="-32.962926" Longitude="151.699727"/></telerik:RadMap>I'm setting the first map layer in code to bing
MapLayer mapLayer = tripMap.LayersCollection[0]; mapLayer.Type = Telerik.Web.UI.Map.LayerType.Bing;mapLayer.ImagerySet = "AerialWithLabels";I confirmed that I'm getting back valid geojson from the aspx page.
I'm not getting any javascript errors in the console.
What I don't understand is: How in a click event in javascript can I set the dataource for a shapes layer of a radmap?
Thanks
Matt

Hi, I'm testing the diagram component for my app, I'm porting a desktop app that uses Dataweb's diagramming library.
How do I retrieve an existing connection object since it does not have an element ID?
This is what I need:
var connection = diagram.getConnection(params);
Thanks!
David
| <telerik:RadToolBar ID="Toolbar" runat="server" OnButtonClick="ToolBar_ButtonClick"> |
| <Items> |
| <telerik:RadToolBarDropDown Text="Z" ToolTip="Z"> |
| <Buttons> |
| <telerik:RadToolBarButton Value="A" Text="A" /> |
| <telerik:RadToolBarButton Value="B" Text="B" /> |
| <telerik:RadToolBarButton Value="C" Text="C" /> |
| </Buttons> |
| </telerik:RadToolBarDropDown> |
| <telerik:RadToolBarDropDown Text="Y" ToolTip="Y"> |
| <Buttons> |
| ... |
| </Buttons> |
| </telerik:RadToolBarDropDown> |
| <telerik:RadToolBarDropDown Text="X" ToolTip="X"> |
| <Buttons> |
| ... |
| </Buttons> |
| </telerik:RadToolBarDropDown> </telerik:RadToolBar> |


Dears,
using the localization of the gantt diagramm the date format of the header cannot be changed, always displayed in english. Can you show me the way to czhange the datetime format?
Hi! I'm trying to test your ListView with responsive behavior. All works very fine!
I have seen that the number of columns changes automatically with the width of the browser window.
Now I have only a question ...
Can I limit the number of columns at runtime or by a config value? Db Value? Or Runtime user Value?
This is very important to use this very good control within ecommerce application...
For example I have the need to limit the number of column at 3 ... indépendamment their width
Or there is another control to do a list with image and text from db ... that can be configured in a multicolumn panel?
Merci beaucoup!

Hi,
The user enters some data in Grid Numeric Column and checks some other open tab in browser and when user returns to that page, the Grid Numeric column value gets auto selected & it leads to data loss of autoselected value.. Please help me in preventing the auto selection. Thanks in advance.
Code:
<telerik:GridNumericColumn DataField="Price" UniqueName="Price" MaxLength="15" DataFormatString="{0:#,##0.#0}"
DataType="System.Double" HeaderText="Price*" ItemStyle-Width="60px" HeaderStyle-Font-Bold="true">
</telerik:GridNumericColumn>
