Telerik Forums
UI for WPF Forum
1 answer
103 views

How i can change style of collapse button in containerShape and it s possible to set backround color just for header in container?

 

 Thank you

Kiril Vandov
Telerik team
 answered on 17 Apr 2015
2 answers
133 views

Hi,

We have had a request from a user who asked if we can show the Y-Axis on both sides of a chart. Is there an easy way to do this using your charts for WPF? The only approach to achieving this that I can see is to have two of each series but assign them to different axes. I would prefer not to do it this way if we can avoid it.

Thanks,

Steven

Steven
Top achievements
Rank 1
 answered on 17 Apr 2015
1 answer
60 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
241 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
129 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
190 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
209 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
188 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
189 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
119 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
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?