Telerik Forums
UI for WPF Forum
1 answer
58 views

Hi, 
I am using the structure below to get a pane that under it there is myUserControl1
                          
The UI will look like this:
 _______________
| my                        |
| UserContol1         |
|_______________|

The code:

<telerik:RadSplitContainer x:Name="myContainer">
    <telerik:RadPaneGroup x:Name="myPaneGroup">
        <telerik:RadPane  Header="pane 1" >
            <MyUserConrol myUserControl1="test test" />
        </telerik:RadPane>
    </telerik:RadPaneGroup>
</telerik:RadSplitContainer>

The issue:
I have a button that should change Dynamically the number of my userControl - for 

example 4 userComtrols .i want to get this. (each userControl should be set under the same structure code that was describe before)

________________
| UC1      |  UC2     |              4 user controls
|_______|_______|
| UC3      |     UC4  |
|_______|_______|

code: (should be Dynamically )

<telerik:RadSplitContainer x:Name="myContainer1">
    <telerik:RadPaneGroup x:Name="myPaneGroup1">
        <telerik:RadPane  Header="pane 1" >
            <MyUserConrol myUserControl1="test test" />
        </telerik:RadPane>
    </telerik:RadPaneGroup>
</telerik:RadSplitContainer>

<telerik:RadSplitContainer x:Name="myContainer2">
    <telerik:RadPaneGroup x:Name="myPaneGroup2">
        <telerik:RadPane  Header="pane 2" >
            <MyUserConrol myUserControl2="test test" />
        </telerik:RadPane>
    </telerik:RadPaneGroup>
</telerik:RadSplitContainer>

 

and the same for 3 and 4..

for example 2 userComtrols) 
________________
| UC1       |     UC2  | 
|               |              |
|               |              |
|____ ___|_______|

what is the best way to achieve it?

thanks

Nasko
Telerik team
 answered on 06 Jul 2016
3 answers
348 views

Hi,

I have a source with ~270 items which I want to display in treeview and rendering of this list takes 1-2min. This is very slow, and I believe that using a virtualization should take care of that but it seems not. Also, I see same performance either with  IsVirtualizing="True" or "False". As you can see, I also put additional properties, but without success. Another observation is that once items are displayed, there is additional time before UI unfreeze.

This is xaml for treeview.

<telerik:RadTreeView x:Name="treeView"
ItemsSource="{Binding HierarchyFolderList}"
ItemTemplateSelector="{StaticResource FolderTemplateSelector}" 
AllowDrop="True" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
Margin="5"
IsDropPreviewLineEnabled="False"
IsVirtualizing="True"
telerik:TreeViewPanel.IsVirtualizing="True"                                  telerik:TreeViewPanel.TreeVirtualizationMode="Hierarchical"  telerik:AnimationManager.IsAnimationEnabled="False"                             telerik:TreeViewPanel.VirtualizationMode="Hierarchical">
</telerik:RadTreeView>

Thanks!

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Jul 2016
1 answer
67 views

When SelectionMode=Extended.

I'm using a RadTileView with multiselection turned on, and when I programmatically change the SelectedItems in the view, the view becomes focused and of course steals focus away from the other control that the user is on. That is... well, I'm trying to understand why you would even do that, and why only for the Extended mode.

(I know now that repro-ing issues seems to be difficult at times, so here is the relevant code I found in ILSpy and with a simple GotFocus hook on the RadTileView:

 

// Telerik.Windows.Controls.RadTileViewItem
protected virtual void OnIsSelectedChanged(bool oldValue, bool newValue)

{

   ...

   if (newValue && this.ParentTileView != null && this.ParentTileView.SelectionMode == SelectionMode.Extended)
   {

            // REALLY BAD IDEA

-->       base.Focus();
-->       this.ParentTileView.ContainerToFocus = this;
   }

   ...

}

Anyway, it "looks" like I can derive from RadTileView and then derive from the RadTileViewItem class and then override that method and call base with newValue = false, but I have yet to try. Still, not ideal.

 

PaulR
Top achievements
Rank 1
 answered on 06 Jul 2016
2 answers
124 views

We are using a custom provider to display data. Tiles are created on the fly and it works well. We now want to add the ability to "play back" this data as it was captured from the device. This is basically the same concept as viewing real-time data, since the data will be trickling in, not all available at once.

I was thinking to use the UriImageProvider with an image the same size as the map window. I would update the image file as time goes on, when the zoom level changes, and when the user pans the map. Is this feasible or is there a better way? Will the map automatically update if the file changes?

Jason D
Top achievements
Rank 1
Veteran
 answered on 05 Jul 2016
22 answers
834 views
Hi,

I am in the process of evaluating the Telerik controls for WPF.
I was trying to get following functionality : a kind of dropdown list with autocomplete functionality where the list opens when the control gets the focus, and the list is filtered dynamically as soon as the user starts typing. When the control loses focus and the user has not yet selected an item, then the first item in the list should be selected.
I have tried both autocompletebox and combobox, and in fact what I have in mind is a combination of both.
In the case of an autocompletebox
 - I don't see the list on focus (the user has to type something)
 - when leaving the box (ie pressing enter or tab) the first item in the list is not selected
 - Suggest and SuggestAppend don't seem to work (and I don't see any difference between them), itemis not automatically selected
 - I don't see a way to restrict the text to items in the list
In the case of a combobox :
 - I have no watermark text
 - the list does not shrink when typing (which makes "contains" mode not very useful)

Kind regards,

Martin
Vinod
Top achievements
Rank 1
 answered on 05 Jul 2016
1 answer
95 views
when press tab  the cursor is at the beginning of the text ,

but after changed the text and then press tab  the cursor is at the endding of the text

how to set cursor to the text endding when tab
Stefan
Telerik team
 answered on 05 Jul 2016
1 answer
281 views

I have a need to get the current style of a document. The GetCurrentSpanStyle method of RadRichTextBox is protected, so I cannot use this. The only way that I have been able to get the current style is to create a override of RichTextBoxCommandBase for this purpose.

public class GetCurrentSpanStyleCommand : RichTextBoxCommandBase
{
    public GetCurrentSpanStyleCommand(RadRichTextBox editor) : base(editor)
    {
    }
 
    protected override void ExecuteOverride(object parameter)
    {
 
    }
 
    public Span ExecuteGetCurrentSpanStyle()
    {
        return base.GetCurrentSpanStyle();
    }
}

Is there a better way to do this?

Tanya
Telerik team
 answered on 05 Jul 2016
4 answers
304 views
I've created a class inheriting from RadPane, and I'm binding a list of istances of this class to the ItemsSource property of the RadDocking. If I add elements to the list and then update (fire the PropertyChanged event for the property) it works great, but it crashes when I try to delete an element from the collection and then refresh the property.

If I create a custom factory for the control and I override the RemovePane method, I get null pointers when the method is called.

Has somebody any idea of what I am doing wrong? I can provide a sample if needed.

Thanks!
Tobias
Top achievements
Rank 1
 answered on 04 Jul 2016
1 answer
94 views
Hallo,
We look for a component package in WPF for new ERP system. We want thin desktop and web client. 
Now I analyze data binding of component for pivot table. 
You have it perfectly solved in web package Kendo UI (http://demos.telerik.com/kendo-ui/pivotgrid/index). A next data are loaded only if user expands next level. Can I achieve this behavior in WPF? 
In your WPF trials it seems that all data are loaded once and while expanding these are only shown. I try XmlaDataProvider (demo XmlaStyleRaggedHierarchies) and I defined expand behavior for collapse all levels.
Polya
Telerik team
 answered on 04 Jul 2016
1 answer
64 views

I need to limit available weekdays to select in Telerik WPF RadDatePicker. This RadDatePicker is in column of Telerik WPF RadGridView. Configuration of weekdays available to select should be different for each row.

I've created model with available weekdays configuration, but I don't know how to simply attach such functionality to RadGridView.

Thanks in advance for any help.

I need to limit available weekdays to select in Telerik WPF RadDatePicker. This RadDatePicker is in column of Telerik WPF RadGridView. Configuration of weekdays available to select should be different for each row.

I've created model with available weekdays configuration, but I don't know how to simply attach such functionality to RadGridView.

Thanks in advance for any help.

Dilyan Traykov
Telerik team
 answered on 04 Jul 2016
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?