Telerik Forums
UI for WPF Forum
1 answer
217 views
Hi there,

I am busy evaluating Telerik's WPF controls and came to a bit of a road bump I hope you can help.
I am trying to Drag and Drop from a ListBox (this will eventually be a RadPanelBar) to a re-hosted Workflow 4.0 Designer (It's a WPF control as well). 

I have got this working with the normal WPF drag and drop implementation for example.
Type type = ((AvailableActivity)(((ListBox)sender).SelectedItem)).Type; 
DataObject data = new DataObject(DragDropHelper.WorkflowItemTypeNameFormat, type.AssemblyQualifiedName); 
DragDrop.DoDragDrop(this.box1, data, DragDropEffects.Move); 

The WF Designer then queries the DataObject when its being dragged over and handles it from there.

My question is, is there anyway to provide the DataObject to the WF Designer as it expects it using the Telerik Drag and Drop? I have followed your drag and drop tutorials and got it working between list boxes, from RadPanelBar to ListBox etc. This is what I currently have.

private void OnDragQuery(object sender, DragDropQueryEventArgs e) 
{ 
if (e.Options.Status == DragStatus.DragQuery) 
{ 
AvailableActivity activity = ((AvailableActivity)((System.Windows.Controls.ListBox)(e.Options.Source)).SelectedItems[0]); // get the activity from the list 
                    
DataObject data = new DataObject(DragDropHelper.WorkflowItemTypeNameFormat, activity.Type.AssemblyQualifiedName); 
                    
e.Options.DragCue = activity.Type.AssemblyQualifiedName;  
e.Options.ArrowCue = RadDragAndDropManager.GenerateArrowCue();  
e.Options.Payload = activity.Type.AssemblyQualifiedName;    
} 
e.QueryResult = true; 
e.Handled = true;  
} 
 
Thanks
Greg
Miroslav
Telerik team
 answered on 25 Jan 2010
7 answers
116 views
What I would like to do is to force a specific RadPanelBarItem to stay expanded and, ideally, get rid of the arrow too (specifically, I want to do this for the first item and leave the rest to act normally).  I have tried handling various events and setting templates to try to intercept the collapse functionality but have been so far unable to figure it out.  I am also unable to figure out how to remove the arrow.  Any ideas?
Bobi
Telerik team
 answered on 25 Jan 2010
2 answers
195 views
Hello!

RadCarousel is a great component and it makes the application that I'm working on look so profesional even if I don't have a designer backgound or so.
There are a couple of addition things that I would need from this component, they may be already there but I don't know how to take advantage of them.
First of all - I need to always have one selected CarouselItem out there, no matter if I've clicked one or not.
If I press an additional "Load" button I should always have the possibility to retrieve the top most carousel item there
( right now carousel.SelectedItem can return null if there was no click on a specific item )
Second - Reffering the beginning or the end of carousel items sequence - I should have the possibility to stop the flow of the items  (if I continuously press the carousel's ScrollViewer buttons) I mean that the last item should be in the middle of the screen and not somewhere far in the left/right of the screen (check out the attachments) - and this last one should be the SelectedItem also
RoxanaC
Top achievements
Rank 1
 answered on 25 Jan 2010
1 answer
152 views
Hello everybody,

is it possible to install different version of WPF controls (indeed, all the compenent develop by Telerik: ASP.NET, AJAX, Windows Form ... ) on the same machine? What the conseguence in file system and Visual Studio (2008 and 2010 versions)?

Thank you.

Attilio Gelosa.
Milan
Telerik team
 answered on 25 Jan 2010
1 answer
229 views

Hi
Is it possible to play videos (wmv, FLV, mov, etc) in the WPF carousel?

BR

Gabriel

Milan
Telerik team
 answered on 25 Jan 2010
1 answer
231 views
Hi,

I need separate context menu for the grid rows and the grid headers.

I defined the rows context menu in the xaml like this:

<telerikGrid:RadGridView x:Name="ordersGrid" AutoGenerateColumns="False" DataLoadMode="Synchronous" >
            <Navigation:RadContextMenu.ContextMenu>
                <Navigation:RadContextMenu Opened="RadContextMenu_Opened" ItemClick="RadContextMenu_ItemClick">
                    <Navigation:RadContextMenu.Items>
                        <Navigation:RadMenuItem Header="Update Order" />
                        <Navigation:RadMenuItem Header="Cancel Order" />
                        <Navigation:RadMenuItem Header="View Details" />
                    </Navigation:RadContextMenu.Items>
                </Navigation:RadContextMenu>
            </Navigation:RadContextMenu.ContextMenu>

and i defined in the code the context menu for the headers.

The problem is that the main context menu overrides the header context menu. I even try to remove it in the loaded event but it didn't help:


        void ordersGrid_Loaded(object sender, RoutedEventArgs e)
        {
            GridViewHeaderRow headerRow = ordersGrid.ChildrenOfType<GridViewHeaderRow>().FirstOrDefault();
            IEnumerable<GridViewHeaderCell> cells = headerRow.Cells.OfType<GridViewHeaderCell>();

            /**remove the default menu from the header in order to ser a separate menu for header**/
            foreach (GridViewHeaderCell cell in cells)
            {
                var x = cell.ContextMenu;
                RadContextMenu.SetContextMenu(cell, null);
            }
            GridViewHeaderMenu gvhm = new GridViewHeaderMenu(ordersGrid);
            gvhm.InitializeMenus();
        }

How can i achieve it?

Thanks,

Ofer

Pavel Pavlov
Telerik team
 answered on 22 Jan 2010
1 answer
93 views
hi

I am using a datepicker control and when i set "SelectableDateStart" property to some date, the dates before that displayed as hidden mode.  We can view the dates very lightly but the display is somewhat like blank. 

 

 

 

 

<telerik:RadDatePicker Height="25" Margin="64,98,51,0" Name="radDatePicker1" SelectableDateStart="1/19/2010" VerticalAlignment="Top" Width="163" />

thank you

 

Kaloyan
Telerik team
 answered on 22 Jan 2010
3 answers
169 views
Hello,

I have the following problem: I have a form with a RadDatePicker in it. Everything works fine, but when I enter an invalid date into the entry field of the picker, the date is just resetted or the entry field of the picker is empty. I would prefer to see the defined ErrorTemplate instead.
I tried to catch this by adding ValidatesOnError to the Binding in the XAML file but it doesnt work.

So: How can I catch it if the user enters an invalid value to the entry field?

Best Regards,
Jerma
Kaloyan
Telerik team
 answered on 22 Jan 2010
1 answer
103 views
We notice that if we change the culture to be chinese,
RadTimePicker's select time box always show the Militory time (24 hour format). See the attachment.
Does this consider as a bug?
thx!
Jane
Kaloyan
Telerik team
 answered on 22 Jan 2010
3 answers
129 views
I'm using RadGridView and need to prevent editing for some cells not at the column level, but based on the row and column.

I've tried using ReadOnly Cell and GridViewCell.PreviewEditStartEvent as described here:

It appears in the version I am using the PreviewEditStartEvent does not exist. Am I missing something? Was this removed?

I have version 2009.3.1208.35.

Thanks,
Mike
Nedyalko Nikolov
Telerik team
 answered on 22 Jan 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
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
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?