Telerik Forums
UI for WPF Forum
1 answer
124 views
Hi, i'm trying to do somethiing and didn't see anything like this on the samples, or useful events for this.

What do I want to do:

Let's say that I have a RadCarousel styled as a coverflow, with 4 images on this order A-B-C-D

I want to drag D to position 2, with the mouse, so the new order would be A-B-D-C

Any clue?

Thanks a lot!
Milan
Telerik team
 answered on 17 May 2010
8 answers
315 views
When a user selected a current Item or an Item comes into view. How can I call an event to populate a gridview.

For example.. If a Item for John Doe becomes into view or is the selected Caroisel Item - I'd like to make a DB call to grab a dataset of his addresses.

How can I wire up an event to the selected Carousel Item and bind the dataset to the RadGridView.

Thanks again for all your help!!
Milan
Telerik team
 answered on 17 May 2010
4 answers
218 views
I need to create a portal style WPF application much in the style of that shown in your My Portal demo at http://mono.telerik.com/Dock/Examples/MyPortal/DefaultCS.aspx

However, this control appears to be for ASP.NET whereas I need to put this together in a WPF windows application. So, I have been looking into the RadDocking control but this appears to be more along the lines of Visual Studio type docking. I simply want to have a couple of columns where I can add, remove and arrange widgets. Is this possible using the RadDocking control without complicating things with the extra functionality? If so, do you have a sample?

Thanks
Matt
Top achievements
Rank 1
 answered on 17 May 2010
3 answers
299 views
I created library with my custom theme for RadWindow, but after applying (using StyleManager) and click on header Close button application chashes.

I use this code for close button:

<telerik:RadButton x:Name="PART_CloseButton" Command="telerik:WindowCommands.Close" Style="{StaticResource WindowButtonStyle}">
                                        <Path Fill="{StaticResource WindowButtonIconFill}" Stroke="{StaticResource WindowButtonIconStroke}" Width="14" Height="14" Data="M1.5,3.5 L2.5,2.5 4.5,2.5 6.5,4.5 8.5,2.5 10.5,2.5 11.5,3.5 8.5,6.5 8.5,7.5 11.5,10.5 10.5,11.5 8.5,11.5 6.5,9.5 4.5,11.5 2.5,11.5 1.5,10.5 4.5,7.5 4.5,6.5 z" />
                                    </telerik:RadButton>

Also is use alternate of Command="telerik:WindowCommands.Close":
 
<Button.Command>
    <RoutedUICommand
    Text="Close" />
 </Button.Command>
than button not work.

Help me to resolve this problem.

Thanks
Miroslav Nedyalkov
Telerik team
 answered on 17 May 2010
3 answers
114 views
hi
i need to export to excell for the datagrid
i use the same way from your example
i have problem with exporting hebrew language.

 

if (dialog.ShowDialog() == true)

 

{

 

using (Stream stream = dialog.OpenFile())

 

{

radGridView_searchResult.Export(stream,

 

new GridViewExportOptions()

 

{

Format = format,

ShowColumnHeaders =

true,

 

 

ShowColumnFooters = true,

 

ShowGroupFooters =

true,

 

Encoding =

Encoding.GetEncoding("windows-1255"),

 

});

 

}

}

Yavor Georgiev
Telerik team
 answered on 17 May 2010
3 answers
201 views
Hi,

In my application I get regulary this message:

System.InvalidOperationException was unhandled by user code
  Message=Specified element is already the logical child of another element. Disconnect it first.
  Source=PresentationFramework
  StackTrace:
       at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
       at System.Windows.FrameworkElement.AddLogicalChild(Object child)
       at System.Windows.Controls.ContentControl.OnContentChanged(Object oldContent, Object newContent)
       at System.Windows.Window.OnContentChanged(Object oldContent, Object newContent)
       at Telerik.Windows.Controls.Docking.FakePopupWindow.OnContentChanged(Object oldContent, Object newContent) in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopupWindow.cs:line 46
       at System.Windows.Controls.ContentControl.OnContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at System.Windows.Controls.ContentControl.set_Content(Object value)
       at Telerik.Windows.Controls.Docking.FakePopupWindow..ctor(Window owner, FakePopup p) in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopupWindow.cs:line 34
       at Telerik.Windows.Controls.Docking.FakePopup.Open() in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopup.cs:line 52
       at Telerik.Windows.Controls.Docking.FakePopup.OnLoaded(Object sender, RoutedEventArgs e) in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopup.cs:line 143
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
       at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
       at MS.Internal.LoadedOrUnloadedOperation.DoWork()
       at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
  InnerException:

Any idea what can cause this problem?

Thanks in advance,
Thomas
Miroslav Nedyalkov
Telerik team
 answered on 17 May 2010
1 answer
79 views
Hi,

Is it possible to include a 'Contains' filtering condition for columns with DateTime data type (See attachment). We need this to allow our users to filter records based on a particular month. The date time format we're using is dd/MM/yyyy.

Thanks in advanced.
Rossen Hristov
Telerik team
 answered on 17 May 2010
3 answers
131 views
I have a grid view sorted by a date column, users can add records to the grid view via the "Click here to add new item" row, a context menu, or ribbon button.  All the non-grid view method just call the BeginInsert method of the grid view which seems to work without issue.  I would like to automatically set the inserted row as the selected row of the grid view when the insert is complete.  To do this I am using edit complete handler bellow:

     private void crashRowEditComplete(object sender, GridViewRowEditEndedEventArgs e) 
        { 
            if (e.EditAction == GridViewEditAction.Commit 
                && e.EditOperationType == GridViewEditOperationType.Insert) 
            {                 
                ApplicationState.Carrier.Crashes.Add((Crash)e.NewData); 
                ApplicationState.Carrier.Drivers.Add(((Crash)e.NewData).Driver); 
                ApplicationState.Carrier.Vehicles.Add(((Crash)e.NewData).Vehicle); 
                crashListGrid.SelectedItem = e.NewData; 
            } 
        } 

The handler is running fine (checked through debug and the fact that the data does get written out to the file - dependent on the three Add statements), but the item is not getting selected correctly.  Instead the first row in the grid always gets selected.  This seemed like a pretty simple requirement and I have manipulated the grid selection previously without issue.
Veselin Vasilev
Telerik team
 answered on 17 May 2010
1 answer
98 views
Hello,

My company is evaluating the RadGridView for use in a project with a final delivery date in October, with an upcoming checkpoint next month. I have been unable to find any documentation of support for the 4.0 CLR. We are committed to EF4, so that is a requirement.

I have used the control in our 4.0 project with reasonable success, but I am seeing some discrepancies between the way the control works in Blend and in the project.

Do you support this control in 4.0 projects? When will it be supported in that environment? Is there a list of known issues workarounds in that environment?

Thanks!
Hristo
Telerik team
 answered on 17 May 2010
4 answers
105 views
Hi,

WPF Q1 2010 - Win XP SP3

When I 
1. Dynamically create a pane containing a grid and move it to document host (NO other panes open).
2. Drag it so it is floating.
3. Dock it.
4. Unpin so auto hide kicks in.
5. Mouse over so the window slides out.

- Problem - when mouse leaves the area of the slided-out pane, it does not hide again.  

6. If I open another pane and move it to the document host, now the original page behaves correctly (hiding and so on).
7. Close the second pane (the one docked in the document host) and the original pane contiues to behave correctly now (hiding nd so on).

Also, are the docking controls getting slow and clunky now or is it me ?

Any Ideas,

Thanks
Rob
Robin Das
Top achievements
Rank 1
 answered on 16 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?