Telerik Forums
UI for WPF Forum
1 answer
247 views
Hello,
I have a RadToolBar with buttons on it. When I click on a button a "border" appears around it. After focus is moved to another control the border still remains on the button.

Is it possible to remove that "border" after toolbar loses focus?
Tina Stancheva
Telerik team
 answered on 26 Jan 2012
1 answer
114 views
Hi TT,
I'm making an application to surface in wpf.
For this application, I need to instantiate more than one book and there are no problems.
But if I try to browse through more than one book at the same time (such as surface allows), it only works one at a time. To be precise, only works that you are flipping through the book and nothing else.
Is there a way to solve this problem?

Thank you for helping
Chianco
Petar Mladenov
Telerik team
 answered on 26 Jan 2012
1 answer
129 views
Hi,

i have implemented a custom appointment editor dialog using the dialog host factory. Now i need access to the scheduleview instance from within the viewmodel of my appointment editor dialog. Especially i need to know from which viewdefinition (month, day, week...) the dialog was started so i can set the start and end dates appropriately.
I saw that the original appointmentdialogviewmodel (from which i have an instance in my custom editor viewmodel) has a property called DialogHost and this property has another property "ScheduleView" which is in fact the instance i need access to. However the "DialogHost" property on the appointmentDialogViewModel is protected so i can't access it within my viewmodel.
How can i get access to the scheduleview instance from within my custom view model?

best regards

matthias
Yana
Telerik team
 answered on 26 Jan 2012
3 answers
204 views
Hello

Is Posible export GridView to Telerik Reporting?

Like this: http://www.devexpress.com/Products/NET/Controls/WPF/Grid/printing.xml

Thanks
Vlad
Telerik team
 answered on 26 Jan 2012
4 answers
125 views
Hi,

I've found that plotting data with where the Y value is above the maximum vertical axis plots somewhere to the top-left corner of component (outside of the visible component). Here's an example:

XAML:
<Window
    x:Class="RadChartViewSimpleTest"
    xmlns:chart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Chart"
    xmlns:chartView="clr-namespace:Telerik.Windows.Controls.ChartView;assembly=Telerik.Windows.Controls.Chart"
    Width="300"
    Height="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <DataGrid
            ItemsSource="{Binding}" />
        <chart:RadCartesianChart
            Grid.Column="1">
            <chart:RadCartesianChart.HorizontalAxis>
                <chartView:LinearAxis />
            </chart:RadCartesianChart.HorizontalAxis>
            <chart:RadCartesianChart.VerticalAxis>
                <chartView:LinearAxis
                    Maximum="100" />
            </chart:RadCartesianChart.VerticalAxis>
            <chart:RadCartesianChart.Series>
                <chartView:ScatterLineSeries
                    x:Name="ScatterLineSeries1"
                    ItemsSource="{Binding}" />
            </chart:RadCartesianChart.Series>
        </chart:RadCartesianChart>
    </Grid>
</Window>

VB:
Imports Telerik.Windows.Controls
Imports Telerik.Windows.Controls.ChartView
 
Public Class RadChartViewSimpleTest
 
    Public Sub New()
        InitializeComponent()
 
        Dim Points As New List(Of Point)
        For i As Integer = 0 To 150 Step 5
            Points.Add(New Point(i, i))
        Next
        For i As Integer = 0 To 150 Step 5
            Points.Add(New Point(155 + i, i))
        Next
        Me.DataContext = Points
 
        Dim genericBinding As New GenericDataPointBinding(Of Point, Double)
        genericBinding.ValueSelector = Function(t As Point) t.X
        ScatterLineSeries1.XValueBinding = genericBinding
        genericBinding = New GenericDataPointBinding(Of Point, Double)
        genericBinding.ValueSelector = Function(t As Point) t.Y
        ScatterLineSeries1.YValueBinding = genericBinding
    End Sub
End Class

The chart has a maximum vertical (linear) axis of 100, however the data generated in code-behind plots from 0 to 150. The resulting graph ends up quite funky (and incorrect).

I've also noted that irrespective of what I set for "RangeExtendDirection" in the vertical linear axis, the maximum range is never extended and the minimum range is always extended, ie. RangeExtendDirection is always acts as Negative irrespective of the value I set it to.

Kind regards,
Dave.

ps. Love the new performance of the ChartView component!
Per
Top achievements
Rank 1
 answered on 26 Jan 2012
0 answers
168 views
Hi,

We have encountered an issue with binding a hierarchical object model to a RadTreeList when the hierarchy contains multiples references to the same node instance.
For example, if node A contains two children, both node B.

In this scenario it seems the TreeList display and selection become problematic, with tree levels not getting the correct indentation and selecting a node selecting all appearances of the node in the tree (good) but not unselecting them when selection changes.
Unfortunately, Telerik support informed me that this scenario is not supported by the Grid and TreeList controls.

I was wondering if anyone here encountered a similar issue, and if so if there is a simple workaround to allow me to still use the TreeList without having to completely change my existing data structure.

Thanks!
Shlomo
Top achievements
Rank 1
 asked on 26 Jan 2012
1 answer
139 views
Hi,

We are using RadScheduleViewCommands.CreateAppointmentWithDialog() to open the dialog when creating an appointment. Is there anyway I can disable the animation of the Dialog as the window is opened and closed?

Also, is there an easy way to remove the transparency of the dialog chrome?

Cheers,
-Brad
Konstantina
Telerik team
 answered on 26 Jan 2012
5 answers
354 views

I want to make a column in my RadGridView clickable, such that clicking on a cell in a particular column opens another view with details for that row. I tried adding a button to the column, but I can't get the button to show the text from the actual column. I've got my RadGridView  bound to a System.Data.DataTable, and am defining the column as follows:

<telerik:GridViewDataColumn Header="Action" DataMemberBinding="{Binding commandName}" UniqueName="actionButton">
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <telerik:RadButton Content="{Binding commandName}" Click="ActionClicked" />
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

...but the button shows up as a skinny horizontal line with no text. It shows up as expected if I hard code the button content.

Cody
Top achievements
Rank 1
 answered on 26 Jan 2012
2 answers
127 views
How exactly do I achieve this? I tried the snippet below but no luck at all. I always get a smaller value for the width.

        private void gridView_DataLoading(object sender, Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs e)
        {
            double width = 0;
 
            foreach (var col in gridView.Columns)
            {
                // None of these gives me the desired value
                //width += col.ActualWidth;
                //width += col.Width.DisplayValue;
                //width += col.Width.Value;
            }
 
            gridView.Width = width;
        }
swarmttied
Top achievements
Rank 1
 answered on 25 Jan 2012
2 answers
299 views

Hi,

In my project, I have to create GridViewDataColumn for my RadGridView dynamically. When I finish creating my columns, I load data into my grid but the sort, filter and the grouping doesn't work :( I cannot see my filter button and if I try to drag a column header into the group panel, nothing happen.

Here is in my grid:

<telerik:RadGridView x:Name="radGridViewList" Margin="5 0 5 5" Visibility="Visible" RowDetailsVisibilityMode="Collapsed" FrozenColumnCount="1"

RowIndicatorVisibility="Collapsed" IsReadOnly="True" AutoGenerateColumns="False" CanUserFreezeColumns="False" Grid.Row="3"

CanUserResizeColumns="True" ShowColumnFooters="True" ShowGroupFooters="True" SelectionMode="Extended" IsSynchronizedWithCurrentItem="True" />

 

here is the code-behind:

static public void SetColumns(RadGridView pGrid, ColumnDescriptor[] pColumnNames)

{

if (pColumnNames != null)

{

SortedList<int, GroupDescriptor> grouping = new SortedList<int, GroupDescriptor>();

for (int iColumnIndex = 0; iColumnIndex < pColumnNames.Length; iColumnIndex++)

{

ColumnDescriptor oneName = pColumnNames[iColumnIndex];

Telerik.Windows.Controls.GridViewDataColumn oneColumn = new Telerik.Windows.Controls.GridViewDataColumn();

oneColumn.Header = oneName.ColumnName;

//Apply proper column display format.

switch (oneName.Format.ToUpper())

{

case "$":

oneColumn.DataFormatString = "C2";

break;

case "D":

oneColumn.DataFormatString = "yyyy'-'MM'-'dd";

break;

case "H":

oneColumn.DataFormatString = "HH':'mm";

break;

case "DH":

oneColumn.DataFormatString = "yyyy'-'MM'-'dd' 'HH':'mm";

break;

}

oneColumn.Width = new GridViewLength(1, GridViewLengthUnitType.Star);

oneColumn.ShowFilterButton = true;

oneColumn.IsSortable = true;

oneColumn.IsFilterable = true;

oneColumn.IsGroupable = true;

oneColumn.DataMemberBinding = new Binding(string.Format("ElementCells[{0:D}]", iColumnIndex));

oneColumn.TextAlignment = (TextAlignment)oneName.TextAlignment;

oneColumn.HeaderTextAlignment = (TextAlignment)oneName.TextAlignment;

//Create proper aggregate functions.

if (oneName.Agregation != AgregationFunction.None)

{

AddAggregateToColumns(ref oneColumn, oneName, string.Format("ElementCells[{0:D}]", iColumnIndex));

}

//Grouping field.

if (oneName.GroupingPosition != 0)

{

grouping.Add(Math.Abs(oneName.GroupingPosition),

new GroupDescriptor { DisplayContent = oneName.ColumnName, Member = string.Format("ElementCells[{0:D}]", iColumnIndex),

SortDirection = oneName.GroupingPosition > 0 ? ListSortDirection.Ascending : ListSortDirection.Descending});

}

//Add the column to the grid.

pGrid.Columns.Add(oneColumn);

}

//If grouping exist, add it to the grid.

if (grouping.Count != 0)

{

foreach (KeyValuePair<int, GroupDescriptor> oneGrouping in grouping)

{

pGrid.GroupDescriptors.Add(oneGrouping.Value);

}

}

}

}

Thank's

Oliver
Top achievements
Rank 1
 answered on 25 Jan 2012
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?