Telerik Forums
UI for WPF Forum
6 answers
269 views
Hi

I would like to avoid deselecting currently selected shape while clicking on the diagram.
When you click on the diagram, out of a shape, the currently selected shape is deselected.
I couldn't find a way to configure or do that.
Thanks for your help.

Cheers
Laurent Kempé
Laurent Kempé
Top achievements
Rank 2
 answered on 07 Jan 2013
3 answers
385 views
I have created a RadPanelBar with two items. I want the DefaultItem to be selected by default. How can I do that dynamically?
Below is the xaml code for RadPanelBar

<
telerik:RadPanelBar x:Name="mybar" Width="252" Height="500" HorizontalAlignment="Left"  VerticalAlignment="Top" ExpandMode="Single" Margin="0,58,0,0" SelectedItem="{Binding PanelBarItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
                <telerik:RadPanelBarItem x:Name="DefaultItem" >
                    <telerik:RadPanelBarItem.Header>
                        <TextBlock Text="Default Item" />
                    </telerik:RadPanelBarItem.Header>
                </telerik:RadPanelBarItem>
                <telerik:RadPanelBarItem x:Name="ExpandItem" >
                    <telerik:RadPanelBarItem.Header>
                        <TextBlock Text="Expand Item" />
                    </telerik:RadPanelBarItem.Header>
 
                    <ListBox Height="200" Margin="1,17,1,143" ItemsSource="{Binding TList}" BorderBrush="Transparent" BorderThickness="0"  SelectedItem="{Binding SelectedTool, Mode=TwoWay}"
                             >
                    </ListBox>
                </telerik:RadPanelBarItem>
 
            </telerik:RadPanelBar>

I also want the first item in the TList to be selected by default when ExpandItem is selected. Please help with this. 
Thanks in Advance 
Tina Stancheva
Telerik team
 answered on 07 Jan 2013
4 answers
133 views
Hello,
Is there a way to allow user input into AutoCompleteBox (text that is not in the list)?
Jasna
Top achievements
Rank 1
 answered on 07 Jan 2013
1 answer
589 views
Is there a way to get the current Text of the RadAutoCompletBox?  It appears to me that you currently need to bind to both SearchText and Selected Item which doesn't feel right to me.  Here is an example of my xaml

<telerik:RadAutoCompleteBox SelectionMode="Single" 
                                    ItemsSource="{Binding Items}" 
                                    SearchText="{Binding SearchText, Mode=TwoWay}" 
                                    SelectedItem="{Binding SelectedItem, Mode=TwoWay}" />

Items is just a List<string>

Say for instance we are looking for the string "telerik".  I type in "te" then hit tab key, the autocompletebox text is telerik.. however if i look at the SearchText it is just "te" and the SelectedItem is telerik.  Which leads me to have to check if SelectedItem is null then use SearchText else use SelectedItem.  Am i missing something here?  Seems like i should be able to just bind to the Text.

I am currently using RadControls for WPF v.2012.1224.40 (Dev)
Vladi
Telerik team
 answered on 07 Jan 2013
1 answer
229 views
Hi,

I am having difficulties in specifying the Expression property of the GridViewExpressionColumn in Xaml.
I have this column that I want to turn into a expression column :
<telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Attributes.[PERCEELID]}" Header="PerceelId" DataType="{x:Type sys:Int32}" />
First step, make ik a GridViewExpressionColumn :
<telerik:GridViewExpressionColumn UniqueName="Opp" Header="Oppervlakte (ha)" Expression="Attributes[&quot;PERCEELID&quot;]" />
So far so good, this still displays the same result as my original column (nothing calculated so far).
But as soon as I want to do something with this value, nothing is shown and I receive errors in the output window.
This is about the simplest expression I can think of (multiplying by 2) :
<telerik:GridViewExpressionColumn UniqueName="Opp" Header="Oppervlakte (ha)" Expression="Attributes[&quot;PERCEELID&quot;] * 2" />
The column stays empty and the outpunt window shows :

A first chance exception of type 'System.ArgumentException' occurred in System.ComponentModel.DataAnnotations.dll

A first chance exception of type 'System.InvalidOperationException' occurred in System.Core.dll


I have tried to explicitely cast my value first before multiplying (Convert.ToInt32(Attributes[&quot;PERCEELID&quot;]) * 2); but no success.

If I do the same in code-behind, there is no problem :
    Expression<Func<Graphicdouble>> expression = g => (int)g.Attributes["PERCEELID"] * 2;
    var c = this.GevondenPercelenDataGrid.Columns["Opp"as GridViewExpressionColumn;
    c.Expression = expression;


The ToString() of this expression yields:

"g => Convert((Convert(g.Attributes.get_Item(\"PERCEELID\")) * 2))"

Using this string as value for "Expression" in the xaml is no solution either.





Can anyone give me some tips on building expressions in xaml ?



 





Kind regards,



















Martin



Rossen Hristov
Telerik team
 answered on 07 Jan 2013
3 answers
184 views

I have a RadCombox with IsFilteringEnabled =True and CanAutocompleteSelectItems = False
When I open the drop down, I can starting typing in the text box to filter the listing but nothing is selected until I press enter. If I decide to cancel the filtering by closing the drop down, the text that I typed stilled remains.

How can I get the text to revert back to the selected item?
I tried UpdateTarget in the code-behind but since the selection has not changed, this had no affect.

Yana
Telerik team
 answered on 07 Jan 2013
22 answers
538 views
I have a RadDatePicker in which I set IsTabStop="True" and TabIndex=4.
However, this does not work the way I expected it to.
As TabStop #4 The whole RadPicker is selected - and I can no "do" anything but move on - there's no way to type text in the TextBox or open the picker dialog.
However at the end of my hand-set-tab-order the tab jumps into the the RadDatePicker-TextBox to edit the date.

How can I make the RadDatePicker-TextBox be part of my TabOrder ??

I am using the RadControls for wpf 2009.Q2

yours,
Nils
Boyan
Telerik team
 answered on 07 Jan 2013
3 answers
326 views
Hi,

since my last Update with the "TelerikControlPanelSetup_2012_2_718", one menue item is missing im my visual studio 2010!
How can i restore it?

Missing Item:

Telerik - RadControls for WPF

Thanks
Best Regards
Rene
ITA
Top achievements
Rank 1
 answered on 07 Jan 2013
4 answers
164 views
I rebuilt my system and installed the latest controls I have access to:
RadControls_for_WPF_2012_2_0607_Dev.msi

However, the documentation is not installed even though it says it is. I don't see in the program files folder and it's not in the MSDN help collection. I download the zip file instead and there's no help files in there.

I downloaded help files from here:
http://www.telerik.com/documents/RadControlsForWpf-help3.zip

But no documenation appeared in MSDN. However my VS2008 MSDN no longer works after that:
"Microsoft Document Explorer cannot be shown because the specified help collection 'ms-help://MS.MSDNQTR.v90.en' is invalid."

The 'View_RadControls.For.WPF' shortcut does show the docs but not in the merged help. Please help. I don't recall having this issue with previous version. I have VS2008 and VS2010, although I only use 2008 for compact framework projects.
Andrey
Telerik team
 answered on 04 Jan 2013
1 answer
181 views
Hi,

I have two questions for the spell checker used in Radgrid view.

1. Is there anyway that it automatically shows the red wavy (a red curve line) under a incorrect word in the edit mode? I read the
documentation, the RichTextBox has this support, can we do that for the gridView columns?
2. If yes for 1, myy columns are generated dynamically with MVVM (Caliburn Micro), any sugestions to add the above
supports in code (for instance, add it in the grid columns)?

Thanks in advance.

Henry
Petya
Telerik team
 answered on 04 Jan 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
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?