Telerik Forums
UI for WPF Forum
1 answer
83 views

Dear All,

together with the address the Longitude & Latitude should be saved.

I tried to use the AutoResetEvent but it is not working.

After WaitOne() is called, nothing happens. The EventHanlder is never called.

Please let me know if you have an idea.

 

AutoResetEvent waitHandle = new AutoResetEvent(false); 

if (fullAddress != String.Empty && Item.Longitude == 0 && Item.Latitude == 0)
{
    Telerik.Windows.Controls.Map.BingSearchProvider provider = new Telerik.Windows.Controls.Map.BingSearchProvider(bingApplicationId);
    Telerik.Windows.Controls.Map.SearchRequest newSearchRequest = new Telerik.Windows.Controls.Map.SearchRequest();
    newSearchRequest.Query = fullAddress;


    EventHandler<Telerik.Windows.Controls.Map.SearchCompletedEventArgs> eventHandler = delegate(object sender, Telerik.Windows.Controls.Map.SearchCompletedEventArgs e) 
        {
            foreach (Telerik.Windows.Controls.Map.SearchResultSet result in e.Response.ResultSets)
            {
                if (result.SearchRegion != null)
                {
                    Item.Longitude = Convert.ToDecimal(result.SearchRegion.GeocodeLocation.BestView.Center.Longitude);
                    Item.Latitude = Convert.ToDecimal(result.SearchRegion.GeocodeLocation.BestView.Center.Latitude);
                    Debug.WriteLine(String.Format("{0} Latitude:{1} Longitude:{2}", Item.Name1, Item.Latitude, Item.Longitude));
                }
            }

            waitHandle.Set();
        };

    provider.SearchCompleted += eventHandler;

    provider.SearchAsync(newSearchRequest);
    waitHandle.WaitOne();

    Debug.WriteLine(fullAddress);
}

Pavel R. Pavlov
Telerik team
 answered on 17 Apr 2015
4 answers
274 views

Hi!

I want to display a scale bar (see attached image) in the chart. How can I achieve this?
I don't see an annotation type where I can specify the position in absolute values, but the size in units of the MajorStep.

I need it in both Cartesian and Polar charts.

 

A second question: How can I display a label for a PolarAxisGridLineAnnotation?

Alex

Alexander
Top achievements
Rank 1
 answered on 17 Apr 2015
1 answer
157 views

Dear Team,

We are facing the below issue while trying to bind a Combobox inside a Gridview.

Binding of data is not happening to Dropdown inside the grid view and we sae the below error messages in Visual studio output.

I have attached the Error message and the code snippets in the document.

Could you please let us know your feedback on the same and this is a bit critical for us to resolve. Thanks

 

 

Dimitrina
Telerik team
 answered on 17 Apr 2015
4 answers
263 views
Hi,

I am trying to build a window, where user can select different material types by selecting from a menu type interface. The top level is material class (Stainless Steel, Aluminum etc.) where one lower level is going to be the type (like, 304, 316... for Stainless Steel and 6061, 7075... for Aluminum). I would like to use breadcrumb control for this interface.

My question is, when I first show the top level in the control, (Stainless Steel and Aluminum), when the user picks either one, can I make the next selection window shown without clicking the little arrow on the right side? I really would like this to be a click by click event, if possible.

Can anyone help me on implementing a similar procedure?

Thanks,

Ahmet Unal
Milena
Telerik team
 answered on 17 Apr 2015
2 answers
346 views

Is there a built-in way to convert from the "{ColumnLetter}{RowNumber}" notation to the CellIndex format?

Example:

"C5" becomes ColumnIndex=2, RowIndex=4

"AA2" becomes ColumnIndex=26, RowIndex=1

 

It's not the end of the world to write my own conversion, but I was just curious if this is already supported.

 

Thanks!

 

 

 

Stephen
Top achievements
Rank 1
 answered on 16 Apr 2015
5 answers
221 views

I would like to use the 'accent'/'selected' color from my office 2013 implicit theme for a generic control (in my case I am using a Hyperlink inside a TextBlock - I have two of those) in code/xaml to show the selected/unselected color depending on whether the user clicks on one or the other link, i.e. if the user clicks on option 1, I'd like to apply the corresponding color/brush that'd show that it is selected, when the user clicks on option 2, then, I'd like to return option 1 to the default color and have Option 2 switch to the 'selected' one. 

 I have approached it somehow as follows (I changed the hyperlink to a RadButton hopping that it'd help):

                        <telerik:RadButton  x:Name="ShowDashboardHyperlink" Click="ShowDashboardHyperlink_OnClick" Content="DASHBOARD">

                                <telerik:RadButton.Style>
                                    <MultiBinding Converter="{StaticResource StyleConverter}">
                                        <MultiBinding.Bindings>
                                            <Binding RelativeSource="{RelativeSource Self}" />
                                            <Binding Path="DashboardStyle" />
                                        </MultiBinding.Bindings>
                                    </MultiBinding>
                                </telerik:RadButton.Style>
                            </telerik:RadButton>

 

With a style converter like:

 

public class StyleConverter : IMultiValueConverter

{

blah...

}

And on my view model:

 

        public string DashboardStyle
        {
            get { return _dashboardStyle; }
            set
            {
                _dashboardStyle = value;
                RaisePropertyChanged(() => DashboardStyle);
            }
        }

Somewhere in my constructor I initialize my colors:

            DashboardStyle = "AccentMainBrush";
            CalendarStyle = "BasicBrush";
​

It compiles and all but I think the part that I don't get right is the binding.

 

I'll appreciate any help.

Vanya Pavlova
Telerik team
 answered on 16 Apr 2015
3 answers
235 views
My ComboBox is editable for filtering, i need to type Chinese characters and i found some popular Chinese IME's pop-up windows apprear behind RadComboBox's.
It makes me cannot see matched Chinese character options. So is there any IME functionality with Telerik controls.
Nasko
Telerik team
 answered on 16 Apr 2015
2 answers
147 views

So I am trying to figure out how to change the category of an occurrence. Lets say a custom has an appointment every wednesday at 1pm.  When they make the appointment, I will mark that occurrence as Blue. If they miss the appointment, I mark the occurrence as Red.

I was looking at sourcecode of ScheduleView and it seems an occurrence is nothing more then the original appointment with the occurrence start and duration added to the object, which makes up the Occurrence object.  So if I change the Category of one,it changes them on all because it is really the same Appointment object with just different dates.  So is there anyway to treat an Occurrence like a unique object that you can change Category or properties of, but it still stays part of the RecurrencePattern?

 Or is it possible on an appointment, when you call GetOccurrences, the return custom appointments that have more properties?

On an Occurrence, I don't see the different between the appointment and the Master. 

 

Vladi
Telerik team
 answered on 16 Apr 2015
1 answer
100 views

My app was developed back in 2013 and I want to implement this behavior now. This behavior was introduced in 2014

http://docs.telerik.com/devtools/wpf/controls/radautocompletebox/features/filteringbehavior.html

I don't want to update Telerik becuase it will mess some other stuff.

 Can I implement this ?

 

Nasko
Telerik team
 answered on 16 Apr 2015
2 answers
118 views

Hello - I run a simple system that looks at Sales orders, then with their associated country, changes the colour of that country on a map - pretty simple stuff.

 

Having that list of countries (shapes), is there a way to zoom so that they act as the zoom limits ie if only UK orders, only UK would be shown via zoom, or if UK and Australia, the map would center somewhere between the two, and zoom accordingly

 

Many thanks

Luke
Top achievements
Rank 1
 answered on 16 Apr 2015
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?