Telerik Forums
UI for WPF Forum
3 answers
284 views
I would like to ask can we apply the blur effect(fading effect) on the edges of telerik gridviewscrollviewer?
Thanks
Stefan
Telerik team
 answered on 31 Mar 2015
1 answer
89 views
Hi, 

   If I use one chartview to show 5+ line series, the series shares one common VerticalAxis, but each one of them has it's own HorizontalAxis(because each of them has different  length ).
   All of the 5+ HorizontalAxis are shown on the bottom, If I show them all at same time, the chart looks ugly, so I want show only one HorizontalAxis at one time, but use a button to allow user to swith to the next HorizontalAxis. How to do that in MVVM?
  Or is there any better way to show series with different HorizontalAxis?
   
Regards Yang
Petar Marchev
Telerik team
 answered on 31 Mar 2015
4 answers
498 views
I've been reading a bunch of forum posts from 2011 about Multi Select in the ComboBox being on the dev track.

Is it here yet? How can I do multiselect in a RadComboBox (WPF) and read back the selected items in codebehind?

Here is what I have so far (from those old posts)

       <DataTemplate x:Key="RadComboBoxItemTemplate">
            <CheckBox Content="{Binding}"
                              IsChecked="{Binding Path=IsSelected,Mode=TwoWay}"
                              Height="16" HorizontalAlignment="Left" Margin="2"
                              VerticalAlignment="Top" />
        </DataTemplate>
        <DataTemplate x:Key="SelectionBoxTemplate">
            <TextBlock Text="{Binding SelectedItemsText,Mode=TwoWay}" />
        </DataTemplate>
 
 
<telerik:RadComboBox Name="cb_Others"
        ItemTemplate="{StaticResource RadComboBoxItemTemplate}"
        SelectionBoxTemplate="{StaticResource SelectionBoxTemplate}"
        Grid.Column="1" Grid.Row="3" HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch" Margin="3,3,6,3"/>

I load the control in codebehind like this:
cb_Others.ItemsSource = AvailableOthers;  // where AvailablesOthers is a List<string>

This almost works, it displays my items and lets me check the boxes, but I can't figure out how to read the selected items from codebehind.

Help?


Nasko
Telerik team
 answered on 31 Mar 2015
3 answers
301 views

Hi,
Currently we are using a third party controls for generating Diagram (Process Flowchart) within our WPF application.
we are planning to move to your Diagram control to get rid of dependencies on multiple libraries but the only problem that's stopping us is "Export to Visio & PDF Feature is missing from the Diagram control"
Do you have any plans to include these features in your next release Q2 2012


Regards
Manoj

Martin Ivanov
Telerik team
 answered on 31 Mar 2015
1 answer
137 views
I'm working on a demo for our IT dept to see if the Telerik Chart View will meet our needs before we jump on board and purchase.  So I'm currentl working with a trial version.

The attached project has a chart with Year bound to the XAxis and Coverage bound to the YAxis.  I need a tooltip to display the Coverage amount, and the Policy Number, which is another property of the model (along with Coverage and Year).  I can only get tooltips to display values that are bound to the XAxis and YAxis.  When I specify PolicyNumber in the tooltip, the tooltip shows nothing for that property.  I did something in the older RadChart quite easily. 

Any help in how to solve this would be appreciated.  Thanks

FYI, This thread wasn't allowing be t attached a zip file, so I renamed the extension to a jpg.  Hopefully yu can renamed is back to a zip and look at it.
Petar Marchev
Telerik team
 answered on 31 Mar 2015
1 answer
61 views
I want the layouts of some of my RadControls to be persisted in background via a new Thread/Task. The corresponding method is invoked so I can access the control that should be persisted without any error. But I'm always getting an exception at the time I call PersistenceManager.Save(control). Here's my code:

01.// --- Part of CustomRadGradView.cs (inherits from RadGridView) ---
02.
03.// Save this RadGridViews layout in background
04.Task.Run(() =>
05.    {
06.        using (var manager = new CustomPersistenceManager())
07.        {
08.            // this is current RadGridView
09.            manager.SaveLayout(this, file);
10.        }
11.    }
12.}

01.// --- Part of CustomPersistenceManager.cs (inherits from PersistenceManager) ---
02. 
03.// Save a layout of any Telerik control
04.public bool SaveLayout(Control control, string file = null)
05.{
06.    // Current thread has no access to control -> Invoke required
07.    if (control.Dispatcher.CheckAccess() == false)
08.    {
09.        bool result = false;
10.        Application.Current.Dispatcher.Invoke(DispatcherPriority.Normal, new Action(() => result = DoSaveLayout(control, file)));
11.        return result;
12.    }
13. 
14.    // Current thread has access to control
15.    return DoSaveLayout(control, file);
16.}

01.// --- Part of CustomPersistenceManager.cs (inherits from PersistenceManager) ---
02. 
03.// save layout
04.private bool DoSaveLayout(Control control, string file = null)
05.{
06.    // this lines work without any errors so method is invoked correctly; thread has access to control!
07.    string name = control.Name; // returns name of control
08.    control.Name = "New name"; // just for testing
09.     
10.    // Next line always throws an InvalidOperationException
11.    using (var stream = Save(control)) // call save method of Teleriks PersistenceManager class
12.    {
13.        stream.Seek(0, SeekOrigin.Begin);
14. 
15.        using (var reader = new StreamReader(stream))
16.        {
17.            string text = reader.ReadToEnd();
18.            File.WriteAllText(path, text);
19.        }
20.    }
21.}


Can you please provide help why PersistenceManager.Save method is always throwing an exception here? How to use PersistenceManager to save a layout in background/new Task?


Kiril Vandov
Telerik team
 answered on 31 Mar 2015
1 answer
133 views
Hello,

Are there any conditions under which text selection does not work?

I've tried it via the toolbar button command and also via code-behind. Neither way works. As for the toolbar, all other buttons work fine.

Thank you,
Brian
Petya
Telerik team
 answered on 30 Mar 2015
3 answers
399 views
We use RadDocking in our application to show a taskbar on the left and a work area on the right. The XAML for the shell looks like this.

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>

    
<ContentControl Grid.Row="0"
                    prism:RegionManager.RegionName="{x:Static pll:RegionNames.BannerRegion}"
                    VerticalAlignment="Top" />
 
    <telerikDocking:RadDocking Grid.Row="1"
                               Margin="2">
 
        <telerikDocking:RadSplitContainer Orientation="Vertical"
                                          InitialPosition="DockedLeft"
                                          MinWidth="300">
            <telerikDocking:RadPaneGroup>
                <telerikDocking:RadPane CanUserClose="False"
                                        CanFloat="False"
                                        Header="{x:Static resources:Resources.TaskBarPaneHeaderText}"
                                        ContextMenuTemplate="{x:Null}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
 
                        <ContentControl Grid.Row="0"
                                        prism:RegionManager.RegionName="{x:Static pll:RegionNames.TaskBarRegion}" />
 
                        <ContentControl Grid.Row="1"
                                        VerticalAlignment="Bottom"
                                        HorizontalAlignment="Left"
                                        Height="300"
                                        Width="400"
                                        prism:RegionManager.RegionName="{x:Static pll:RegionNames.FooterRegion}" />
                    </Grid>
                </telerikDocking:RadPane>
            </telerikDocking:RadPaneGroup>
        </telerikDocking:RadSplitContainer>
 
        <telerikDocking:RadDocking.DocumentHost>
            <telerikDocking:RadSplitContainer>
                <telerikDocking:RadPaneGroup>
                    <telerik:RadDocumentPane CanUserPin="False"
                                             CanUserClose="False"
                                             CanFloat="False"
                                             PaneHeaderVisibility="Hidden"
                                             TitleTemplate="{x:Null}"
                                             ContextMenuTemplate="{x:Null}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <ContentControl Grid.Row="0"
                                            Margin="2,2,2,2"
                                            prism:RegionManager.RegionName="{x:Static pll:RegionNames.MenuBarRegion}" />
 
                            <ContentControl Grid.Row="1"
                                            Margin="2,2,2,6"
                                            prism:RegionManager.RegionName="{x:Static pll:RegionNames.BreadCrumbRegion}" />
 
                            <ContentControl Grid.Row="2"
                                            Margin="2,2,2,2"
                                            prism:RegionManager.RegionName="{x:Static pll:RegionNames.WorkSpaceRegion}" />
                        </Grid>
                    </telerik:RadDocumentPane>
                </telerikDocking:RadPaneGroup>
            </telerikDocking:RadSplitContainer>
        </telerikDocking:RadDocking.DocumentHost>
 
    </telerikDocking:RadDocking>
</Grid>

In the attached screenshot there appears to be an empty header on the document pane and a thick blue border (blue because of the Telerik Windows8 Theme we use). I have marked them both with a red square.

How can I get rid of them? I don't want the border and the header to be displayed.

Regards,
Peter



Peter
Top achievements
Rank 1
 answered on 30 Mar 2015
1 answer
161 views

<telerik:RadDropDownButton
    VerticalAlignment="Center"
    HorizontalAlignment="Center"
    DropDownOpening="RadDropDownButton_DropDownOpening"
    Content="...">
    <telerik:RadDropDownButton.DropDownContent>
        <TextBlock Text="Sample content" />
    </telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>

private void RadDropDownButton_DropDownOpening( object sender, RoutedEventArgs e )
{
    e.Handled = true;
}

Milena
Telerik team
 answered on 30 Mar 2015
3 answers
121 views
Hi,
I have a bunch of different RadGridViews, and in each RadGridView there are columns containing names. I want these columns to be grouped by first letter - however I want this:

* '\0' and String.Empty and null must be grouped together and showed as String.Empty (or null, the user cannot see the difference).
* Upper case and lower case (such as 'g' and 'G') must be grouped together and showed by the upper case variant.
* Leading spaces, such as in "     Telerik" should be ignored (so "       Telerik" and "Tony" should both be grouped under "T").

Is there any way to do this, without creating a separate FirstLetterInName-property on all my ViewModels that has the Name-property (which is a lot)?

I tried using the GroupHeaderTemplate, but that gets applied after the grouping and only affects the name of the group, not how the grouping is calculated:

 <telerik:GridViewDataColumn x:Name="_contactNameColumn" Width="SizeToHeader"
                                Header="Name"
                                DataMemberBinding="{Binding ContactName}"
                                GroupMemberPath="ContactName[0]"
                                GroupHeaderTemplate="{StaticResource NameGroupTemplate}"/>
Dimitrina
Telerik team
 answered on 30 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?