Telerik Forums
UI for WPF Forum
1 answer
145 views
I am trying to upgrade UI for wpf from 2012 version to the latest 2014 Q1. I got the build error complaining about MetroColors missing. I check the class is in old version's Telerik.Windows.Controls namespace but NOT in the new version's same assembly. Where should I get the assembly containing MetroColors class and related ones?
Yana
Telerik team
 answered on 08 Apr 2014
1 answer
157 views
 I am using the following CellTemplate because I need the IsEditable property for the combo box:


<telerik:GridViewDataColumn Width="100" >
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <ComboBox DisplayMemberPath="Name"  SelectedValuePath="ID" SelectedValue="{Binding CountryID, Mode=TwoWay}" ItemsSource="{Binding Countries, Source={StaticResource CountriesList}}" />
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewDataColumn>

My issue is that now my OnRowEditEndedCommandCommandExecuted event does not run, and I do not know how to get it to run when the normal combo box is edited to update the correct row. Any ideas? Thank you.
None
Top achievements
Rank 1
 answered on 07 Apr 2014
1 answer
104 views
Hey guys,

I noticed in the versions notes for internal build 2014_1_0324 there is a line in the 'What's new' section that says 'Introduced Auto themeable color value'.

Can you go into a little more detail about what this is, and how to use it?

Thanks,
Niko 
Alex
Telerik team
 answered on 07 Apr 2014
1 answer
205 views
I'm using ProLinq (http://prolinq.codeplex.com/) to expose IQueryable directly to clients of my service.

I'm binding this Queryable to my RadfGridView but it's not working how i expected: The IQueryable that the service return is only for one use, when grid need to refresh (by a filter change for example) the grid must be obtain other IQueryable from the service.

I'm trying to make this to work in several ways but i don't success for now :(
- I'm overload Filtering and Sorting events to change grid filter every time
- I'm try to convert the FilterDescriptor to System.Linq.Expression to get new IQueryable from service and apply the expression on it, but i don't know
- I'm trying use VirtualQueryableCollectionView but when i filter the grid the service is not called.

Any idea how i can complete this behavior?

Thanks.
Oscar
Top achievements
Rank 1
 answered on 07 Apr 2014
1 answer
134 views
Hello, I'm trying to validate pasting into the grid. I'm using PastingCellClipboardContent because it lets me know which cell is being pasted into and the value, but I can't cancel at this point. Even if I set the e.Handled = true, the value is in the cell. The Pasting event will cancel, but that event doesn't have a GridViewCellInfo object like PastingCellClipboardContent does, so I don't know which cell(s) are being pasted and their values. Is there a way to handle this so I can validate the input and cancel or allow each value for each cell?

Thanks,
Scott
Dimitrina
Telerik team
 answered on 07 Apr 2014
3 answers
116 views
I display a short list of data in WPF grid in MVVP environment.

I can edit some values in the grid itself and the SUM Agregate function is triggered and the Grid displays the new Total.

But if data is changed in the Model itself, the values are displayed in the grid rows but the SUM is not triggered !

In MVVP the Model is NOT aware of View controls and should not call a refresh method on the grid...

How can this be done ?

Thanks,

Michel

Dimitrina
Telerik team
 answered on 07 Apr 2014
1 answer
332 views
Hi,

I have this xaml code:

<telerik:RadGridView x:Name="DynTableGridView"
                   ItemsSource="{Binding DataTables">
  <telerik:RadGridView.RowDetailsTemplate>
    <DataTemplate>
       <telerik:RadBusyIndicator  IsBusy="{Binding ????? DoInput}">
              <Grid>
                ....................
                some code
                ....................
              </Grid>
           </telerik:RadBusyIndicator>
    </DataTemplate>
  </telerik:RadGridView.RowDetailsTemplate>
</telerik:RadGridView>
and  DynTablesViewModel class
     public class DynTablesViewModel:ViewModelBase
    {
        private ICollectionView _dataTables;
        private bool _doInput = true;
 
        public void InitData()
        {
             DataTables = new QueryableCollectionView(.........);
        }
        #region Property
 
        public bool DoInput
        {
            get { return _doInput; }
            set { _doInput = value; OnPropertyChanged("DoInput"); }
        }
        
        public ICollectionView DataTables
        {
            get { return _dataTables; }
            set { _dataTables = value; OnPropertyChanged("DataTables"); }
        }
         #endregion
    }
How to bind RadBusyIndicator in RowDetailsTemplate?  RadBusyIndicator  IsBusy="{Binding ????? DoInput}"
Vanya Pavlova
Telerik team
 answered on 07 Apr 2014
3 answers
195 views
Hello,

We have a property to display that is a List{Integer}. This should be a readonly only collection. Is the PropertyGrid smart enough to work with ReadOnlyCollections? Or what sort of DataTemplate magic do we need to do wiring it up?

Similar question for custom types like Enums, or strings, etc.

Thank ye...

Best regards.
Dimitrina
Telerik team
 answered on 07 Apr 2014
1 answer
201 views
Hello,

I'm trying to format a chart that has a status or category on the Y axis, and a time on the X axis. Please see attached image for an example of what I'm talking about. I've tried a couple different scenarios, but I'm having trouble adding CategoricalDataPoints to my LineSeries. I'm currently trying to use the RadCartesianChart, which I'm not even sure is the most appropriate. Could anyone provide some guidance on if I'm using the right chart, axes, etc...and maybe a small example of adding data to the series programatically? 

This is what I have so far, which I know is not well written, just trying to get a POC working. The CategoricalDataPoint is expecting a double as the value, but I actually just have a category.

RadCartesianChart chart = new RadCartesianChart();
            chart.HorizontalAxis = new DateTimeContinuousAxis();
            chart.VerticalAxis = new CategoricalAxis();
            LineSeries line = new LineSeries();
            line.Stroke = new SolidColorBrush(Colors.Orange);
            line.StrokeThickness = 2;
 
            SqlCeConnection con = new SqlCeConnection(connectionString); ;
            con.Open();
            using (SqlCeCommand command = new SqlCeCommand("SELECT Log.contact as contact, Status.name as status, Log.time as time FROM Log INNER JOIN Status ON Log.status_id = Status.id WHERE (Log.contact = 'Bob')", con))
            {
                SqlCeDataReader reader = command.ExecuteReader();
                while (reader.Read())
                {
                    DateTime time = Convert.ToDateTime(reader["time"]);
                    string person = Convert.ToString(reader["contact"]);
                    string status = Convert.ToString(reader["status"]);
 
                    if (time.DayOfYear == DateTime.Now.DayOfYear - 1)
                    {
                        line.DataPoints.Add(new CategoricalDataPoint() { Value = time, Category = status });
                    }
                }
            }
Pavel R. Pavlov
Telerik team
 answered on 07 Apr 2014
1 answer
197 views
Hi,

i created a custom shape with a special datatemplate.

RadDiagramShape StateBox = new RadDiagramShape()
{                                               
    Content = model,
     Height = 80,
     Width = 150,
     ContentTemplate = (DataTemplate)this.FindResource("SubItemTemplate"),
     Position = e.GetPosition((RadDiagram)sender),
     Geometry = droppedSwitch.Geometry,    
      IsResizingEnabled = false                           
};

DataTemplate xaml:
<DataTemplate x:Key="SubItemTemplate">
      <Grid Background="Transparent" Width="{Binding Width, Mode=TwoWay}" Height="{Binding Height, Mode=TwoWay}">    
           <TextBlock Text="{Binding SN}" x:Name="PartID" />
       </Grid>
</DataTemplate>

This works fine. But how do i add a "BeginEdit" Method to the CustomShape? Thanks so far

Best Regards
Rene
Martin Ivanov
Telerik team
 answered on 07 Apr 2014
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?