Hi ,
How can i make transparent borders form like the attach file ?
Hi Every one.
I want to add images into Map Legend.
I tried a lot but i couldn't.
how can i do this?
thanks...
Hi everyone.
I need to draw a circle with the desired radius on the map, which is filled inside the circle with a transparent color and visible inside it. I did this according to the telerik tips, but the circle drawn on the map does not change its radius.
Can anyone help in this matter?
This is also my code:
**************draw circle Class **************
public class DrawCricleOnMap : MapPoint
{
private int radiusInMeters;
public DrawCricleOnMap(PointG location) : base(location)
{ }
public DrawCricleOnMap(PointG location, Size size)
: base(location, size)
{ }
public int RadiusInMeters
{
get
{
return this.radiusInMeters;
}
set
{
this.radiusInMeters = value;
}
}
public override void ViewportChanged(IMapViewport viewport, ViewportChangeAction action)
{
double onePixelInMeters = MapTileSystemHelper.GroundResolution(this.Location.Latitude, viewport.ZoomLevel);
int scale = -1;
scale = (int)(this.RadiusInMeters * 2 / onePixelInMeters);
Size newSize = Size.Empty;
if (scale > 1)
newSize = new Size(scale, scale);
this.Size = newSize;
base.ViewportChanged(viewport, action);
}
}
************** use the class in my code by a method ***************
public void DrawCircleOnMap()
{
var dbContex = new My_DBEntities();
var data = dbContex.CarTables.Select(x => new { x.MaxRange, x.CarLat, x.CarLong }).ToList();
foreach (var item in data)
{
DrawCricleOnMap element = new DrawCricleOnMap(new PointG((double)item.CarLat, (double)item.CarLong));
//element.RadiusInMeters = int.Parse(((double)item.MaxRange).ToString());
element.RadiusInMeters = 100;
element.BackColor = Color.FromArgb(125, Color.LightBlue);
element.BorderColor = Color.Red;
radMap1.Layers["CircleLayer"].Add(element);
//DrawCricleOnMap circle = new DrawCricleOnMap(new PointG((double)item.CarLat, (double)item.CarLong))
//{
// RadiusInMeters=int.Parse("200")
//};
//radMap1.Layers["CircleLayer"].Add(element);
}
}
Hello Everyone,
I am working on a custom user control which has a GridView on it. I have a checkbox column and have the EnableHeaderCheckBox property set to TRUE. The grid works great; I can click on the Header Checkbox and toggle all checkboxes, etc. However, I am trying to create a method to allow the consumers of this user control to programmatically Select All or Unselect All (basically, mimicking the functionality of the Header Checkbox).
I have tried these but they did not work:
1)
grid.SelectAll();
grid.ClearSelection();
2)
foreach
(var row
in
grid.Rows)
row.IsSelected =
true
;
Only this one works, but it takes a little bit of time to select/unselect all rows:
foreach
(var row
in
grid.Rows)
row.Cells[
"Select"
].Value =
true
;
//or false to unselect
When I click on the Header Checkbox, rows are selected/unselected immediately, which is what I am looking for. I also need to make sure that the grid_CellValueChanged event is fired.
Any help is greatly appreciated.
Thanks!
I have a raddock and i add a usercontrol to the raddock DocumentWindow using :
HostWindow host2 = this.rdkMain.DockControl(estPanel2, winProject, Telerik.WinControls.UI.Docking.DockPosition.Fill,DockType.Document);
The window shows up correctly in the RadDock, however the underlying type is HostWindow (which behaves like a ToolWindow) and not a DocumentWindow. I need a DocumentWindow so that when I Float this window it appears like my other DocumentWindows. See attached images.
TabsDocked image shows the tabs appear correctly when docked, HostWindow is Estimate2, the DocumentWindow is documentWindow1
TabsFloating you can see that the tabstrip displays differently between floating as a HostWindow and a DocumentWindow because the HostWindow is "interpreted" as a ToolWindow. I know there are other differences between ToolWindows and DocumentWindows, so I want to stay with the full DocumentWindow implementation and appearance if at all possible...
How can i add a usercontrol to the Dock as a DocumentWindow?
Many thanks in advance