Telerik Forums
UI for WPF Forum
3 answers
116 views
I found this article about the Scheduler control in which I could see the possibility of creating an appointment with an Hourly recurrence.

I have tried to do the same with the RadScheduleView's create a new Appointment View, but I can't seem to find a way to have that Hourly recurrence option. I can't go lower than a daily recurrence. I need to be able to create an hourly recurrence from the appointment creation view.

How would I go about doing that?

Thank you

Yana
Telerik team
 answered on 28 Mar 2013
0 answers
117 views
I have a GridView and it is binding a collection of objects that have around 30 fields/properties.  It ends up with around 30 columns and 1000+ rows.

If I use a Template for some of the columns I notice that the grid becomes much slower.  Are there any known issues or things I should look at in order to improve performance?

I have seen the demo with lots of columns and cells and if I don't style or use a Template my grid has relatively good performance.  It's when I try to use a Template that it starts to get slow.

My Template is used to create a left or right border and also display visual cues (border, color, tooltip) under certain conditions.  It's got about 8 border elements and 7 triggers.  Normally only one border element is visible and the other visual cues are collapsed, but the grid still performs very slowly.  However, even if I only use 1 border element in the template the grid becomes slower.

Douglas
Top achievements
Rank 1
 asked on 27 Mar 2013
1 answer
85 views
Hi,

I am trying to put what I am calling an app bar in a RadPane (see xaml) with limited success.

I want the app bar initially hidden but it it appears even though the RadPane is set to hidden.  If I set it to hidden in the window_loaded event that also does not hide the RadPane. When I mouse click on the RadPane header and then set visibility it works accordingly, What I am trying to do is when the user clicks on the RadPane header the code-behind will display the app bar.  By clicking on the RadPane header again the app bar will hide (Or a button in the app bar is pressed).  This seems to work OK except for the initial problem with not hiding the RadPane.  The other problem I am having is when  the app bar is hidden the TreeView control does not use the space of the hidden app bar.  The other feature that would be nice to have is an animation effect that slides the RadPane uo or down when displayed or hidden,  This is inside the RadDocking.

Thanks
Rich.

     <telerik:RadPaneGroup< telerik:ProportionalStackPanel.RelativeSize="75,25">
                        <telerik:RadPane Name="AvailableTables" 
                                     ContextMenuTemplate="{x:Null}"
                                     CanUserClose="False" CanFloat="False" CanUserPin="False">
                            <telerik:RadPane.TitleTemplate>
                                <DataTemplate>
                                    <TextBlock Text="Available Tables" MouseDown="AvailableColumnsHeader_MouseDown"/>
                                </DataTemplate>
                            </telerik:RadPane.TitleTemplate>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                
                                <telerik:RadPaneGroup Name="AvailableColumnsAppBarGroup" Background="LightGray">
                                    <telerik:RadPane  Name="AvailableColumnsAppBar" Height="32"  PaneHeaderVisibility="Collapsed" Visibility="Hidden">
                                        <WrapPanel HorizontalAlignment="Left" >
                                            <telerik:RadToggleButton Name="btnLocked"  IsChecked="False" IsThreeState="False" Height="30"
                                                         Margin="4,3,2,2" Content="Locked" Width="50" ></telerik:RadToggleButton>
                                       </WrapPanel>
                                    </telerik:RadPane>
                                </telerik:RadPaneGroup>
                                
                                <telerik:RadTreeView  Name="tvAvailableTables"
                                              Grid.Row="1"
                                                  SelectionChanged="tvAvailableTables_SelectionChanged"
                                                  SelectionMode="Multiple"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto">
                                </telerik:RadTreeView>
                            </Grid>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
George
Telerik team
 answered on 27 Mar 2013
2 answers
108 views
Hi
I have a simple parent/child relationship between some tables in my OpenAccess model. I retrieve all the rows in the parent table and display them in a WPF RadGRidView. I now want to display the children within each parent something like this:
Parent1
... Child 11
... Child 12
... Child 13
Parent2
... Child 21
... Child 22
etc.

I notice at runtime the navigation property collection has no members even though in the database there are children.
How can the navigation property collection be populated and would the RadGridView automatically present them in the layout described above?

Thanks
Craig


Craig
Top achievements
Rank 1
 answered on 27 Mar 2013
2 answers
205 views
If I am in edit mode and try to select the text with my mouse it thinks I am dragging that row. I tried to disable this with this code but it had no effect.

                <Style TargetType="telerik:GridViewCell" >
                    <Style.Triggers>
                        <Trigger Property="IsInEditMode" Value="True">
                            <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="False"></Setter>
                        </Trigger>
                    </Style.Triggers>
                </Style>

I then added code to OnDragInitialize in my DragDropBehavior attached behavior that returns if the current cell is in edit mode. It does stop the drag from happening but it also interferes with the user from selecting the string. It stops after the first character and changes the cursor to an arrow.

        private void OnDragInitialize(object sender, DragInitializeEventArgs e)<br>        {<br><div><span style="font-size: 11px; line-height: 1.4;">            var radGridClientObject = sender as RadGridView;</span><br></div>            if (radGridClientObject != null)<br>            {<br>                if (radGridClientObject.CurrentCell.IsInEditMode)<br>                {<br>                    return;<br>                }<br>            }<br><div></div>

How can I disable drag/drop when in edit mode?
Thanks, Valerie

Valerie
Top achievements
Rank 1
 answered on 27 Mar 2013
1 answer
129 views
Hi
See following line of code in bold that is commented out.  I get the following compile error:
"Cannot await Telerik.OpenAccess.Metadata.MetadataContainer"
If I use "await Task.Delay(2000);"  as show below it works great.  However I can't rely on a fixed amount of time.  Is there any problem awaiting OpenAccess methods or am I doing something wrong?

Thanks
Rich

        public async Task<MetadataContainer> GetSchema(RadBusyIndicator BusyIndicator, ConnectionInfo connInfo, 
            bool TablesAndViews, bool StoredProcedures, bool Indexes)
        {
            ISchemaReader reader = GetSchemaReader(connInfo);
            String[] schemas = reader.GetSchemas();
            SchemaReadParameters readParameters = new SchemaReadParameters(schemas);
            readParameters.Indexes = Indexes;
            readParameters.StoredProcedures = StoredProcedures;
            readParameters.TablesAndViews = TablesAndViews;
            BusyIndicator.IsBusy = true;
            //MetadataContainer metadataContainer = await reader.GetSchema(readParameters); 
            MetadataContainer metadataContainer = reader.GetSchema(readParameters);   
            await Task.Delay(2000);
            BusyIndicator.IsBusy = false;
            return metadataContainer;
        }



Ivo
Telerik team
 answered on 27 Mar 2013
3 answers
160 views
Hi,
When I am using a custom column and am scrolling in the treelistview the data seems to move around.
In the screenshot the data that is zero should not be zero. but there are columns that are zero. If I scroll around allot all columns will end up having the same number.

I am using version: 2013.1.311.40

here is my custom column code

public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
        {
            Grid cellGrid = cell.Content as Grid;
             
            TextBlock primaryText = new TextBlock(){ TextAlignment = System.Windows.TextAlignment.Right };
            TextBlock compareText = new TextBlock() { TextAlignment = System.Windows.TextAlignment.Right, Foreground = new SolidColorBrush(Color.FromRgb(100, 100, 100))};
 
            if (string.IsNullOrEmpty(this.DataMemberBinding.StringFormat))
            {
                this.ComparedPlanBinding.StringFormat = this.DataFormatString;
                this.DataMemberBinding.StringFormat   = this.DataFormatString;
            }
             
            primaryText.SetBinding(TextBlock.TextProperty, this.DataMemberBinding);
            compareText.SetBinding(TextBlock.TextProperty, ComparedPlanBinding);
 
            if (cellGrid == null)
            {
                cellGrid = new Grid();
                cellGrid.ColumnDefinitions.Add(new ColumnDefinition());
                cellGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(20)});
                cellGrid.ColumnDefinitions.Add(new ColumnDefinition());
                cellGrid.RowDefinitions.Add(new RowDefinition());
 
                cellGrid.Children.Add(primaryText);
                Grid.SetColumn(primaryText, 0);
                Grid.SetRow(primaryText, 0);
 
                cellGrid.Children.Add(compareText);
                Grid.SetColumn(compareText, 2);
                Grid.SetRow(compareText, 0);
            }
            return cellGrid;
        }

This only a problem when I scroll. Can you please advice.

Best regards
Kristján
Dimitrina
Telerik team
 answered on 27 Mar 2013
1 answer
133 views
Hi,

I have a chart that is updated with live values. The chart's axis always shows a minutes worth of data and a slider controls what part of the axis we are looking at. The chart also supports a track ball feature when moused over. The problem with this is that the track ball info is only updated on mouse movement. The chart however is always changing, so if there is no mouse movement and the cursor is left over the graph, then the track ball information will never be updated. 
I currently have a "bad" solution where I update the mouse position to move a pixel from current location. This works, but isn't very appealing. Is there a way to update the trackball a different way?

Thanks
Petar Marchev
Telerik team
 answered on 27 Mar 2013
5 answers
93 views
Hello 

in http://www.telerik.com/help/wpf/radchartview-populating-with-data-chartdatasource.html is this sample 

public class MyDataSource : ChartDataSource
{
    public MyDataSource()
        : base()
    {
        this.ValueAggregateFunction = new SumFunction();
    }
}


We used that with version 2012.3.1017.40 and it work fine for us. 
Now we tried to upgrad to version 2012.3.1129.40 and is doesnt work. The property "ValueAggregateFunction" is not available
Missing User
 answered on 27 Mar 2013
1 answer
111 views
Hi,

I'm using PivotGrid since beta version.
Now, we have the final version. Thank you.

But, I have a few questions:
- Documentation is poor. It's like in beta version. Other controls, like GridView, have a great documentation;
- How can I translate (localize) RadPivotFieldList?
- How can I make RowGroups begins collapsed?
- How can I make alternate colors in CollumnGroups?

PS.: These features was promissed in beta.

Regards, Getulio.
Rosen Vladimirov
Telerik team
 answered on 27 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?