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

I have to design a grid which is having a multiple headers (Grey shaded part shown in the attached sample image). First header with a check box and second header is static just displays a value lika label and the Third header which shows total number of rows entered in the grid and the sum of the row values. Then the fourth header displays the column headers.

For the sample i have shown the three grids, it can be n number of grids dynamically added and all the grid rows are editable.

Can someone help me in this?

Thanks,
Subash
Subash
Top achievements
Rank 1
 answered on 11 Feb 2013
1 answer
93 views
HI,

i use a RadDocking- Control and add Panes by code:
RadPane radPane = new RadPane() { Title = panename_s, Name = name_s };
RadDocking.SetSerializationTag(radPane, panename_s);
RadPaneGroup radPaneGroup = new RadPaneGroup();
RadSplitContainer radSplitContainer = new RadSplitContainer() { InitialPosition = DockState.FloatingDockable };
 
Controls.LayoutData MyControl = new Controls.LayoutData();
MyControl.Name = name_s;
radPane.Content = MyControl;
radPaneGroup.Items.Add(radPane);
radSplitContainer.Items.Add(radPaneGroup);
Docking.Items.Add(radSplitContainer);

This works fine. Now add one  (AAA) Pane and save this layout to a xml-file. A second pane will be created (BBB). Now i delete
the second pane (BBB) and save the layout again. How do i delete this second pane from the LayoutStream? In my void "Docking_Element"-Method this second pane is still shown!

Thanks
Best Regards
Rene

Vladi
Telerik team
 answered on 11 Feb 2013
1 answer
139 views
hi,

i create some RadPanes by code. Later i have to save some informations in a database. How do i
get all of the RadPanes i created? Or better how do i get one by the title of a RadPane?

Thanks
Best Regards
rene
Vladi
Telerik team
 answered on 11 Feb 2013
1 answer
77 views
Hi,

i tried you exmaple to load my laypout, but i geht this error-message:
"The path specified format is not supported."
string path_s = Klassen.helper.WPFAnwendung_Path() + "\\Layout\\laoyut.xml";
    
// Load your layot from the isolated storage.
using ( IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForAssembly() )
{
      using (var isoStream = storage.OpenFile("E:\\WPF_Dev\\ITA-Reporting\\ITA-Reporting\\bin\\Debug\\Layout\\Layout.xml", FileMode.Open))
{
this.Docking.LoadLayout( isoStream );
             }

What's the problem? The path is ok, file does exist!

thanks
best Regards
rene
Vladi
Telerik team
 answered on 11 Feb 2013
1 answer
144 views
Hi,

i add a RadPane dynamically by clicking a button.
{
RadPane radPane = new RadPane() { Content = new Controls.LayoutData() };
RadPaneGroup radPaneGroup = new RadPaneGroup();
RadSplitContainer radSplitContainer = new RadSplitContainer() { InitialPosition = DockState.FloatingDockable };
radPaneGroup.Items.Add(radPane);
radSplitContainer.Items.Add(radPaneGroup);
Docking.Items.Add(radSplitContainer);
}

As you can see the Content of the RadPane ist a Usercontrol called "Controls.LayoutData". In this Control i can choose a Report,
which is shown in the Control.

But how do i save this layout?

This way just save the Layout with empty RadPanes:
try
{
      MemoryStream stream = new MemoryStream();
      this.Docking.SaveLayout(stream);
 
      stream.Seek(0, SeekOrigin.Begin);
      StreamReader reader = new StreamReader(stream);
      string xml_s = reader.ReadToEnd();
 
      string path_s = Klassen.helper.WPFAnwendung_Path() + "/Layout/laoyut.xml";
      using (StreamWriter Mywriter = new StreamWriter(@path_s))
      {
           Mywriter.Write(xml_s);
           Mywriter.Close();
           Mywriter.Dispose();
       }
}

how do I save the contents of the newly created/all RadPanes????

Thanks a lot
Best Regards
Rene
Boyan
Telerik team
 answered on 11 Feb 2013
6 answers
304 views
I have a radpane which can have different viewmodels as a datatemplate. I attached my object to the content of the radpane.
When the pane is docked there is not issue, but when the pane is in the floating state, the templated control only shows the datatype of the viewmodel.

 <telerik:RadPane x:Name="paneManufacturers" 
                 Header="{x:Static Properties:Resources.LabelLibraryExplorer}"
           Content="{Binding AvailableItems}">
</telerik:RadPane>
D
Top achievements
Rank 1
 answered on 11 Feb 2013
0 answers
319 views
Specifically i want to change the background color of the RadDatePicker (as well as the whole row) when i am changing the currently selected row with the up/down arrow keys.

To change the color of current row (highlighted) is achieved somewhat using Style.Triggers as per the following code:

<telerik:RadGridView Name="tlrkGridView" 
                     IsFilteringAllowed="False" ShowGroupPanel="False" CanUserSortColumns="False" IsSynchronizedWithCurrentItem="True"
                     ItemsSource="{Binding Players}"
                     AutoGenerateColumns="False">
    <telerik:RadGridView.RowStyle>
        <Style TargetType="{x:Type telerik:GridViewRow}">
            <Style.Triggers>
                <Trigger Property="IsSelected" Value="True">
                    <Setter Property="Background" Value="AliceBlue"></Setter>
                </Trigger>
            </Style.Triggers>
        </Style>
    </telerik:RadGridView.RowStyle>
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Number}"/>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Country}"/>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding StartDate}" DataFormatString="{} {0: d/MM/yyyy}" Header="Custom Header">
            <telerik:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <telerik:RadDatePicker x:Name="datePicker" DateTimeWatermarkContent="<Select a date>" SelectedValue="{Binding StartDate, Mode=OneWay}" />
                </DataTemplate>
            </telerik:GridViewDataColumn.CellTemplate>
            <telerik:GridViewDataColumn.CellEditTemplate>
                <DataTemplate>
                    <telerik:RadDatePicker x:Name="datePickerEdit" DateTimeWatermarkContent="<Select a date>" SelectedValue="{Binding StartDate, Mode=TwoWay}" />
                </DataTemplate>
            </telerik:GridViewDataColumn.CellEditTemplate>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding EndDate}" DataFormatString="{} {0: d/MM/yyyy}"  />
        <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding ClubID}" 
                                        ItemsSource="{Binding Clubs, Source={StaticResource MyViewModel}}"
                                        SelectedValueMemberPath="ID" >
            <telerik:GridViewComboBoxColumn.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition />
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{Binding ID}"/>
                        <TextBlock Text=" - " Grid.Column="1"/>
                        <TextBlock Text="{Binding Name}"  Grid.Column="2"/>
                    </Grid>
                </DataTemplate>
            </telerik:GridViewComboBoxColumn.ItemTemplate>
        </telerik:GridViewComboBoxColumn>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

But HOW TO MAKE THE TRIGGER AFFECT/SET THE STYLE OF THE RadDatePicker which is contained within the RadGridView? Is it do-able in XAML ?

Basically i want to make the color of a selected row (the whole row) the same, regardless of whether it contains default column types, or other controls within a column. The GridViewComboBoxColumn behaves as expected, and EndDate field in my example behaves as expected. The reason i am using a RadDatePicker is because i want to show the Calendar icon in cell view mode.
Joe
Top achievements
Rank 1
 asked on 11 Feb 2013
2 answers
215 views
I need to be able to specify a dynamic set of BarSeries for a RadCartesianChart through XAML which is bound to a property in my viewmodel.

I tried creating a property which is of type List<CartesianSeries> and binding to that but it is not working.
public List<CartesianSeries> BarSeriesList
{
    get
    {
        List<CartesianSeries> barSeriesList = new List<CartesianSeries>();
 
        foreach (ChartDataPointModel dataPoint in DataPoints)
        {
            BarSeries barSeries = new BarSeries();
            barSeries.DataPoints.Add(new CategoricalDataPoint() { Value = dataPoint.Value, Label = dataPoint.Name, Category = dataPoint.Name });
            barSeriesList.Add(barSeries);
        }
 
        return barSeriesList;
    }
    set
    {
        // do nothing
    }
}

The XAML I tried to use to bind to it is:

<chart:RadCartesianChart Palette="{Binding Palette}" Height="300" Width="500">
 
     <chart:RadCartesianChart.Series>                       
         <chartView:BarSeries ValueBinding="Value" CategoryBinding="Name" ItemsSource="{Binding BarSeriesList}" />
     </chart:RadCartesianChart.Series>
 
     <chart:RadCartesianChart.HorizontalAxis>
         <chartView:CategoricalAxis/>
     </chart:RadCartesianChart.HorizontalAxis>
      
     <chart:RadCartesianChart.VerticalAxis>
         <chartView:LinearAxis LabelFormat="0" />
     </chart:RadCartesianChart.VerticalAxis>
 
     <chart:RadCartesianChart.Grid>
         <chartView:CartesianChartGrid MajorLinesVisibility="Y" />
     </chart:RadCartesianChart.Grid>
 
 </chart:RadCartesianChart>

How is the BarSeries supposed to be bound to make it dynamic?

Thanks,

Tracy
Greg
Top achievements
Rank 1
 answered on 09 Feb 2013
4 answers
118 views
Hello,

since 2012 Q2 SP2 the RadGridView shows the DateTime Values in en-US culture.
How can I change the the culture back into the machine culture?
Dimitrina
Telerik team
 answered on 08 Feb 2013
10 answers
553 views
I'm getting complaints from the users that disabled controls on our data forms are too hard to read.

Is there some simple, global method for over-riding the foreground color selection used?
Jeff
Top achievements
Rank 1
 answered on 08 Feb 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
Slider
Expander
TileList
PersistenceFramework
DataPager
TimeBar
Styling
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?