Hello
We are using shape to draw a "geo-fence" on a radmap. we are currently passing a coordinate, along with a property of radius to the map. The value of the radius property is a double representing meters. so a 1 nautical mile = 1852 meters, so the geofence has a radius of 926 meters
We have looked through all the samples and all the questions we can find in the forum, but we are not understanding what formula / calculation to use to draw this correctly on the map, and of course it needs to scale with zooming. We have been attempting this in the shapeCreated(e) client event as below: This of course draws a very large shape on the map.
function shapeCreated(e) { if (e.shape.dataItem.properties.Radius) { var currentZoom = e.sender.zoom(); var fenceRadius = e.shape.dataItem.properties.Radius; e.shape._geometry.radius = fenceRadius; }}
Any direction on how to translate a shape based on radius meters (or other metric.. miles, feet, whatever) would be appreciated.
I’m trying to update a RadPivotGrid object
using RadAjaxManager and some loading panel, so the user sees something
while data is loading. I have already accomplished this but I have other logic
in the page, some jQuery modal dialog() to save pivogrid states. Since
the RadAjaxManager object is present events do not fire. Not even an
onclick with an alert(). I’m attaching the code with some comments to help
comprehend the scenario.
Help my friends!
Thanks
Hello Team,
I am facing the problem after Telerik and IE 11 upgrade , earlier working functionality got break.
Toggle is not working in Preview Mode
I am using Telerik Rad Control 2015, 2, 623, 40 with IE 11
Here is the example ,which I am using
<telerik:RadEditor ContentAreaCssFile="~/Styles/EditorContentAreaCss.css" ID="txtNotes" OnClientModeChange="OnClientModeChange"
runat="server" EditModes="Preview" EnableResize="false" Height="490px" OnClientLoad="EditorMaxLengthvalidationNoCount"
NewLineBr="false" NewLineMode="P" Style="border: 1px solid Navy;
overflow: hidden; background-color: White" ToolsFile="~/App_Data/RadControls/Editor/ToolsFile.xml"
Width="1065px">
<CssFiles>
<telerik:EditorCssFile Value="~/Styles/Editor.css" />
</CssFiles>
</telerik:RadEditor>
function OnClientModeChange(editor, args) {
var mode = editor.get_mode();
switch (mode) {
case 1:
//Design mode
break;
case 2:
//HTML mode
break;
case 4:
setTimeout(function () {
editor.set_editable(false);
editor.enableEditing(false);
var tool = editor.getToolByName("ToggleScreenMode");
tool.setState(0);
}, 0);
//Preview mode
break;
}
}
I want to zoom out the image since it is so large you can only see a small portion of it. I found this code to use.
<script type="text/javascript">
function OnClientLoad(sender) {
//sender.zoomImage(50);
sender.zoomBestFit();
}
</script>
Neither 'zooms' work. They both skew the image to the wrong proportions. How do you do exactly what the zoom out toolbar button does? That works fine.

Hi all,
I have use:
http://demos.telerik.com/aspnet-ajax/imageeditor/examples/imageupload/defaultcs.aspx?product=asyncupload
But when I upload new image file, it's be not show on RadImageEditor. When I click change Skin, it's be show
I Have attach file 2 image.
Thanks
<telerik:RadGrid runat="server" ID="view" ShowStatusBar="true" AutoGenerateColumns="false" Visible="false"> <ClientSettings> <Selecting AllowRowSelect="True"/> </ClientSettings> <GroupingSettings CaseSensitive="false" /> <MasterTableView ShowHeadersWhenNoRecords="true" DataKeyNames="Id" ClientDataKeyNames="Id"> <Columns> <telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="User Name" AutoPostBackOnFilter="true" Visible="true"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Phone" UniqueName="Phone" HeaderText="User Phone" AutoPostBackOnFilter="true" Visible="true"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Email" UniqueName="Email" HeaderText="User Email" AutoPostBackOnFilter="true" Visible="true"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid><br /><telerik:RadGrid runat="server" ID="view2" ShowStatusBar="true" Visible="true"> <ClientSettings> <Selecting AllowRowSelect="True"/> </ClientSettings> <GroupingSettings CaseSensitive="false" /> <MasterTableView ShowHeader="false" > </MasterTableView> </telerik:RadGrid>protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { BindGridView(); } } private DataTable PivotTable(DataTable origTable) { DataTable newTable = new DataTable(); DataRow dr = null; //Add Columns to new Table for (int i = 0; i <= origTable.Rows.Count; i++) { newTable.Columns.Add(new DataColumn(origTable.Columns[i].ColumnName, typeof(String))); } //Execute the Pivot Method for (int cols = 0; cols < origTable.Columns.Count; cols++) { dr = newTable.NewRow(); for (int rows = 0; rows < origTable.Rows.Count; rows++) { if (rows < origTable.Columns.Count) { dr[0] = origTable.Columns[cols].ColumnName; // Add the Column Name in the first Column dr[rows + 1] = origTable.Rows[rows][cols]; } } newTable.Rows.Add(dr); //add the DataRow to the new Table rows collection } return newTable; } private void BindGridView() { String str = Request.RawUrl; if (!IsPostBack) { if (str.Contains("?a")) { Int32 url_id = Convert.ToInt32(Request.Params["a"]); user_id = url_id; DataTable dt = new DataTable(); SqlConnection cn = new SqlConnection(""); SqlCommand cmd = new SqlCommand("user_data", cn); cmd.Parameters.Add(new SqlParameter("@id", SqlDbType.Int)); cmd.Parameters["@id"].Value = url_id; cmd.CommandType = CommandType.StoredProcedure; SqlDataAdapter sqlDa = new SqlDataAdapter(cmd); sqlDa.Fill(dt); try { cn.Open(); if (dt.Rows.Count > 0) { //Bind the First GridView with the original data from the DataTable view.DataSource = dt; view.DataBind(); //Pivot the Original data from the DataTable by calling the //method PivotTable and pass the dt as the parameter DataTable pivotedTable = PivotTable(dt); view2.DataSource = pivotedTable; view2.DataBind(); } } catch (SqlException ex) { //... } finally { if (cn.State != ConnectionState.Closed) { cn.Close(); cmd.Parameters.Clear(); } } } } }
Protected Sub rdGridUDFRule_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rdGridUDFRule.ItemDataBound If TypeOf e.Item Is Telerik.Web.UI.GridEditFormItem And e.Item.IsInEditMode Then If e.Item.OwnerTableView.IsItemInserted Then 'item is about to be inserted For Each editItem As Telerik.Web.UI.GridEditFormItem In rdGridUDFRule.MasterTableView.GetItems(Telerik.Web.UI.GridItemType.EditFormItem) If (editItem.IsInEditMode) Then Dim plcHolder As HtmlTableCell = DirectCast(editITem.FindControl("placeHolderRadGridFormTemplate"), HtmlTableCell) Dim objDynamicTxt As New TextBox objDynamicTxt.ID = "DynamicControl" objDynamicTxt.MaxLength = intLength plcHolder.Controls.Add(objDynamicTxt) End If Next Else 'item is about to be edited Dim editedItem As Telerik.Web.UI.GridEditableItem = TryCast(e.Item, Telerik.Web.UI.GridEditableItem) End If End If End Sub
Retrieve Dynamic control values from server side sample code
Protected Sub RadGrid1_UpdateCommand(ByVal sender As Object, ByVal e As GridCommandEventArgs) Handles rdGridUDFRule.UpdateCommand If (e.CommandName = RadGrid.UpdateCommandName) Then For Each editItem As Telerik.Web.UI.GridEditFormItem In rdGridUDFRule.MasterTableView.GetItems(Telerik.Web.UI.GridItemType.EditFormItem) If (editItem.IsInEditMode) Then Dim plcHolder As HtmlTableCell = DirectCast(editITem.FindControl("placeHolderRadGridFormTemplate"), HtmlTableCell) Dim objDynamicTxt As TextBox = DirectCast(plcHolder.FindControl("DynamicControl") '******************************* THE objDynamicTxt RETURN NOTHING ******************************* End If Next End If End Sub
I am creating a Dynamically built RadGrid. I have to do so because I am generating columns based on how many dates my sql query returns. I am placing the specific dates as header column groups. Under each date I am trying to create a dropdowncolumn that has a different datasource than the radGrid.
The problem is creating it dynamically. I thought about using an item template but how could I place a dropdown in the item template for each drop down that i need to create, which is two per date.
How do i bind the datasource for the DropDownColumn from code behind when the entire grid is dynamically built.
for (int t = 0; t < datecount; t++)
{
int utacount = Convert.ToInt32(getDrill.Rows[t][3].ToString());
for (int p = 0; p < datecount; p++)
{
GridDropDownColumn ddc = new GridDropDownColumn();
int b = p + 1;
ddc.UniqueName = "ddc" + p + s;
if (p - 1 < utacount)
{
string name = "uta" + p + s;
ddc.ColumnGroupName = name;
//ddc.DataField = "strStatus";
//ddc.ListTextField = "strStatus";
////GridEditableItem editedItem = ddc as GridEditableItem;
////GridEditManager editman = editedItem.EditManager;
////GridDropDownColumnEditor editor = editman.GetColumnEditor(name) as GridDropDownColumnEditor;
////editor.DataSource = getDrill;
////editor.DataBind();
}
grid.MasterTableView.Columns.Add(ddc);
}
s++;
}

<telerik:RadGrid ID="RadGrid1" AllowMultiRowSelection="True" runat="server" AutoGenerateColumns="False" GridLines="None" >
<
MasterTableView >
<Columns>
<telerik:GridBoundColumn DataField="INVOICE" UniqueName="INVOICE"
HeaderText="Invoice">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DATE" UniqueName="DATE" HeaderText="Date">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="BOL" UniqueName="BOL" HeaderText="BOL">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="PO" UniqueName="PO" HeaderText="PO">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="POHIDE" UniqueName="POHIDE" Visible="false"
HeaderText="PO Hide" >
</telerik:GridBoundColumn>
</Columns>
</
MasterTableView>
<ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="True" >
<Selecting AllowRowSelect="True" />
</ClientSettings>
</telerik:RadGrid>
I have tried using the RadGrid1_ColumnCreated event but no luck. How do I change the column width at binding time?
Thanks
John
Hi,
Is there a way to disable the RadGrid filter TextBox while keeping the filter button active and visible? I'm using the button as a combo box and no longer need the TextBox. Thanks for your help!