Telerik Forums
UI for WPF Forum
0 answers
82 views
Is it possible to group a Master-Detail Grid based on the columns in the Detail grid?

For example if you had nested grids of automobiles, the parent grid contained the make, model, color, year, etc... and the child grid contained the price, mileage, location (state or city), etc...

Is it possible to grab the header "location" and place it in the group panel of the parent so that Master-Detail Grid would be grouped by state?

This seems like something that should be available but I have not seen it implemented anywhere.

Thanks!

Cameron
Cameron
Top achievements
Rank 1
 asked on 11 Oct 2013
8 answers
137 views
I'm looking for a way to have a single column header display above 2 grid columns, but all of the posts I've been able to find from searching seem out of date. I tried styling the headers to hide the line in between (not a good solution anyway, since I need the text to straddle the two header cells), but couldn't figure out how to make it visually match the existing header cells. I don't need the filtering or sorting capabilities in this grid, so even being able to turn off the header while leaving the ColumnGroup headers on would accomplish what I need, but ShowColumnHeaders turns both off.

Is there a recommended approach to accomplish something like this?

Thanks,
Louis


Louis
Top achievements
Rank 1
 answered on 11 Oct 2013
2 answers
389 views
Hello, I was looking at this post http://www.telerik.com/community/forums/wpf/gridview/rounded-corners.aspx, and I was wondering if I could do the rounding at the cell level. I'm creating columns dynamically, so I don't know how to do a cell template. I was thinking of just adding a textbox with rounded corners as the cell template and remove the gridlines to get this effect, but adding columns dynamically prevents this I believe. I would like all cells in the grid to have the rounded corners.

Thanks,
Scott
Scott Michetti
Top achievements
Rank 1
Iron
 answered on 11 Oct 2013
3 answers
134 views
Hello everybody,

I need to generate a GridView at runtime from a Dictionary<DateTime,Dictionary<string,double>>.

I would like to display the different DateTime keys in GridView columns. The rows header of the grid would be fill with string keys of the second dictionary and the cells with values of this dictionary.
I precise that the keys of the Dictionary<string,double> are the same whatever the DateTime you choose.
I would like to know if it is possible to do such a thing only using xaml and binding or if it is necessary to build the grid in the xaml.cs file or if I need to use another method.

There is an example of the expected result :

 

Date1

Date2

Date3

Date4

Date m

String1

0

1

1,8

2,8

12,9

String2

0,5

16

15

5

2,9

String3

2

8

18

6

1,9

String4

4

7

12

1

1

String n

0

6

17

24

13


Thank you for your help.

Regards,
Thomas
Thomas
Top achievements
Rank 1
 answered on 11 Oct 2013
1 answer
128 views
I've tried to inherit class from RadTreeListView and add it on form via XAML and app shows nothing in debug.
How can I fix it quickly?
RadControls version = 2011.3.1220.40

public class TestTreeView : RadTreeListView
{
}
<controls:TestTreeView ItemsSource="{Binding Items}" />  -> empty screen
...
<t:RadTreeListView ItemsSource="{Binding Items}" />  -> fine
Dimitrina
Telerik team
 answered on 11 Oct 2013
1 answer
141 views
The company for which I'm consulting has a specific business requirement that each instance of
certain WPF Windows MUST have their own UI Thread and NOT share the default UI thread created
by .NET Framework when the application is first loaded. From a coding perspective, 
this is easy to
accomplish and works well, until introducing the Telerik RadDocking control in the WPF Xaml.  I have
copied and pasted the xaml form telerik's RadDocking example directly from the sample code without
modifying it. When the app launches, both instances of WindowWithTelerikDockingFromExample
[seemingly] load without issue at first, in fact, the second instance of the window (titled "Window on
seperate UI Thread...") is operational and works, as does "MainWindow". It's not until you activate
the second window and then activate the main window, and then switch back to the second window
that the following exception is thrown:

"The calling thread cannot access this object because a different thread owns it."

Locating source for 'c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Parts\AutoHideArea.cs'. Checksum: MD5 {3e 1e cd 2a 97 89 30 7e c9 1c 28 c2 28 13 aa e9}
The file 'c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Parts\AutoHideArea.cs' does not exist.
Looking in script documents for 'c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Parts\AutoHideArea.cs'...
Looking in the projects for 'c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Parts\AutoHideArea.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Parts\AutoHideArea.cs.
The debugger could not locate the source file 'c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Parts\AutoHideArea.cs'.

Here is the code from my files:

App.xaml.cs:
public partial class App : Application
 {
     protected override void OnStartup(StartupEventArgs e)
     {
         this.ShutdownMode = System.Windows.ShutdownMode.OnLastWindowClose;
 
         // Init the application's main window...
         var mainWindow = new WindowWithTelerikDockingFromExample();
         mainWindow.Title = "Main Window";
         this.MainWindow = mainWindow;
         mainWindow.Show();
 
         // init another instance of the window with the telerik docking, on a seperate UI thread...
         var thread = new Thread(() =>
         {
             SynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext(Dispatcher.CurrentDispatcher));
             var window2 = new WindowWithTelerikDockingFromExample();
             window2.Title = "Window on seperate UI Thread...";
             window2.Show();
             System.Windows.Threading.Dispatcher.Run();
             window2.Closed += (s2, e2) =>
                 {
                     window2.Dispatcher.InvokeShutdown();
                 };
 
         });
 
         thread.SetApartmentState(ApartmentState.STA);
         thread.Start();
 
         base.OnStartup(e);
     }
 
 }

WindowWithTelerikDockingFromExample.xaml:

<Window x:Class="TelerikDockingThreadIssueExample.WindowWithTelerikDockingFromExample"
        Title="Window with xaml copy and pasted from Telerik example" Height="300" Width="300">
    <Grid>
        <telerik:RadDocking   BorderThickness="0" Padding="0">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadDocumentPane Header="Document 1" Title="Document 1" />
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
 
            <telerik:RadSplitContainer InitialPosition="DockedLeft">
                <telerik:RadPaneGroup>
                    <telerik:RadPane Header="Pane Left 1" IsPinned="False">
                        <TextBlock Text="Pane Left 1" />
                    </telerik:RadPane>
                    <telerik:RadPane Header="Pane Left 2" IsPinned="False">
                        <TextBlock Text="Pane Left 2" />
                    </telerik:RadPane>
                    <telerik:RadPane Header="Pane Left 3" IsPinned="False">
                        <TextBlock Text="Pane Left 3" />
                    </telerik:RadPane>
                    <telerik:RadPane Header="Pane Left 4" IsPinned="False">
                        <TextBlock Text="Pane Left 4" />
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
            <telerik:RadSplitContainer InitialPosition="DockedRight">
                <telerik:RadPaneGroup>
                    <telerik:RadPane Header="Pane Right 1" IsPinned="False">
                        <TextBlock Text="Pane Right 1" />
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
            <telerik:RadSplitContainer InitialPosition="DockedBottom">
                <telerik:RadPaneGroup>
                    <telerik:RadPane Header="Pane Bottom 1" IsPinned="False">
                        <TextBlock Text="Pane Bottom 1" />
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
    </Grid>
</Window>

Any ideas?
George
Telerik team
 answered on 11 Oct 2013
1 answer
118 views
Hey guys,

I was wondering if there was anyway to force a floating-only pane to stay inside a certain boundary. For example, lets say I have a RadPane that takes up the top half of the screen. I would like the smaller floating pane to be restricted to stay inside that RadPane's border, so the user cannot 'float' the pane to the bottom half of the screen.

Is this possible?

Thanks,
Niko
Vladi
Telerik team
 answered on 11 Oct 2013
5 answers
426 views
Is there any (easy) way to create a fixed width label with a variable width edit control (anchored at left, expands to fill available space to the right)? I am not AutoGenerating the fields, but I would prefer to use the telerik:DataFormDataField control for the sake of simplicity, rather than butcher together my own mess using a StackPanel or something similar.

I have a number of resizable forms, and the default way that labels and controls resize themselves doesn't really work that well.

Thanks,

Dan.
Ivan Ivanov
Telerik team
 answered on 11 Oct 2013
3 answers
121 views
Hi,

I am trying to use GridViewComboBoxColumn in a RadTreeListView, but for some reason, the combobox field is always empty. Can someone tell me what am I doing wrong?


    public class WorkItemTree
    {
        public ObservableCollection<WorkItemNode> workItems
        {
            get;
            set;
        }
   }
 
    public class WorkItemNode
    {
        public ObservableCollection<WorkItemNode> Children
        {
            get;
            set;
        }
 
        public int Id
        {
            get;
            set;
        }
 
        public string Title
        {
            get;
            set;
        }
 
        public string State
        {
            get;
            set;
        }
        public List<MyState> States
        {
            get;
            set;
        }
}
 
    public class MyState
    {
        public string Name
        {
            get;
            set;
        }
    }
 
this.radTreeListView.ItemsSource = TFSManager.workItems.workItems;
 
<Window
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="TFSTreeView.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
 
        <telerik:RadTreeListView x:Name="radTreeListView"
                                 AutoGenerateColumns="False" ScrollMode="Deferred"
                                 LoadingRowDetails="radTreeListView_LoadingRowDetails"
                                 RowDetailsVisibilityMode="Visible"  Margin="0,0,0,-23"
                                 IsReadOnly="True"
                                 DataLoaded="radTreeListView_DataLoaded"
                                 >
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
            </telerik:RadTreeListView.ChildTableDefinitions>
            <telerik:RadTreeListView.Columns>
                <telerik:GridViewComboBoxColumn Name="State" Header="State" DataMemberBinding="{Binding State, Mode=TwoWay}" ItemsSource="{Binding States}" DisplayMemberPath="Name" SelectedValueMemberPath="Name"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Title}"
                                    Header="Title" />
            </telerik:RadTreeListView.Columns>
        </telerik:RadTreeListView>
 
         
    </Grid>
</Window>

Dimitrina
Telerik team
 answered on 11 Oct 2013
1 answer
195 views
Hello,

I'm currently working on a WPF application which has a few RadNumericUpDown controls and RadMaskedNumericInput controls.

We are working with data annotations to perform validation (including custom validation)

Now i've noticed that for RadMaskedNumericInput controls, it will display the validation message next to the control and change the border color to red.
However, for RadNumericUpDown controls it only changes the border to red but doesn't display the message.

Is this standard behaviour or am I missing something?


Kind regards,
Kalin
Telerik team
 answered on 11 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
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?