Telerik Forums
UI for WPF Forum
4 answers
279 views

Hello Team,

I am facing one issue while using RadAutoCompleteBox. Wrong mouse cursor is displayed when we type any text in the text box and list is shown.

Please refer attached screen shot for your reference.

 

Please let me know if you need any details futher.

 

Thanks,

Ganesh Sahastrabuddhe

Ganesh
Top achievements
Rank 1
 answered on 06 Nov 2017
0 answers
164 views

Hello Team,

 

Using RadAutoComplete textbox, we are tying to achieve functionality similar to Google search.

We are facing one issue with capital letters.

When we are typing capital letter which is present in the list, the letters are not shown in Capital case, rather they are shown in small case.

I have attached videos, one is of Google, the functionality which we are tying to achieve and second is of the issue. Attached files are jpg, please rename those to mp4.

 

Thanks,

Ganesh Sahastrabuddhe

Ganesh
Top achievements
Rank 1
 asked on 06 Nov 2017
4 answers
420 views

Hello,

 

I am working on a diagram generator which I would like to make every connection path very obvious using AStarRouter. But the problem I have is connections lines overlaps in some scenarios and I have no control preventing them. See the attached CurrentResult.jpg. I would like to prevent them overlapping as the ExpectedResult.jpg

 

Thanks in advanced!

Amiel
Top achievements
Rank 1
 answered on 03 Nov 2017
6 answers
219 views

Hi,

I am working on some requirement where I have hierarchical data(attached sample XML) to represent in a tree view(almost like tree view, attached sample) with customizing lines between the nodes and on-demand expansion/collapse features. I am new to WPF UI, please help me kick start my implementation by providing a sample project with the attached samples as reference. Thanks in advance. 

<root>
      <system name="a" id="1" img-src="">
             <sub-system name="a1" label="a1" id="101">
                        <component name="a1.1" label="a1.1" id="1100">
                               <test name="a1.1.1" label="a1.1.1" id="1101" />
                               <test name="a1.1.2" label="a1.1.2" id="1102" />
                               <test name="a1.1.3" label="a1.1.3" id="1103" />
                                <test name="a1.1.4" label="a1.1.4" id="1104" />
                               <test name="a1.1.5" label="a1.1.5" id="1105" />
                               <test name="a1.1.6" label="a1.1.6" id="1106" />
                         </component>
                          <component name="a1.2" label="a1.2" id="1200">
                                <test name="a1.2.1" label="a1.2.1" id="1201" />
                                <test name="a1.2.2" label="a1.2.2" id="1202" />
                                <test name="a1.2.3" label="a1.2.3" id="1203" />
                                <test name="a1.2.4" label="a1.2.4" id="1204" />
                                 <test name="a1.2.5" label="a1.2.5" id="1205" />
                          </component>
                     </sub-system>
                    <sub-system name="a2" label="a2" id="201">
                            <component name="a2.1" label="a2.1" id="2100">
                                   <test name="a2.1.1" label="a2.1.1" id="2101" />
                            </component>
                            <component name="a2.2" label="a2.2" id="2200">
                                     <test name="a2.2.1" label="a2.2.1" id="2201" />
                            </component>
                            <component name="a2.3" label="a2.3" id="2300">
                                     <test name="a2.3.1" label="a2.3.1" id="2301" />
                            </component>
                            <component name="a2.4" label="a2.4" id="2400">
                                     <test name="a2.4.1" label="a2.4.1" id="2401" />
                                     <test name="a2.4.2" label="a2.4.2" id="2401" />
                                     <test name="a2.4.3" label="a2.4.3" id="2401" />
                                     <test name="a2.4.4" label="a2.4.4" id="2401" />
                             </component>
                      </sub-system>
                      <sub-system name="a3" label="a3" id="301">
                             <component name="a3.1" label="a3.1" id="3100">
                                     <test name="a3.1.1" label="a3.1.1" id="3101" />
                             </component>
                             <component name="a3.2" label="a3.2" id="3200">
                                     <test name="a3.2.1" label="a3.2.1" id="3201" />
                             </component>
                      </sub-system>

               </system>
          </root>

 

 

Thanks,

Cha

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Nov 2017
1 answer
105 views
Hi,
I have an object data source which is returning among other things, a list of bitmap images. I can see this object in the Data Explorer plain. They are however a vast array of properties from which to choose from, but no actual image. For example, DpiX, DpiY, Width, Height, but no actual image from which I can drag and drop onto my picture box. I can't find any online examples on how to do so. The applications intended use should populate the report with an array of images when clicked on from a wpf desktop application. Can anybody point me in the correct direction, perhaps with some screenshots or examples? Thanks in advance.

Kind regards,
David
Dilyan Traykov
Telerik team
 answered on 03 Nov 2017
1 answer
228 views

Hi,

I have an object data source which is returning among other things, a list of bitmap images. I can see this object in the Data Explorer plain. They are however a vast array of properties from which to choose from, but no actual image. For example, DpiX, DpiY, Width, Height, but no actual image from which I can drag and drop onto my picture box. I can't find any online examples on how to do so. The applications intended use should populate the report with an array of images when clicked on from a wpf desktop application. Can anybody point me in the correct direction, perhaps with some screenshots or examples. Thanks in advance.

 

Kind regards,

David

Dilyan Traykov
Telerik team
 answered on 03 Nov 2017
7 answers
1.0K+ views

The items shown in my grid have properties of the type

public class CheckerProperty
{
  ...
  public object Value { get; private set; }
  public bool Changed { get; private set; }
}

(So there is an itm.Status property of type CheckerProperty and a itm.Diameter of type CheckerProperty etc.) The Value should be shown, and when the Changed property is true, the background should have a different colour.

Since there are a lot of diferent properties and I would like to have a single style that handles the background change. Something like:

<Style x:Key="stlChangeCheckerProp" TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellStyle}">
    <Setter Property="telerik:GridViewCell.Background" Value="Transparent" />
    <Style.Triggers>
        <DataTrigger Binding="{Binding RelativeSource={x:Static RelativeSource.Self}}" Value="True">
            <Setter Property="telerik:GridViewCell.Background" Value="{StaticResource brChange}" />
        </DataTrigger>
    </Style.Triggers>
</Style>

I'm struggling with the binding. How can I bind to the Changed property of the cell's value? It seems when I use RelativeSource, as in this example, I get the GridViewCell itself. When I use no RelativeSource, I get the item itself and I don't know which property (Status, Diameter etc.) is being displayed.

How can I set up the binding correctly?

Boardy
Top achievements
Rank 2
Veteran
Iron
 answered on 03 Nov 2017
4 answers
378 views

Is there a problem with RowSpan support in RadAutoCompleteBox class? The vertical scroll bar doesn't seem to extend all the way.

Try this out with your "Highlight Matching Items Text" example in your samples browser software.

Add new row to the grid:

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

 

Then set RadAutoCompleteBox object's RowSpan to 2:

Grid.RowSpan="2"

 

Then subscribe to Loaded event in Example.xaml.cs:

public Example()
{
    InitializeComponent();
 
    AutoComplete.Loaded += AutoComplete_Loaded;
}
 
private void AutoComplete_Loaded(object sender, RoutedEventArgs e)
{
    RadWatermarkTextBox watermark = (sender as RadAutoCompleteBox).ChildrenOfType<RadWatermarkTextBox>().FirstOrDefault();
    if (watermark != null)
    {
        watermark.AcceptsReturn = true;
        watermark.TextWrapping = TextWrapping.Wrap;
        watermark.VerticalAlignment = VerticalAlignment.Center;
        watermark.VerticalScrollBarVisibility = ScrollBarVisibility.Visible;
    }
}

 

Then run the example and you see how the scroll bar is only the height of the first row. It grows when you type text with new rows. Doesn't look good if you want to always show the vertical scroll bar (disabled when not enough text to scroll).

Haven't tested this with horizontal scroll bar.

By the way, is there a way to configure the RadAutoCompleteBox object to use textwrapping in XAML. I only found the above way by googling and I'd like not to use events. Handled with extending the class and subscribing to the event in the extended class' code.

Stefan
Telerik team
 answered on 01 Nov 2017
1 answer
409 views

I'm using RadGridView with RowDetailsTemplate. I'm using the MVVM Light toolkit and everything works fine with updating values in the RowDetails if I were to click a button in the parent row. RaisePropertyChanged works great, values in the RowDetail updates as expected. The problem I'm seeing and I don't think this control is going to work how I'd like to is what if I click a button in the parent row that changes the number of rows in the RowDetailsTemplate. I change the collection that the RowDetailsTemplate is bound to but it's not redrawing correctly. Instead of displaying the new set of rows it just deletes all rows and ends there. Is there a way to force the RowDetailsTemplate to redraw? I read somewhere that the LoadingRowDetails event is only raised once but in this case, changing the collection should be enough to force the detail rows to redraw. Or at least that's what I would think.

Thanks

Craig

Craig
Top achievements
Rank 1
 answered on 01 Nov 2017
6 answers
430 views

Hi,
the application is based on MVVM using Prism with MEF.
I have converted  windows tree view control to Telerik RadTreeview control. everything worked fine except that the ItemContainerStyle defined is somehow disabling the tree to be shown.  if I remove the ItemContainerStyle from the Radtreeview the tree becomes visible but with not styling.
 by using the windows treeview with same ItemcontainerStyle work fine.
Following is the code.

<uxc:UxtWindow.Resources>
 <HierarchicalDataTemplate x:Key="SiteWizardTemplate" 
                                  ItemsSource="{Binding Steps}" >
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding DisplayAs}" />
            </StackPanel>
        </HierarchicalDataTemplate>
    </uxc:UxtWindow.Resources>
  
 <telerik:RadTreeView  IsVirtualizing="True"
                         ItemsSource="{Binding Wizard.WizardSections}" 
                          ItemTemplate="{StaticResource SiteWizardTemplate}"                                          
                               PreviewMouseDown="TreeView_PreviewMouseDown" >
                            
                               <telerik:RadTreeView.ItemContainerStyle>
                                <Style TargetType="{x:Type telerik:RadTreeViewItem}">
                                    <Setter Property="FontSize" Value="18" />
                                    <Setter Property="FontStyle" Value="Italic" />
                                    <Setter Property="Margin" Value="0,5,0,10" />
                                    <Setter Property="Foreground" Value="Black" />
                    </telerik:RadTreeView.ItemContainerStyle>
                      
                            
</telerik:RadTreeView>
Martin Ivanov
Telerik team
 answered on 01 Nov 2017
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?