Telerik Forums
UI for WPF Forum
2 answers
110 views
Hi,

We had worked with RadWindow for Silvelight, now with WPF we are facing some problems.

In my Application i have a button that call a RadWindow with the ShowDialog Method. The window appear as expected, but if the user clicks on other application like a Web Browser, or Email, or just minimize the application, when he comes back to the app it comes with the RadWindow in the "back" of the application, and then i need to minimize all the running apps to view again my RadWindow.

Is this a bug or am I missing something? because in Silverlight this not happen.

Thanks!
Missing User
 answered on 22 May 2012
1 answer
129 views
Hello,

I have an application using CollectionIndex feature. I´m using ItemsSource and SeriesMapping radchart properties and I´m adding my lineseries at runtime. All is working great.
Now I want to load data asynchronously to radchart . My first shot was to use ObservableCollection<ObservableCollection> on my ItemsSource but the chart only shows the data added to collection before my graph shows up. After some time I found RadHierarchicalObservableCollection and the lineseries began to appear but the performance is horrible. I investigated and discovered that each call to AddRange generated a Rebind.
I´m trying to add 6 series with 10000 points each. 

There are another way to do it?

Thank you very mutch.

Rosko
Telerik team
 answered on 22 May 2012
1 answer
175 views
Hi,

When I use CustomTickMark in a RadGauge, I always have this runtime error:

System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='CustomTickMark'


Here a sample of code that I use. My Gauge is more complex but I striped the code just to show the tick mark:
You can see the error in the Output Panel of Visual Studio.

I can still see the mark but I want to be sure I do things properly.

Thanks.

<Grid>
    <telerik:RadGauge Height="50" HorizontalAlignment="Left" Margin="131,146,0,0" Name="radGauge1" VerticalAlignment="Top" Width="100">
        <telerik:RadialScale x:Name="radialScale" IsEnabled="False" IsHitTestVisible="False" Min="0" Max="75" MinorTicks="1" MiddleTicks="2" MajorTicks="3">
            <telerik:TickList>
                <telerik:CustomTickMark Value="10" Location="Inside" Offset="-0.02" Format="{}{0:N0}%" Length="1.3" TickWidth="0.02" Foreground="White" />
            </telerik:TickList>
        </telerik:RadialScale>
    </telerik:RadGauge>
</Grid>
Andrey
Telerik team
 answered on 22 May 2012
9 answers
215 views
I use a RadDateTimePicker, InputMode is TimePicker (standard 00:00-23:00 hours).  I need to set some times in Red color maybe bold). How can I do this?

/Ken
Stephan
Top achievements
Rank 1
 answered on 22 May 2012
1 answer
117 views

If I have lets say 100 columns and right click on a column header, the context menu is not fully visible.
Any chance to get a scrollbar here ?

Regards,
Marco
Stephan
Top achievements
Rank 1
 answered on 22 May 2012
1 answer
106 views
I get an error in the visual studio designer every time I open a specific view that includes a HierarchyChildTemplate with a DataTemplate (see below). I'm using 2012.1.326.40 assemblys. During Runtime everything works fine and as expected but I'm unable to use the Visual Studio Designer which is very annoying.

Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei Microsoft.Expression.Platform.WPF.InstanceBuilders.DocumentNodeObjectReader.get_Value()
   bei System.Xaml.XamlWriter.WriteNode(XamlReader reader)
   bei System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector)
   bei System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   bei System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, Boolean skipJournaledProperties, Uri baseUri)
   bei System.Windows.Markup.XamlReader.Load(XamlReader xamlReader, ParserContext parserContext)
   bei System.Windows.Markup.XamlReader.Load(XamlReader reader)
   bei Microsoft.Expression.Platform.WPF.InstanceBuilders.FrameworkTemplateInstanceBuilder.InstantiateTemplate(IDocumentRoot xamlDocument, TemplateSerializerContext context)
   bei Microsoft.Expression.DesignModel.InstanceBuilders.FrameworkTemplateInstanceBuilderBase`7.Instantiate(IInstanceBuilderContext context, ViewNode viewNode)
   bei Microsoft.Expression.DesignModel.Core.ViewNodeManager.Instantiate(ViewNode viewNode)

 <telerik:RadGridView.HierarchyChildTemplate>
                            <DataTemplate>
                                <telerik:RadGridView ItemsSource="{Binding PartsInOrders}" 
                                             x:Name="PartInOrderGrid" 
                                             ShowGroupPanel="False"
                                             ScrollMode="RealTime"
                                             CanUserInsertRows="False"
                                             CanUserDeleteRows="False"
                                             IsReadOnly="True"
                                             RowActivated="GridRowActivated"
                                             AutoGenerateColumns="False">
                                    <ia:Interaction.Behaviors>
                                        <commonBehaviours:GridToolsBehavior />
                                    </ia:Interaction.Behaviors>
                                    <telerik:RadGridView.Columns>
                                        <telerik:GridViewDataColumn DataMemberBinding="{Binding ItemNumber, Mode=OneWay}" Header="{loc:Translation ItemNumber}" />
                                        <telerik:GridViewDataColumn DataMemberBinding="{Binding ItemDescription, Mode=OneWay}" Header="{loc:Translation ItemDescription}" />
                                        <telerik:GridViewDataColumn DataMemberBinding="{Binding CommissionNumber, Mode=OneWay}" Header="{loc:Translation CommissionNumber}" />
                                        <telerik:GridViewDataColumn DataMemberBinding="{Binding PointToDeliver, Mode=OneWay}" Header="{loc:Translation PointToDeliver}" />
                                    </telerik:RadGridView.Columns>
                                </telerik:RadGridView>
                            </DataTemplate>
                        </telerik:RadGridView.HierarchyChildTemplate>
Daniel
Top achievements
Rank 1
 answered on 22 May 2012
5 answers
147 views
One of our customers is encountering this following error/call stack when they load our program and move the mouse. We were unable to recreate. However, based on similar forum posts, we had the customer turn off the Tablet PC Input service and the error went away. Is there a better solution than turning that service off? We would like to be able to leave it on if possible to reduce issues/setup needed for future customers. Do you have a fix so the error doesn't occur in the first place? The customer is on the 2011 Q3 version (non-service pack)

Thanks

Object reference not set to an instance of an object.
at Telerik.Windows.Controls.RadPaneAutomationPeer.GetNameCore()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.ContextLayoutManager.fireAutomationEvents()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
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)
Boyan
Telerik team
 answered on 22 May 2012
3 answers
237 views
Hi,

I have a large number of DXF CAD Files which I have converted to either SHP files or stored the Geometry in SQL Server.  The requirement is to display these on the Map control.  The files which have a Spatial Reference System specified are displaying properly.

However a number of files do not have a SRS specified, these require displaying on the map, but obviously without any Map Providers. I will assume that the coordinates are in arbitrary X, Y. the demo examples use SHP files, can this be achieved by retrieving data directly from SQL Server?

Many thanks,

Adnan
Andrey
Telerik team
 answered on 22 May 2012
4 answers
168 views
Hi Support,
   I'm working on a touch screen app which requires "Image Editor" control with big icons. I tried setting my custom images by setting width & height, but its not working...Can u give me a work around to achieve the desired result.

Thank u
Selva
Selva M
Top achievements
Rank 2
 answered on 22 May 2012
9 answers
382 views
Hello!

I'm new to WPF, but as life goes, I have to bind to a ObservableCollection of Business Objects to a RadGridView in Code Behind, because the number of GridViewDataColumns is dynamic. Here I have an example (in my real application, my business class contains fields for sales data and the radgridview should be able to show a different number of sales periods).

Example:
=======

Business Object:
----------------------
public class Person : INotifyPropertyChanged
{
    private string _Firstname;
    private string _Lastname;
    
    public evebt PropertyChangedEventHandler PropertyChanged;

    public string Firstname
    {
        get { return _Firstname; }
        set 
        {
            _Firstname = value;
            OnPropertyChanged("_Firstname");
        }
    }

    public string Lastname
     {
         get { return _Lastname; }
         set 
         {
             _Lastname = value;
             OnPropertyChanged("_Lastname");
         }
     }

    protected void OnPropertyChanged(string strPropName) 
     { 
         PropertyChangedEventHandler handler = PropertyChanged; 
         if (handler != null) 
         { 
             handler(this, new PropertyChangedEventArgs(strPropName)); 
         }     
     }
  
}

ObservableCollection:
-----------------------------

public class Persons : ObservableCollection<Person>
{
    public Persons() : base()
    {
    }
}

ExamplePage:
-------------------
public partial class ExamplePage:Page
{
    
    Persons _p;

    public ExamplePage()
    {
        InitializeComponent();
        //Pseudo-Code: the ObservableCollection ist filled up in the DAL
        _p = DAL.GetPersons();

        //How or what is the way of binding the ObservableCollection to the radgridview1??
        //Possibility 1:
        radgridview1.DataContext = _p;
        //Possibility 2:        
        radgridview1.ItemsSource= _p;
        //Possibility ...: anything else?

        GridViewDataColumn colFirstname = new GridViewDataColumn();
        colFirstname.Header = "Firstname";
        colFirstname.UniqueName = "cFirstname";
        
        //I think, that here is the right place for column-bindung, but how?

        radgridview1.Columns.Add(colFirstname);        

        GridViewDataColumn colFirstname = new GridViewDataColumn();
        colLastname.Header = "Lastname";
        colLastname.UniqueName = "cLastname";
 
        //I think, that here is the right place for column-bindung, but how?

        radgridview1.Columns.Add(colLastname);   

    }
}

Please help me!

Kind regards

Michael
Vlad
Telerik team
 answered on 22 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?