Telerik Forums
UI for WPF Forum
2 answers
224 views
Hi There

We basically require that the user can select a value in the combo that sets the bound value to null, ie "Nothing Set"

From some reading I have found that the ClearSelectionButtonVisibility property should be able to do this yet with the code below, there is no difference to the drop down items.

<telerikInput:RadComboBox Width="200" HorizontalAlignment="Left" VerticalAlignment="Center"
                ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Nothing Set"
                Margin="3" SelectedValuePath="contact_id" DisplayMemberPath="FullName" ItemsSource="{Binding AllCustomerContacts}"
                SelectedValue="{Binding contact_id, Mode=TwoWay, ValidatesOnExceptions=True,
                ValidatesOnDataErrors=True, NotifyOnValidationError=True}" />


Please Help.

Nick
Nick Wood
Top achievements
Rank 1
 answered on 25 Aug 2010
5 answers
182 views
I am looking for a drag and drop sample for that allows me to reoorder items within a single RadGridView. Many of the examples posted previously are outdated and raise exceptions. The version I am using is 2010.2.812.

I have have tried to adapt the example given for silverlight here: http://www.telerik.com/help/silverlight/raddraganddrop-within-radgridview.html. The functionality is exactly what I am looking for, however I need a WPF version.

Each item contained wihtin the collection bound to the RadGridView has a property, of type int, named Position. In addition to the above, where and how can I update the Position property of the items in the collection once the drop has occurred so that I can get these objects to persist their position change?
David
Top achievements
Rank 1
 answered on 25 Aug 2010
7 answers
241 views
Hi,

I've added 7 images to my RadCarouselPanel, as children.

From the MouseLeftButtonUp event, how can I get the selected item (not only the top container, I want to know the currently selected item on the panel)?

Thanks
Ela
Milan
Telerik team
 answered on 24 Aug 2010
2 answers
136 views
I have a very large dataset I'd like to use DataFilter for. I currently have a DataFilter, a DataPager, and a GridView set up with the DataPager source set to the FilteredSource and the GridView ItemsSource set to the PagedSource. For reference I've also tried it the other way where I've tied the GridView to the FilteredSource and the Source for the DataPager to the GridView Items.

Both ways work as far as filtering and paging the data.

The problem arises when I want to know what the filtered data set is. I want to display a count to the user of how many items are currently in the set and when they are done filtering I need to grab all of the filtered items and do something with them.

I've found if I access the FilteredSource and get a count, I only have 10 items (which is my page size). So it seems no matter when I try to get to the filtered set of items I only get the current page.

How can I get access to both a current count and the full set of items in this scenario?
Alex Peachey
Top achievements
Rank 1
 answered on 24 Aug 2010
5 answers
287 views
Hi everyone,

We're trying to add a menu that looks like the context menu in one of the docking panels in our application. In order to get an idea of what we're trying to achieve, think of it like this - when you click on a drop down button and get a context menu you essentially get a list of action that you can execute. We want this list of actions to appear on the left side of our application without requiring the clicking of any button or menu. So, we did this:

<telerik:RadPane CanUserClose="False"
<telerik:RadContextMenu ItemsSource="{Binding AllItems}" Height="200"
    <telerik:RadContextMenu.ItemTemplate> 
        <DataTemplate> 
            <telerik:RadMenuItem  
                Header="{Binding Title,Mode=OneWay}" 
                Command="{Binding ShowTask}" 
                /> 
        </DataTemplate> 
    </telerik:RadContextMenu.ItemTemplate> 
</telerik:RadContextMenu> 
</telerik:RadPane> 

The menu appears and is functional, however the text gets cut off after roughly 100 pixels. 

Anyone familiar with this behavior? Any solution to this or another way to achieve a similar effect?

Thanks,
yonadav
Pana
Telerik team
 answered on 24 Aug 2010
1 answer
140 views

Hi,

I have hashtable that contain wpf and telerik controls, and I need to serialize it to xml file. I found this code for wpf controls:

string savedButton = XamlWriter.Save(origianlButton);
File.WriteAllText(@"C:\test.xml", savedButton);

but it doesn't work for telerik controls, it stuck and I get this error:

An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

Is there any other way to do that?
Thanks in advance.

Vanya Pavlova
Telerik team
 answered on 24 Aug 2010
1 answer
95 views
Hi,

I'm using a custom filter row similar to the one shown in the examples.

If I change a value within a cell and then immediately change the filter criteria of the corresponding column the change of the value is lost. I think the reason for this is that the edit mode is not left when the cell loses focus (see attached screen shot). The issues can be reproduced with the examples application.

Any suggestions?

Regards Uli

Yavor Georgiev
Telerik team
 answered on 24 Aug 2010
0 answers
133 views
Hi,

I'm using the RadCarousel, with 7 Images as carousel items. How can I change the image source of the selected carousel item at runtime? For example, I want to open the carouselitem 1 with image A. Later, when the user clicks on the item 1 (and it becomes the Top item), I want to set image B to that item.

Thanks
Ela
Ela
Top achievements
Rank 1
 asked on 24 Aug 2010
1 answer
116 views

I have a RadPanelBar with two RadPanelBarItems. I would like to keep these two items in expanded form all the time. I’m also adding RadPanelBarItems programmatically and would like to Collapse only the new items that were added. How can I keep the first two items expanded?

Thanks
RJ

Viktor Tsvetkov
Telerik team
 answered on 24 Aug 2010
2 answers
75 views
i'm trying to do as the second example in here, but with no luck.

i have an x axis that is of type xcategory,
y1 that is of type yvalue,  
y2 that is of type yvalue and
group of type xcategory (that contains 2 categories)
the legend display the following: 
y1 
y1
y2
y2
i would like the legend to display the y axis with the appropriate xcategory:
y1 category 1
y1 category 2
y2 category 1
y2 category 2
is it possible???
Rachel
Top achievements
Rank 1
 answered on 24 Aug 2010
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
PersistenceFramework
DataPager
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?