Telerik Forums
UI for WPF Forum
7 answers
179 views
Hello,
after installing RadControls fow WPF version 725, I can no more open onr WPF project: Visual Studio crashes when loading the application.
After attaching a 2nd Visual Studio instance, I have the following exception:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Stack trace:
   at VSLangProj.References.Item(Object index)
   at Telerik.VSX.Internal.ProjectManagement.ApplicationProjectAssemblyReference.Retrieve(Project project, String assemblyName)
   at Telerik.VSX.Internal.ProjectManagement.ProjectWrapBase.GetAssemblyReference(String assemblyShortName)
   at Telerik.VSX.Internal.ProjectManagement.ProjectWrapUIComponentsBase.get_IsTelerikEnabled()
   at Telerik.Windows.WPF.VSX.Helpers.ProjectWrap.get_IsTelerikEnabled()
   at Telerik.VSX.ProjectListing.ProjectSearcher.<FilterTelerikProjects>b__0(IProjectWrapUIComponents p)
   at System.Collections.Generic.List`1.FindAll(Predicate`1 match)
   at Telerik.VSX.ProjectListing.ProjectSearcher.FilterTelerikProjects(List`1 projectsList)
   at Telerik.VSX.ProjectListing.ProjectSearcher.GetTelerikEnabledProjects()
   at Telerik.Windows.WPF.VSPackage.VSPackage.<>c__DisplayClass2.<OnSolutionOpened>b__0(Object s, DoWorkEventArgs a)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
   at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
   at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

After removing RadControls I can again open this project.
Note that the project is an Oxygene project and that I have 3 files open when I open the project.

Patrick
Andrey
Telerik team
 answered on 17 Sep 2012
5 answers
183 views
Hello! I am starting to use Telerik controls, and they work really well, but I am stuck with my GridView:

<telerik:RadGridView Name="gridAlarm" AutoGenerateColumns="False" EnableRowVirtualization="True">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn Header="PtNum" DataMemberBinding="{Binding Key}" Width="auto" UniqueName="alarmas"/>
                            <telerik:GridViewDataColumn Header="Timestamp" DataMemberBinding="{Binding Value.Timestamp}"  Width="auto" />
                            <telerik:GridViewDataColumn Header="Description" DataMemberBinding="{Binding Value.Description}"  Width="auto"/>
                            <telerik:GridViewDataColumn Header="Comment" DataMemberBinding="{Binding Value.Comment}"  Width="auto" />
                            <telerik:GridViewDataColumn Header="Point" DataMemberBinding="{Binding Value.Ptname}" Width="auto" />
                            <telerik:GridViewDataColumn Header="RTU" DataMemberBinding="{Binding Value.Rtu}"  Width="auto" />
                            <telerik:GridViewDataColumn Header="Category" DataMemberBinding="{Binding Value.Category}"  Width="auto" />
                            <telerik:GridViewDataColumn Header="Table" DataMemberBinding="{Binding Value.Dbname}"  Width="auto" />
                            <telerik:GridViewDataColumn Header="Field" DataMemberBinding="{Binding Value.Fldname}"  Width="auto" />
                        </telerik:RadGridView.Columns>                       
                    </telerik:RadGridView>

First of all, I am trying to sort it by the first column, with UniqueName="alarmas" when the user clicks in a button:
 
private void radButton1_Click(object sender, RoutedEventArgs e)
        {
            gridAlarm.SortDescriptors.Add(new SortDescriptor()
            {
                Member = "alarmas",
                SortDirection = System.ComponentModel.ListSortDirection.Ascending
            });   
        }
   
And it doesn't work, I am not sure if the Member property should be the UniqueName, or not.

My second trouble is that the itemsSource of my grid is an Observable Dictionary, and when a entry changes, it also changes in the gird ( it works fine) but the changes row goes to the last position, and I would like it to go to the first or to stay in place (ordered by the first column),
When I saw that I could not order the grid by adding a SortDescriptor, I thought about generating the same event that occurs when the user clicks in the row header of a column to order the grid by it's column value, so when the Dictionary changes, I could reorder the grid by executing this event, but I could not find anything about it.

Hope you can help me because it's very important for my project.
Thanks!

Rocio
Top achievements
Rank 1
 answered on 17 Sep 2012
1 answer
171 views
Hi

Reading some documentation about this control I found this: 

http://www.telerik.com/products/wpf/whats-new/release-history/q1-2012-version-2012-1-215-1506305735.aspx#map

"Added new WmsTiledProvider for the WMS servers (GeoServer)"

What about MapServer and RadMap?
This control may read the data from MapServer, or for now is exclusive to GeoServer?

Thanks.....
Andrey
Telerik team
 answered on 17 Sep 2012
5 answers
158 views
What I'd like to achieve is like these two image attachments which were created in Excel. I'd like to have two levels of X-Axis labelling. I'd also like to have clustered and stacked.

Is this possible with the Telerik WPF charting tools? 
Nikolay
Telerik team
 answered on 17 Sep 2012
3 answers
451 views
I am trying to follow the example at http://www.telerik.com/help/wpf/radtabcontrol-getting-started.html (without Expression Blend), but when I add the RadTabControl, it is not visible in the designer.  References are set to
  • Telerik.Windows.Controls
  • Telerik.Windows.Controls.Navigation
  • Telerik.Windows.Data

  • Also, the RadTabControl is not listed in my toolbox.
    <UserControl x:Class="MyApp.MyModule.Views.ModuleTabs"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                 mc:Ignorable="d"
                 d:DesignHeight="300" d:DesignWidth="300">
      <Grid>
        <telerik:RadTabControl>
          <telerik:RadTabItem Header="Calendar" />
          <telerik:RadTabItem Header="Colors" IsBreak="True" />
          <telerik:RadTabItem Header="Quote" />
        </telerik:RadTabControl>
      </Grid>
    </UserControl>

    Tina Stancheva
    Telerik team
     answered on 17 Sep 2012
    0 answers
    41 views

    Meant to post in TileView Forum,
    Sorry.

    Tamir
    Top achievements
    Rank 1
     asked on 16 Sep 2012
    0 answers
    129 views
    Hello,
    I want to select gridview row data by clicking on check box column. But when I check checkbox, selectedItem property return null  value and I have to select a row and then check checkbox. How can I solve this problem.
    Thanks in advance,
     <telerik:RadGridView.Columns>                           
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Id}" Header="Id"   readOnly="True"/>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name"  IsReadOnly="True"/>
                                <telerik:GridViewDataColumn Header="Select " >
                                    <telerik:GridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <CheckBox Name="checkbox1" IsChecked="{Binding Select,Mode=TwoWay}" HorizontalAlignment="Center"   checked="WordCheckBox_Checked" />
                                        </DataTemplate>
                                    </telerik:GridViewDataColumn.CellTemplate>
                                </telerik:GridViewDataColumn>
                            </telerik:RadGridView.Columns>
                        </telerik:RadGridView>

    private void WordCheckBox_Checked(object sender, RoutedEventArgs e)
            {
                try
                {                               
                    MyWord word_obj = new MyWord();
                    word_obj = dg.SelectedItem as MyWord;
                    if (word_obj != null)
                    {
                        wordList_obj.Add(word_obj);
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
    Mic
    Top achievements
    Rank 1
     asked on 14 Sep 2012
    1 answer
    258 views
    I am using ICollectionView for filters my data list. But when i try to filtering data then RadListBox shows nothing. Here is my Code which i try for this.

     XAML :
        <Window.Resources>
            <local:MyList x:Key="MyData"/>
            <CollectionViewSource x:Key="MyCollection" Source="{Binding ClassTwos, Source={StaticResource MyData}}"/>
        </Window.Resources>

        <telerik:RadListBox x:Name="ListTwo" ItemsSource="{Binding Source={StaticResource MyCollection}}" Margin="184,78,0,0"  Width="94" Height="175" DisplayMemberPath="Name"/>

    C# :
        public class MyList
        {
            public ObservableCollection<TestClassTwo> ClassTwos { get; set; }
            public MyList()
            {
                ClassTwos = new ObservableCollection<TestClassTwo>
                                                   {
                                                       new TestClassTwo{Name = "Sound"},
                                                       new TestClassTwo{Name = "Samsung"},
                                                       new TestClassTwo{Name = "yahoo"}
                                                   };


            }
        }

        public MainWindow()
            {
                InitializeComponent();


                var collectionView = (this.ListTwo.ItemsSource as ICollectionView);
                if (collectionView != null)
                {
                    collectionView.Filter = p => ((TestClassTwo)p).Name == "s";
                }
            }
    George
    Telerik team
     answered on 14 Sep 2012
    18 answers
    213 views
    I have a gridview with the data totaled in the footer. When printing the gridview, the totals are not there. Is there a way to print the footer? 

    Thanks,
    Katie
    katie
    Top achievements
    Rank 1
     answered on 14 Sep 2012
    0 answers
    134 views
    Hi,
    I'm thinking about how to use PropertyGrid with XML data. I have the schema in an XSD file and corresponding data stored in XML elsewhere.

    Is it a good approach or possible to prepare a propertygrid from an XSD then load the data from XML file?

    Your guidance greatly appreciated.

    Craig
    Craig
    Top achievements
    Rank 1
     asked on 14 Sep 2012
    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?