Telerik Forums
UI for WPF Forum
9 answers
360 views
Hi,
  I noticed RadWindod has methods to display alerts (RadWindow.Alert) and confirmations (RadWindow.Confirm)
How can I show an Information dialog that has just an OK button and shows the proper Information icon?
Think of messages like "The operation completed fine" or "Your file has been saved"...

Thanks,
  Alessandro
Konstantina
Telerik team
 answered on 21 May 2010
1 answer
96 views
Today I upgraded using
RadControls_for_WPF_2010_1_0422_DEV.msi 

I copied the Demos folder to my D: drive so I could make changes without elevated rights.  VS2010 did its upgrade but when I built the solution I got 333 errors.  To make sure I didn't mess up I carefully copied the Demos to D:\Telerik 2\Demos and tried again.  333 errors the 2nd time too.  The errors started similar to the first three VS2008 error in this post, 2nd definitions of _EmployeeID etc.  Altova DiffDog confirmed a new file, "Northwind1.designer.cs".

<?xml version="1.0" encoding="UTF-8"?> 
<!-- Differencing export generated by Altova® DiffDog® version 2010 rel. 3 (x64) Enterprise Edition - for more information please visit www.altova.com --> 
<diff_result> 
    <diff_info comparison_mode="text_or_xml"
        <source_left name="C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos" uri="file:///C:/Program%20Files%20(x86)/Telerik/RadControls%20for%20WPF%20Q1%202010/Demos"/> 
        <source_right name="D:\Telerik 2\Demos" uri="file:///D:/Telerik%202/Demos"/> 
    </diff_info> 
    <file_diff location=""
        <changed_content> 
            <file name="app.config"/> 
            <file name="Examples_WPF.CS.csproj"/> 
            <file name="Telerik.Windows.Examples.exe.config"/> 
        </changed_content> 
        <right_content> 
            <file name="Examples_WPF.CS.5.0.ReSharper.user"/> 
            <file name="Examples_WPF.CS.csproj.user"/> 
            <file name="Examples_WPF.CS.sln"/> 
            <file name="Northwind1.designer.cs"/>  <!--  ############ Here  --> 
            <file name="Telerik.Windows.Examples.vshost.exe"/> 
            <file name="Telerik.Windows.Examples.vshost.exe.config"/> 
            <file name="UpgradeLog.XML"/> 
        </right_content> 
    </file_diff> 
</diff_result> 


DiffDog found how the new, unwanted file is inserted in the .csproj beginning on line 3026.

    <text_diff left_location="2434" right_location="3026"
        <right_content> 
            <line>    &lt;Compile Include=&quot;Northwind1.designer.cs&quot;&gt;</line> 
            <line>      &lt;AutoGen&gt;True&lt;/AutoGen&gt;</line> 
            <line>      &lt;DesignTime&gt;True&lt;/DesignTime&gt;</line> 
            <line>      &lt;DependentUpon&gt;Northwind.dbml&lt;/DependentUpon&gt;</line> 
            <line>    &lt;/Compile&gt;</line> 
        </right_content> 
    </text_diff> 

The minimal instructions in the pinned, sealed top post How to Compile WPF Examples in VS 2010 apparently don't work for this release.  Neither PowerGREP nor VS2010 could find the string to change.

Find all "Global.Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString", Match case, Whole word, Subfolders, Find Results 1, "Entire Solution" 
  Matching lines: 0    Matching files: 0    Total files searched: 1105 
 

PowerGREP for "NorthwindConnectionString"  
 
     C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\app.config 
  6   <add name="Telerik.Windows.Examples.Properties.Settings.NorthwindConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DataSources\Northwind.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/> 
 
      C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\DatabaseRepository.cs 
 18   this.dataContext = new NorthwindDataContext(Settings.Default.NorthwindConnectionString); 
 53   DataContext db = new DataContext(Settings.Default.NorthwindConnectionString); 
 60   DataContext db = new DataContext(Settings.Default.NorthwindConnectionString); 
 
       C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\DatabaseRepository.vb 
 15    Me.dataContext = New NorthwindDataContext(Settings.[Default].NorthwindConnectionString) 
 46    Dim db As New DataContext(Settings.[Default].NorthwindConnectionString) 
 53    Dim db As New DataContext(Settings.[Default].NorthwindConnectionString) 
 
 
       C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\Northwind.dbml 
  3    <Connection Mode="AppSettings" ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=
               C:\_projects\wpf\Development\WPF\DataSources\Northwind.mdf;Integrated Security=True;User Instance=True"  
               SettingsObjectName="Telerik.Windows.Examples.Properties.Settings" SettingsPropertyName="NorthwindConnectionString1"  
               Provider="System.Data.SqlClient" /> 
 
        C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\Telerik.Windows.Examples.exe.config 
  6     <add name="Telerik.Windows.Examples.Properties.Settings.NorthwindConnectionString" connectionString= 
              "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DataSources\Northwind.mdf;Integrated Security=True;
               User Instance=True" providerName="System.Data.SqlClient"/> 
 
        C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\DataSources\NWindDataSet.Designer.cs 
 5107   this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 5353   this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 5593   this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 5894   this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 6198   this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 6456   this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 6705   this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 6982   this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 
        C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\DataSources\NWindDataSet.Designer.vb 
 4955   Me._connection.ConnectionString = Global.Telerik.Windows.Examples.Properties.Settings.[Default].NorthwindConnectionString 
 5203   Me._connection.ConnectionString = Global.Telerik.Windows.Examples.Properties.Settings.[Default].NorthwindConnectionString 
 5463   Me._connection.ConnectionString = Global.Telerik.Windows.Examples.Properties.Settings.[Default].NorthwindConnectionString 
 5779   Me._connection.ConnectionString = Global.Telerik.Windows.Examples.Properties.Settings.[Default].NorthwindConnectionString 
 6082   Me._connection.ConnectionString = Global.Telerik.Windows.Examples.Properties.Settings.[Default].NorthwindConnectionString 
 6338   Me._connection.ConnectionString = Global.Telerik.Windows.Examples.Properties.Settings.[Default].NorthwindConnectionString 
 6604   Me._connection.ConnectionString = Global.Telerik.Windows.Examples.Properties.Settings.[Default].NorthwindConnectionString 
 6872   Me._connection.ConnectionString = Global.Telerik.Windows.Examples.Properties.Settings.[Default].NorthwindConnectionString 
 
         C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\DataSources\NWindDataSet.xsd 
    7    <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="NorthwindConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Public" Name="NorthwindConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Telerik.Windows.Examples.Properties.Settings.GlobalReference.Default.NorthwindConnectionString" Provider="System.Data.SqlClient" /> 
   12    <DbSource ConnectionRef="NorthwindConnectionString (Settings)" DbObjectName="dbo.BigOrders" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"
   44    <DbSource ConnectionRef="NorthwindConnectionString (Settings)" DbObjectName="dbo.[Order Details]" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"
   76    <DbSource ConnectionRef="NorthwindConnectionString (Settings)" DbObjectName="dbo.Customers" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"
  122    <DbSource ConnectionRef="NorthwindConnectionString (Settings)" DbObjectName="dbo.Orders" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"
  172    <DbSource ConnectionRef="NorthwindConnectionString (Settings)" DbObjectName="dbo.Invoices" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"
  210    <DbSource ConnectionRef="NorthwindConnectionString (Settings)" DbObjectName="dbo.Categories" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"
  240    <DbSource ConnectionRef="NorthwindConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"
  293    <DbSource ConnectionRef="NorthwindConnectionString (Settings)" DbObjectName="dbo.AddressBook" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"
 
         C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\DataSources\NWindDataSet1.Designer.cs 
 5110    this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 5356    this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 5596    this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 5897    this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 6201    this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 6459    this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 6708    this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 6985    this._connection.ConnectionString = global::Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString; 
 
       C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\GridView\WPF\Performance\ServerSide\Example.xaml.cs 
 50    context = new NorthwindDataContext(Settings.Default.NorthwindConnectionString); 
 
       C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\GridView\WPF\Performance\ServerSide\Example.xaml.vb 
 43    context = New NorthwindDataContext(Settings.[Default].NorthwindConnectionString) 
 
       C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\Properties\Settings.Designer.cs 
 31    public string NorthwindConnectionString { 
 33            return ((string)(this["NorthwindConnectionString"])); 
 42    public string NorthwindConnectionString1 { 
 44            return ((string)(this["NorthwindConnectionString1"])); 
 
       C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\Properties\Settings.Designer.vb 
 31    Public ReadOnly Property NorthwindConnectionString() As String 
 33            Return DirectCast((Me("NorthwindConnectionString")), String) 
 41    Public ReadOnly Property NorthwindConnectionString1() As String 
 43            Return DirectCast((Me("NorthwindConnectionString1")), String) 
 
       C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2010\Demos\Properties\Settings.settings 
  5    <Setting Name="NorthwindConnectionString" Type="(Connection string)" Scope="Application"
 13    <Setting Name="NorthwindConnectionString1" Type="(Connection string)" Scope="Application"
 
TOTAL:    56 matches in 14 files  (4014 other files without matches are not listed) 
 

It took me a long time to decide I had not made a mistake.  I would prefer to download a VS2010 set of Demos, rather than convert a VS2080 solution.

Thanks.

Mark









Veselin Vasilev
Telerik team
 answered on 21 May 2010
1 answer
82 views
Hi,

I have a Grid which is bound to an observable collection. The first column is a Combobox. Based on the selection in the first column, I need to change the values of the remaining columns in the same row. I tried to modified the Observable collection but the text of remaining columns are not getting changed. But if I click on each of the remaining columns, text is getting updated. Please help.

Thanks and Regards,
Norbert John
Pavel Pavlov
Telerik team
 answered on 21 May 2010
1 answer
53 views
Hi team,

Do we have same Pallette  that is same as MS word Pallette  (for referance please look at attachment) in Rad Color Picker?

If not Can you provide any similar kind of demo application to create Custom Pallette   kind of thing.


Miro Miroslavov
Telerik team
 answered on 21 May 2010
1 answer
151 views
Hi,

my grid has an item source which is an observable list of a objects, each of which consist of  a date and 5 numbers. For each row, I want to highlight the higest number in that row by making it bold.

Any pointers on how I would do this?

thanks,
Jas
Milan
Telerik team
 answered on 21 May 2010
4 answers
406 views
How do I get the GridViewRowItem object of the selected row in the RadGrid SelectionChanged event?


Jeffrey Lewis
Top achievements
Rank 1
 answered on 21 May 2010
3 answers
99 views

Hello Everyone,

I am creating a chart to display real-time data that is "polled" every 5 seconds. Additionally, my chart can contain multiple data series all of which will be spline. If I let the chart auto calculate the X axis bounds and ticks, it is extremely slow in displaying initial values. So I want to set the X axis manually. Here is the code I have so far:

radChart1.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Normal;  
radChart1.DefaultView.ChartArea.AxisX.IsDateTime = true;  
radChart1.DefaultView.ChartArea.AxisX.DefaultLabelFormat = "T";  
radChart1.DefaultView.ChartArea.AxisX.AutoRange = false;  
DateTime MinVal = DateTime.Now;  
DateTime MaxVal = MinVal + TimeSpan.FromSeconds(UpdateInterval * (NumDataPoints + 1));  
radChart1.DefaultView.ChartArea.AxisX.AddRange(MinVal.ToOADate(), MaxVal.ToOADate(), 1.0);  
radChart1.DefaultView.ChartArea.AxisX.Step = 0.05;  
radChart1.DefaultView.ChartArea.AxisX.LabelStep = 1; 

Note that the default value for UpdateInterval is 5 and NumDataPoints is 10

However, using the above code, I only get two ticks on the X axis. What I really want is that the number of ticks should be the same as NumDataPoints and they should be equally distributed between the Min and Max of the X axis range. How can I achieve that? I have tried playing around with Step and LabelStep values but did not get anything different.

Any help would be greatly appreciated.

Thanks

-Ambar
Ambar Kulkarni
Top achievements
Rank 1
 answered on 20 May 2010
2 answers
77 views
Hi. I'm trying to implement Excel exporting on a RadGridView (it's been pretty frustrating btw), and I've noticed you have to manually set each row, group and header style when doing so. Is there any way I can export the grid with the appearance it's already got in my application?

Thanks.

PS: I'd really recommend for a next release a makeover of the grid's exporting capabilities, given the fact they're so limited right now.
Hugo Aristizabal
Top achievements
Rank 2
 answered on 20 May 2010
2 answers
180 views
Hi guys,

I have a requirement where I need to have VerticalScrollBar appeared right under the column headers.
Well, I was able to archive that by changing the ControlTemplate for the GridView where I moved GridViewHeaderRow to outside of the ScrollViewer. Everything seems to work just fine. Next I wanted to have a star sized columns and that's where I am having a little problem. I need my last Column Header to use all the remaining space; however there still a space of VerticalScrollBar's width on the right. It's not a filler column; simply DataCellsPresenter inside GridViewHeaderRow does not stretching its content all the way. How do I fix this.

Attached is sample pick.

Thanks,
Xoma
Top achievements
Rank 1
 answered on 20 May 2010
3 answers
88 views
Hello there,

Do the gridview support making a six level hierarchy in an easy way? 

Right now I'm setting my top data set as ItemsSource and then do a lot of child table definitions. To be able to remove GroupPanel and ColumnHeaders in my child nodes I'm listening on the DataLoading event casting the sender to a GridViewControl. For getting all the child column I have set the AutoGenerateColumns property to true. But I need to remove some of them so I also listening for AutoGeneratingColumn event. Doing this seems a little bit odd!

Another question is if I'm able to update the data at the bottom node in the gridview from a database without destroying the expanded hieararch made by the user?

Am I correct in my assumption that the gridview only support a two level hierarchy in a good manner.

Best wishes from Johan
Vlad
Telerik team
 answered on 20 May 2010
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?