Telerik Forums
UI for WPF Forum
9 answers
567 views

Hi,

I have a WPF project with a RadTreeView with loadondemand enabled and i want to be able to add/edit/delete item by a RadControlMenu in a mvvm context.
The project sample can be found here https://docs.google.com/file/d/0B6ihaOKSuZdBaHpxUVpPZzgzQ00/edit?usp=sharing. (.NET 4.5 with Telererik Controls Q2 2013). The sample load the folder on C drive for loadondemand but NOTHING is implemented when add/rename action are called (only UI).

1- I have a different behavior between empty/not empty folder. When i set the Expanded property to true in my viewmodel the loadondemand is well fired but when just after i add the new folder in my observablecollection, for empty folder the new folder is not shown (it's like the node is not expanded) and for folder with childs the new folder is well shown. 
   // Expanded = true fire the loadondemand if needed and open the treenode
   if (!this.Expanded) this.Expanded = true;

   // Insert the new newfolder
   // If the folder is empty when added the new folder the node is not show
   // If the folder is not empty, the folder is expanded and the node is show
   FolderWrapper newFolder = new FolderWrapper(new Folder() { Name = "New folder" });
   this._subFolders.Add(newFolder);

2- Like i want a couple less between my viewmodel and view, i use a event to fire the new folder into my view. I use the ExpandToPendingSelection sample (wpf treeview documentation) to select and bring the item into the view. But I don't found the way to set the item in editmode (even if i use a edittemplate). The item is not selected and the focus is always on treeview.

   ExpandToPendingSelection(path.ToString().Split('.'));

   Dispatcher.BeginInvoke(
    (Action)delegate
   {
    var treeViewItem = treeView.SelectedContainer;

    treeViewItem.IsInEditMode = true;

    // Now we can focus, select, edit the item:
    treeViewItem.Focus();
   });

3- When I add a new folder in a not expanded folder near the windows bottom and if the childs node fill the window the item is not bring into view.

Thanks,
Luc

 

 

Tina Stancheva
Telerik team
 answered on 17 Jul 2013
1 answer
63 views
Hellow,
 I build a RadControls WPF Application  in vs2012,but the Mainwindow.xaml is not a Radwindow ,I add a Radwindow and  set up  StartupUri=Radwindow.xaml,it does't work when running,How can I achieve this?
thanks  in advance
Kalin
Telerik team
 answered on 17 Jul 2013
1 answer
101 views
hi,
i could not found something about in the Forum and not in the Help but i try to ask this before starting to build my own one.
Is there a build in Dialog that i can call for dynamic customization of the Ribbon Bar like in Office where the user could cutomize the View itself. Adding new Groups , moving  and  hide controls inside , storing it local .... ?

regards.


Tina Stancheva
Telerik team
 answered on 17 Jul 2013
1 answer
386 views
Hi,

I am using RadGridView to display some data and one of the columns is of type DateTime. Filtering mode is set to FilterRow. How can I filter the column by date range like I can in ASP.NET AJAX RadGrid? 

Changing filtering mode to popup is not an option for me, I need it to be filter row. 

I would also like to know how to hide the filter button and set one default filter function like contains? All of these things can be easily done on web RadGrid, but I am not able to do it with WPF RadGrid.

Thank you,

Patrik
Rossen Hristov
Telerik team
 answered on 17 Jul 2013
2 answers
225 views
Hi,

is there any Example how to use Drag & Drop from DataGrid to Datagrid + From one mvvm to an other mmvm?

Thanks
Regards
ww
Wenjie
Top achievements
Rank 1
 answered on 17 Jul 2013
5 answers
141 views
when my X Axis is of a time int it works perfectly. But when i put it as a string an error occurs("Input string was not in a correct format")

My XAML is like this
<telerik:RadChart Name="radChartCAMois">
                        <telerik:RadChart.SeriesMappings>
                            <telerik:SeriesMapping LegendLabel="Chiffre d'affaire en DT">
                                <telerik:SeriesMapping.SeriesDefinition>
                                    <telerik:Area3DSeriesDefinition/>
                                </telerik:SeriesMapping.SeriesDefinition>
                                <telerik:SeriesMapping.ItemMappings>
                                    <telerik:ItemMapping DataPointMember="XValue" FieldName="IntValue"></telerik:ItemMapping>
                                    <telerik:ItemMapping DataPointMember="YValue" FieldName="StringValue"></telerik:ItemMapping>
                                </telerik:SeriesMapping.ItemMappings>
                            </telerik:SeriesMapping>
                        </telerik:RadChart.SeriesMappings>
                    </telerik:RadChart>

and my code behing is like this
List<MyClass> a = new List<MyClass>{new MyClass{intValue = 1,stringValue = "s1"},new MyClass{intValue = 2,stringValue = "s2"}};
radChartCAMois.ItemsSource = a;

where MyClass is like this
class MyClass
    {
        public int intValue;
        public string stringValue;
    }

Filander
Top achievements
Rank 1
 answered on 16 Jul 2013
1 answer
167 views
If some model property is decorated with [DataType(DataType.Password)] the gridview with autogeneratecolumn = true should have passwordbox ?
Yoan
Telerik team
 answered on 16 Jul 2013
4 answers
176 views
Hi 

this is our customer requirement. I need to remove those options. Is there a way to do that?
Thanks in advance

Fernando
Fernando
Top achievements
Rank 1
 answered on 16 Jul 2013
1 answer
159 views
I have a RadDropDownButton and I want the end user to be able to resize the DropDownContent.

Is this possible?


ta

Ollie
Tina Stancheva
Telerik team
 answered on 16 Jul 2013
1 answer
464 views

The RedComboBox displaying list of items for selection and this list will be empty to start with. If this list is empty, user should see an empty drop down so that the User knows there is nothing to select. With my code below, I just see a small 2 pixel line below combo, this give an impression to user that something is wrong with application. If you use windows provided ComboBox then it will a empty dropdown and we want the same behavior from RedComboBox.

How can I enable dropdown even if there are no items in the list?


<RadComboBox
   HorizontalAlignment="Left"
   Margin="1,1,0,1"
   VerticalAlignment="Center"
   Name="comboname" 
   SelectedItem="{Binding Path=Item, Mode=TwoWay}"
   ItemsSource="{Binding Path= ItemList}"
   IsReadOnly="False"
   EmptyText=" - select an item - "/>
Georgi
Telerik team
 answered on 16 Jul 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
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
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?