Telerik Forums
UI for WPF Forum
2 answers
210 views
Hi,

I was looking the chart appearance demo and I want to implement something like that, I am using a RadChart with PieSeriesDefinition, a RadRadialGauge and a RadChart with AreaSeriesDefinition, I can't find how to apply the palette, I also have a RadPolarChart and a RadCartesianChart and I have no problem assigning the palette.

I don't know if for the first 3 charts is not possible assign a palette or it works in a different way.

Thanks,

Alberto
Alberto
Top achievements
Rank 1
 answered on 02 Oct 2013
1 answer
179 views
Hi

I am using a RadWindow as the apps Main window.  What i want to do is create a second Window using RadWindow.Show() which means IsModal = false which is what I want.  However, when I click into the main window the second window stays on top.  How do I get either window to be on top when clicked-in.  The only way I can get the mainwindow on top is by minimizing the second window. I need these two windows to be loosely coupled.

Thanks
Rich
Kalin
Telerik team
 answered on 02 Oct 2013
2 answers
179 views
I have implemented this on a grid that I have, and I have noticed that even if I click and drag the scroll bar to the very bottom, it doesn't show the bottom-most record. I have also noticed this same behavior in your WPF Example for this feature. Is this a known issue?
Vera
Telerik team
 answered on 02 Oct 2013
5 answers
888 views
Dear telerik,

I have to fix a problem in our software and we are using a gridview, which contains articles as items.
Each Item has a deletebutton (only visible for the the selected one), which Command is bound on a DelegateCommand (in the ViewModel). We are using the MVVM-pattern.
This button is only for removing the selected item of the gridview and works fine but when i have more than 16 articles in the grid there is always one or two articles, which I can't delete with the button. The other ones work fine.

The routed method doesn't get called in this times and I don't know why. A Button Click Event always works even when the bound command doesn't work.

I don't know where I have to search this mistake and would like to use the command and not the buttonclick.

Did you ever hear of a problem like this? Could you please help me?

Thanks a lot.


Cheers

Frank  
Maya
Telerik team
 answered on 02 Oct 2013
3 answers
172 views
Dear Telerik

I install RadControls for Wpf Q2.2013. After,I do step by step as link http://www.telerik.com/help/wpf/coded-ui-support.html
When I capture text box have value "3500" in "WPF Control Sample -> DataForm->First  Look" window as "err_25-sep_1.jpg" in attach file.When code generate,this TextBox will generate is UITestControl as "err_25-sep_2.jpg" in attach file. This is wrong,because if my machine don't have this extension,this Textbox will generate is WpfEdit as "err_25-sep_3.jpg"

Please help me solve this issuse
Sorry for my English not good
 
Ivan Ivanov
Telerik team
 answered on 02 Oct 2013
1 answer
144 views

Hi ,

I am using Rad Controls for WPF Q2 of 2013, Also I am new to Telerik.

I would like to create 2 rows for a single record in the telerik rad grid view as attached. Is it possible to do the template in the XAML code itself ?


With Regards.
Siva

Maya
Telerik team
 answered on 02 Oct 2013
1 answer
66 views

Hi,

I am using Rad Controls for WPF Q2 of 2013, Also I am new to Telerik.

I would like to create 2 rows for a single record in the telerik rad grid view as attached. Is it possible to do the template in the XAML code itself ?

With Regards.
Siva

Maya
Telerik team
 answered on 02 Oct 2013
1 answer
78 views

Hi,

I am using Rad Controls for WPF Q2 of 2013, Also I am new to Telerik.

I would like to create 2 rows for a single record in the telerik rad grid view as attached. Is it possible to do the template in the XAML code itself ?

With Regards.
Siva

Maya
Telerik team
 answered on 02 Oct 2013
2 answers
208 views
Hello,

I am trying to implement a BusyIndicator when loading data into a RadCartesianChart.

I have this code:

<telerik:RadBusyIndicator Name="busyInd" HorizontalAlignment="Left"  Grid.Row="1" Margin="10,10,0,0" VerticalAlignment="Top" Height="255" Width="372" IsIndeterminate="True">
 
        <telerik:RadCartesianChart x:Name="CartesianChartDemo" Grid.Column="5" Margin="10" Grid.Row="2" Grid.ColumnSpan="3">
 
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior PanMode="Both" ZoomMode="Both"/>
            </telerik:RadCartesianChart.Behaviors>
 
        </telerik:RadCartesianChart>
 
</telerik:RadBusyIndicator>

I load data in the code behind file:

CartesianChartDemo.VerticalAxis = new CategoricalAxis();
            CartesianChartDemo.HorizontalAxis = new LinearAxis();
 
            CartesianChartDemo.Grid = new CartesianChartGrid() { MajorLinesVisibility = GridLineVisibility.XY };
 
            string strQuery = "MyQuery";
 
//Function to get datatable
            DataTable dtAlloys = DataRetriever.GetDataTable(strQuery);
            
            BarSeries barSer = new BarSeries();
            barSer.ShowLabels = true;
            barSer.CombineMode = ChartSeriesCombineMode.Cluster;
 
            BarSeries barSer2 = new BarSeries();
            barSer2.ShowLabels = true;
            barSer2.CombineMode = ChartSeriesCombineMode.Cluster;
 
            foreach (DataRow drAlloy in dtAlloys.Rows)
            {
                barSer.DataPoints.Add(new CategoricalDataPoint() { Category = drAlloy["MATERIAL_CODE"], Label = string.Format("{0:N}", drAlloy["WT"]), Value = double.Parse(drAlloy["WT"].ToString()) });
                barSer2.DataPoints.Add(new CategoricalDataPoint() { Category = drAlloy["MATERIAL_CODE"], Label = string.Format("{0:N}", drAlloy["TARG"]), Value = double.Parse(drAlloy["TARG"].ToString()) });
            }
 
            CartesianChartDemo.Series.Clear();
            CartesianChartDemo.Series.Add(barSer);
            CartesianChartDemo.Series.Add(barSer2);

I was thinking to add:

busyInd.IsBusy = true;
 
//Code to load data
 
 
busyInd.IsBusy = false;

But I'm not sure if this is the way the BusyIndicator works.

Does anyone has any pointers to accomplish that?

Regards,

Alberto


Yana
Telerik team
 answered on 02 Oct 2013
1 answer
214 views
Hi,
I'm developing with VS 2012 and Telerik control version 2013.2.724.40.
I tried to bind string values dynamically to the GridView in code.
The program first reads from a array, where it can decide the type of the column(e.g. string, double). If the data can be presented as a double value, then I create a customized GridView column with RadMaskedTextInput. I'd like to format the number by setting the Text property. The data binding works fine, however, it seems the numbers (e.g. 1000.1) are not shown as expected (e.g. 1,000.10). 

I could attach all source code if needed. Thanks in advance.

Regards,
Gong

public MainWindow()
{
    InitializeComponent();
 
    IList<DataHeader> headerList = DataService.Instance.HeaderList;
 
    for (int i = 0; i < headerList.Count; i++)
    {
        DataHeader curentHeader = headerList[i];
 
        GridViewBoundColumnBase column;
        if (curentHeader.Name == "AMOUNT")
        {
            column = new CGridViewNumColumn();
        }
        else
        {
            column = new GridViewDataColumn();
        }
 
        column.DataMemberBinding = new Binding("DataItemList[" + i + "]")
        {
            UpdateSourceTrigger = UpdateSourceTrigger.LostFocus
        };
        column.Header = curentHeader.Caption;
        column.UniqueName = curentHeader.Name;
        GridControl.Columns.Add(column);
    }
    DataContext = DataService.Instance.Data;
}


internal class CGridViewNumColumn : GridViewBoundColumnBase
    {
        public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
        {
            BindingTarget = RadMaskedTextInput.ValueProperty;
            var input = new RadMaskedTextInput
            {
                HorizontalContentAlignment = HorizontalAlignment.Right,
                Culture = CultureInfo.GetCultureInfo("en-GB"),
                FormatString = "n2",
                Mask = "",
                MinWidth = 100,
                SelectionOnFocus = SelectionOnFocus.SelectAll
            };
            input.SetBinding(BindingTarget, CreateValueBinding());
            input.LostFocus += InputOnLostFocus;
            return input;
        }
 
        private void InputOnLostFocus(object sender, RoutedEventArgs routedEventArgs)
        {
            var input = sender as RadMaskedTextInput;
            if (input == null) throw new ArgumentNullException("sender");
            if (string.IsNullOrWhiteSpace(input.Value))
            {
                input.Value = string.Empty;
                return;
            }
            double value;
            //Format the number for frontend.
            const NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands;
            if (!double.TryParse(input.Value, style, input.Culture, out value))
            {
                input.Value = "0";
            }
            input.Text = value.ToString(input.FormatString, input.Culture);
 
            //Format the number for back-end. Extra precisions will be removed.
            if (!double.TryParse(input.Text, style, input.Culture, out value))
            {
                input.Value = "0";
            }
            input.Value = value.ToString(input.Culture);
        }
 
        private Binding CreateValueBinding()
        {
            var valueBinding = new Binding
            {
                Mode = BindingMode.TwoWay,
                NotifyOnValidationError = true,
                ValidatesOnExceptions = true,
                Path = new PropertyPath(DataMemberBinding.Path.Path)
            };
 
            return valueBinding;
        }
    }

Dimitrina
Telerik team
 answered on 02 Oct 2013
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
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?