Telerik Forums
UI for WPF Forum
2 answers
124 views
I want to use the RadGridView as a simple file explorer style display. To that end I have two columns, the first containing an icon and the second containing the filename.

While I don't mind the entire row highlighting on selection, I wish to configure the RagGridView so that it is always the second column that receives focus on selection change, this way when the user presses F2 the filename cell will enter edit mode. However I haven't found a way to do this yet. Setting the CurrentColumn on SectionChanged is having no effect.

Any suggestions please?
Maya
Telerik team
 answered on 27 Mar 2013
0 answers
81 views
Hi All,

I have a grid and I build some columns up at runtime based on dictionary in each data item that the grid binds to. I need to be able to edit the cell values for each of these columns on Row Data bind, so I am looking for an event like the "RowItemDataBound", but I see there is no such event, I have tried other events but I can't seem to find a way to set the cell values for each row.

How would I go about doing this?
Andrew
Top achievements
Rank 1
 asked on 27 Mar 2013
2 answers
107 views
Hi.. I use Telerik Wpf package(Q1 2013), and I use line chart to have two line series...
but, I  below problem... (please open attached file..)
What can i do...??
KANG
Top achievements
Rank 1
 answered on 27 Mar 2013
2 answers
70 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
162 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
305 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
161 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
165 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
92 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
167 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
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?