Telerik Forums
UI for WPF Forum
1 answer
134 views

Hi all, 

I am facing few issues in command  OpenContextMenuOnNextSpellingErrorCommand. I use this command to find the next word that is spelled wrongly in the document. It works fine as long as the words in the document doesnt contain special characters and keeps finding the next error word in the document. But once if it finds the words contain the special character like (RevPAR), Luto'n or Test$word, it stops finding for the next word in the document and gets stuck.

Is there any way I can fix this please ? We are using telerik version 2014.3.1021.40.

Thanks

A

 

Svetoslav
Telerik team
 answered on 04 Jun 2015
3 answers
737 views
This works with the standard ListBox:
<Window x:Class="WpfApplication1.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
         
        <Grid.Resources>
            <Style  TargetType="{x:Type ListBoxItem}">
                <Style.Triggers>
                    <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                        <Setter Property="Background" Value="LightYellow"></Setter>
                    </Trigger>
                    <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                        <Setter Property="Background" Value="LightBlue"></Setter>
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Grid.Resources>
         
         
        <ListBox ItemsSource="{Binding Path=Items}"
                      AlternationCount="2"/>
         
    </Grid>
</Window>


This does not work with the RadListBox:
<Window x:Class="WpfApplication1.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
         
        <Grid.Resources>
            <Style  TargetType="{x:Type t:RadListBoxItem}">
                <Style.Triggers>
                    <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                        <Setter Property="Background" Value="LightYellow"></Setter>
                    </Trigger>
                    <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                        <Setter Property="Background" Value="LightBlue"></Setter>
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Grid.Resources>
         
         
        <t:RadListBox ItemsSource="{Binding Path=Items}"
                      AlternationCount="2"/>
         
    </Grid>
</Window>


Any ideas?
Geri
Telerik team
 answered on 04 Jun 2015
3 answers
232 views
I'm using Telerik's wpf gantt control and I'm trying to find a way to get dependant task from a specific one.

For example, given Task 2, I need to get a sort of task2.dependant which should be a list or an array with Task 3, Task 4, Task 5, etc.

(see attached screenshot)

but task's dependencies have only a .FromTask property, which in Task 2 case is Task 1

public interface IDependency
{
    // Summary:
    //     Represents the destination task of relation.
    IGanttTask FromTask { get; set; }
    //
    // Summary:
    //     Represents the type of relation between two tasks, such as finish to start,
    //     start to finish, start to start, and finish to finish.
    DependencyType Type { get; set; }
}

Is there an easy way than looping through ALL tasks to find the one
which depend from Task 2 and then looping for that one and so on?
Vladi
Telerik team
 answered on 04 Jun 2015
18 answers
767 views
I require grid lines on my graph. My graph contains multiple y-axis and single x-axis.
I am getting vertical grid lines on my graph but unable to get grid lines horizontally for mapping vertical axis.
Can u help me to get that  grid lines vertically? please provide an example.
sai
Top achievements
Rank 1
 answered on 04 Jun 2015
3 answers
189 views

Hallo everybody,

 I'd like to ask you about copy and paste RadDiagramContainerShape. In my scenario i have to types of containershapes. First is just collapsible container containes one shape displaying some data, 2nd type is using like group (contains other shapes and connections). When i  try copy and paste theese shapes, it creates just blank and empty container with no style and no content. Could you give me please some advice how to handle it?

 

thank you for your approach.

Greetings

Jakub Rautner

Peshito
Telerik team
 answered on 04 Jun 2015
3 answers
105 views

I have been going over the TileView control in the examples and this is what I need.  I am trying to create a project that needs to have that Windows 8.1 feel and the tiles are a great way for this program to look like this.  I would like to set up my program to start with a login, then when approved, display the tiles for the steps that need to be done to gather the data.  Each tile will represent a single page on a nine page report that will require data to be input.  The report looks like the spreadsheet control.  When all the data has been entered and validated, the users could shrink the tile or just open the next one.  If the data is complete and validated then I would like an icon in the tile header to indicate that page of the report is done and validated.  Once all the data is entered and validated, I would then save the data to a local text file that would be processed when the program goes online. 

Any help is appreciated.

John
Top achievements
Rank 1
 answered on 03 Jun 2015
1 answer
122 views
Dear All;
 
I tried a radial menu and it's working ok, but i failed to pass parameter from a textblock value using 


CommandParameter



when i pass static text, it's working, not when using a value from the textblock
my code is

1.<TextBlock x:Name="txtTest" Canvas.Left="83" TextWrapping="Wrap" Text="Hello" Canvas.Top="19"/>      
2.            <Primitives:RadRadialMenu x:Name="mnuShops" Height="108" Width="102"  RenderTransformOrigin="0.506,0.494" Canvas.Top="-126" Canvas.Left="-132" FontSize="16">
3.                <Primitives:RadialMenuItem x:Name="radialMenuItem" Header="FirstNode"  Command="{Binding FirstCommand, Source={StaticResource Commands}}" CommandParameter="{Binding Text, ElementName=txtTest}"/>
4.                <Primitives:RadialMenuItem Header="Second Node"/>         
5.            </Primitives:RadRadialMenu>
Nasko
Telerik team
 answered on 03 Jun 2015
1 answer
263 views

I've been using the RadTileList for a while and I've not noticed this behaviour with the previous releases (thought I may have just not noticed). However I'm really struggling to deselect a tile after a user clicks on it.

In my main app when a user selects a tile it normally triggers a change to the viewmodel and another view is presented. When I then go back to the main view no tiles are selected, which is as desired.

But I have a tile that triggers a background process, spawns another window and makes the tile disabled. It still show selected though. When the process finishes the tile is enabled again, but it's still selected. The enable/disable is done by a viewmodel binding, so it's all automatic.

In my app I've just been setting the SelectedItem to null and it's appeared to behave how I want. I've just created a brand new project and tried to get the deselection working in isolation and I just cannot get it to deselect. 

 This is the WPF:

<telerik:RadTileList HorizontalAlignment="Left" Margin="105,113,0,0" VerticalAlignment="Top" SelectionChanged="RadTileList_SelectionChanged">
    <telerik:Tile x:Name="TileA" Background="#FFC71D1D">
        <TextBlock Text="Tile A"/>
    </telerik:Tile>
 
    <telerik:Tile x:Name="TileB" Background="#FF3FB812">
        <TextBlock Text="Tile B"/>
    </telerik:Tile>
    <telerik:Tile x:Name="TileC" Background="#FF2439BF">
        <TextBlock Text="Tile C"/>
    </telerik:Tile>
</telerik:RadTileList>

 This is the code in the .cs file: 

private void RadTileList_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
    if (e.AddedItems.Count > 0)
    {
 
        var theTiles = sender as RadTileList;
 
        if (theTiles.SelectedItem == TileA)
        {
            //do some stuff here
        }
 
        if (theTiles.SelectedItem == TileB)
        {
            //do some stuff here
        }
 
        theTiles.SelectedItem = null;               
    }
}

 

In my app the tile just doesn't get deselected, but in this demo I end up in an infinite loop, where the SelectionChanged event is constantly triggered.

I figure I must be doing something pretty wrong for this not to work.

Any clues? or indeed how I should automatically deselect the item?

BTW: I've looked at removing the styling for the selection, but it is still actually selected so the user has to click several times for it to silently deselect then select again, which isn't desirable.

 

 

 

 

 

 

 

 

Maya
Telerik team
 answered on 03 Jun 2015
3 answers
145 views

Hi,

 

I'm using the latest version of Telerik and the Office2013 theme and when I set the IsReadOnly = True, the border become hidding. I would like to set a specific color when a control become ReadOnly.

 

Thank's

Alain

Dimitrina
Telerik team
 answered on 03 Jun 2015
6 answers
266 views

while editing treeview,if I Edit(give) duplicate name it should return oldname for selected node. 

please help me how to fix.

Regards,

Ranjith

 

 

Martin Ivanov
Telerik team
 answered on 03 Jun 2015
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
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?