Telerik Forums
UI for WPF Forum
2 answers
79 views
In the examples I've found, related to the RadGridView control, when it comes to columns they use the GridViewDataColumn, which appears to me to bind to just one data element from the collection the grid view is bound to. I'd like to bind to 3 data elements in one column with the RadGridView. Specifically, I'd like to bind to the client's last name, first name and generation. (e.g.: "Smith, John" or "Smith Jr., John"). And then the column's header will simply say, "Client's Name". How do I do that?
Rod
Top achievements
Rank 1
 answered on 26 Mar 2013
2 answers
173 views

Hello, I was wondering how to change and/or remove the "root" composite filter in the RadDataFilter. I am loading filters programmatically and I need to change the default "And" to an "Or". If this is not possible, than I just need to remove this root filter and add my own. Please see the code below as well as the attached screen shot. I am using .NET 4.0 (full) and Telerik 2013 Q1. Thank you.

XAML:

<T:RadDataFilter x:Name="filtMain" AutoGenerateItemPropertyDefinitions="False" />

Code Behind:
filtMain.ItemPropertyDefinitions.Add(new ItemPropertyDefinition("FirstName", typeof(string), "First Name"));
filtMain.ItemPropertyDefinitions.Add(new ItemPropertyDefinition("MiddleName", typeof(string), "Middle Name"));
filtMain.ItemPropertyDefinitions.Add(new ItemPropertyDefinition("LastName", typeof(string), "Last Name"));
CompositeFilterDescriptor parent = new CompositeFilterDescriptor() { LogicalOperator = FilterCompositionLogicalOperator.Or };
parent.FilterDescriptors.Add(new FilterDescriptor("FirstName", FilterOperator.EndsWith, "an"));
parent.FilterDescriptors.Add(new FilterDescriptor("MiddleName", FilterOperator.IsEqualTo, "Bob"));
parent.FilterDescriptors.Add(new FilterDescriptor("LastName", FilterOperator.DoesNotContain, "Doe"));
// FilterDescriptors is empty. Where is the root "And" composite that I see on the screen???
filtMain.FilterDescriptors.Add(parent);

Josh
Top achievements
Rank 1
 answered on 26 Mar 2013
5 answers
353 views
I've been stumbling all over this all day and need some direction.  I've paired down my code and am posting it in hopes that someone can tell me what I'm doing wrong.
The xaml...
<telerik:RadGridView AutoGenerateColumns="False"
                        ItemsSource="{Binding Screens}">
    <telerik:RadGridView.Columns>
        <telerik:GridViewComboBoxColumn x:Name="ScreenTypeCombo"
                                        UniqueName="ScreenTypeCombo"
                                        Header="Screen Type"
                                        Width="150"
                                        DataMemberBinding="{Binding SelectedScreenType}"
                                        SelectedValueMemberPath="ScreenType"
                                        DisplayMemberPath="Literal"
                                        ItemsSourceBinding="{Binding ScreenTypeLiterals}" />
    </telerik:RadGridView.Columns>


The ViewModel...

public enum ScreenTypes
{
    Master,
    Vertical,
    Multicolumn,
    Wrap,
    Detail,
    Transaction,
    Notes
}
 
public class ScreenTypeLiteral
{
    public ScreenTypes ScreenType
    {
        get;
        set;
    }
 
    public String Literal
    {
        get;
        set;
    }
 
    public ScreenTypeLiteral(ScreenTypes type, String lit)
    {
        ScreenType = type;
        Literal = lit;
    }
}
 
public class ScreenDescriptor
{
    public ICollectionView ScreenTypeLiterals
    {
        get
        {
            return _ScreenTypeLiterals;
        }
        set
        {
            _ScreenTypeLiterals = value;
            OnPropertyChanged(() => ScreenTypeLiterals);
        }
    }
    private ICollectionView _ScreenTypeLiterals;
 
    public ScreenTypeLiteral SelectedScreenType
    {
        get
        {
            return ScreenTypeLiterals.CurrentItem as ScreenTypeLiteral;
        }
    }
 
    public ScreenDescriptor()
    {
        ScreenTypeLiterals = CollectionViewSource.GetDefaultView(new List<ScreenTypeLiteral>()
        {
            {new ScreenTypeLiteral(ScreenTypes.Master, "Master View")},
            {new ScreenTypeLiteral(ScreenTypes.Vertical, "Detail View")},
        });
        ScreenTypeLiterals.MoveCurrentToFirst();
    }
 
}
 
public class Descriptor
{
    public ICollectionView Screens
    {
        get
        {
            return _screens;
        }
        set
        {
            _screens = value;
            OnPropertyChanged(() => Screens);
        }
    }
    private ICollectionView _screens = null;
 
    public Descriptor()
    {
        var list = new List<ScreenDescriptor>();
        list.Add(new ScreenDescriptor());
        list.Add(new ScreenDescriptor());
 
        Screens = CollectionViewSource.GetDefaultView(list);
        Screens.MoveCurrentToFirst();
    }
 
}


Thanks in advance,
Steve
Dimitrina
Telerik team
 answered on 26 Mar 2013
7 answers
219 views
I don't know if I'm missing something obvious, but if anyone has any ideas I'd be grateful.  Feel like I'm banging my head against a wall!

My requirement is that I need a column with all the usual stuff that GridViewDataColumn usually gives you - display, edit, filter, sort, group etc.  But I can't work out how to get a DataMemberBinding value that will do what I want.

It probably makes the most sense if I explain the actual problem rather than trying to make one up, as it's fairly easy to understand.

I have 3 'fixed' columns:

Description (text)
Value (decimal)
Adjusted Value (decimal)

I then have 0->n 'Adjustment' (decimal) columns that get dynamically added in between Value and Adjusted Value.  So the idea is that the Value + all Adjustment values = Adjusted Value

So, the value I need to bind to is a decimal, but it requires a method to access it (e.g. 'GetValueForAdjustment(Adjustment adjustment)') and a method to set it (e.g. 'SetValueForAdjustment(Adjustment adjustment, decimal value)'). 

Now I could probably set DataMemberBinding to use a ValueConverter which will get me the value, sorting, grouping etc.  But I'm not going to be able to edit it. 

MultiBinding is the other option, but DataMemberBinding doesn't support MultiBinding.

Anything glaring that I'm missing?

Nedyalko Nikolov
Telerik team
 answered on 26 Mar 2013
1 answer
178 views
I have a Line Chart with two series, the problem is one of my series has two data points with Category values that do not exist in the first series. When I create each of these series using GenericDataPointBinding expressions, the 2nd series renders "off" because the two Category values get tacked on out of order at the end of the graph instead of being inserted in order (see this image).

Is there a way to prevent this outside of forcing each series to have exactly the same Categories?
Peshito
Telerik team
 answered on 26 Mar 2013
0 answers
104 views

Dear Telerik Team!

I'm handling SchedulerView's VisibleRangeChange event:

private ICommand visibleRangeChanged;
public ICommand VisibleRangeChanged
{
            get
            {
                return this.visibleRangeChanged;
            }
            set
            {
                this.visibleRangeChanged = value;
            }
}
 
private void OnVisibleRangeExecuted(object param)
{
//my code here
}
 
public bool OnVisibleRangeCanExecute(object param)
{
 return param != null;
 
}

but in some cases, I would like to disable event execution, change some active view definition properties and attach back to the event. Is is possible and if so - could you please tell me how to do it?

Very best regards and thank you in advance
Krzysztof

Krzysztof
Top achievements
Rank 1
 asked on 26 Mar 2013
1 answer
181 views
I am getting some empty space around the child of a row. I think it is due to the value set for padding for a border in the SelectiveScrolling grid in the visual tree of the gridview. What is the easy way to remove this padding. I find a similar post  for winforms gridview here http://www.telerik.com/community/forums/winforms/gridview/hierarchy-child-size.aspx#2550183
Dimitrina
Telerik team
 answered on 26 Mar 2013
3 answers
185 views
hi,
i have multiple y-axis in my graph......and i want to bold a single plot when mouse hovers over it and fade rest plots on the graphs.
i am not getting solution in telerik chart view.
can u help me vid it?
Petar Marchev
Telerik team
 answered on 26 Mar 2013
1 answer
117 views
I have a large amount of data I want to visualize that comes from an analysis sampling machine.  I have a data point every 3 seconds for a total of about 5000 data points.  I want to be able to use the timebar to make a selection that I can show in more detail in a radcartesianchart.  I can't seem to figure out how to setup Time bar to show the data at all no less be able to make a selection to show in the secondary chart.

Can you please lend some guidance on this?  I can't find any other sliding selection tool that would seem to work for this sort of data.
Tsvetie
Telerik team
 answered on 26 Mar 2013
1 answer
227 views
Hi, please tell me how to set 24h time format, and how to modify the IntervalSpans collection in the program code. As I understand it in the Q1 2013 release (version 2013.1.0220) this is possible.
Missing User
 answered on 26 Mar 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
PersistenceFramework
DataPager
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?