Telerik Forums
UI for WPF Forum
1 answer
103 views
Does the WPF version of GridView support exporting to Excel?
Hristo Deshev
Telerik team
 answered on 29 Dec 2008
3 answers
117 views
Hi,

I'v taken a look at the progressbar - since I guesd it cood be used as a gauge control in an app I develeope.

By testing it at the samples I found your numeric updown there.
And since it did some "strange" things I went to the numeric up down sample.
At his moment I was hopeing you simply made a miste at the progressbar sample.

So my first exipriences I'm "keyboard oriented" - so i would never click 50 time on an up button to change a value of 20 to 70 :)

First thing - I can't focus the things via TAB - not that problem.

I focus it with the mouse - results very different.
Sometime it marks the whole numer - sometimes not.
Doubleclick does not (as expected) mark the whole field - it stops at the comma seperator.

Anyhow - I can mark it all - draging with the mouse.

Now I expect - everything marked - I type and this will replace the text :)
So I marked the "beta" value (1,14) and type 300.
I get??? YES 0 nothing else.
OK - some hack with focus and so goes on - I go in front of the 0 in the texfield and type 3 --- YES it is there.
Since the 0 is still in the field I see no 30 with the cursor between 3 and 0.
What is missing to get 300? A zero - so type it - the result?
0 - not this time NOT - I get 100 - the 0 goes in and the 3 changes to 1.

YES I found out why - the control is limited to 100.
OK - mark the 100 again (draging the mouse).
Type 99 - and get? 9 - type another 9 and get 99.
Mark all type 12 -- get 2....

OK - I take the value Shares.
I mark all type 321 and get 21 :)
I move the cursor to the front type 3 and get 321.
Ups I like 421 I move the cursor between 4 and 21 hit backspace than 4 and get?
Right - 214 - because hitting the backspace removes the 3 (as it should) and than moves the cursor back to the end of the number (not expected).

I'll stop now - I guess you can play for hours with that thing; alwas getting a funny result.
But you can't use such a thing in a production environment.

Starting from the fact that a marked number is NOT replaced by what you type and ending in setting the value to MAX if you type to much.

Expect you give 1.000.000 as max.
The user types (from a form) 3469738 and than (by mistake) another 0.
He gets? 1000000 -- all the number he did type are gone.

Do this in a normal control - you get Uuuuups a number to big - or it does not accept the last digit since the value is to large.
But forcing the user to retype complex numbers....

Was this control tested only by mouse?
Or did anyone put it on a from - navigate via TAB and enter numbers?
If so - why did nobody see that it "eats" the first number you enter?

Sorry for my anger - but a simple unit test on an input control should include a "replace by entering numbers".
And not doing such a simple test is not a sign of quality!


Regards

Manfred
Hristo Borisov
Telerik team
 answered on 29 Dec 2008
1 answer
231 views
Hi..
How can change the Time Monitor Tool example to display the current time?
thanks again
Andrey
Telerik team
 answered on 29 Dec 2008
1 answer
94 views
Hi..
Doe the TreeView support node images like the Telerik.WinControls.UI.RadTreeView ?
thanks in advance
Konstantin Petkov
Telerik team
 answered on 29 Dec 2008
8 answers
218 views
How set content height in RadPanelBarItem 100%? That after item closed, content stretch at the height of the window!
I want get design like Outlook panel.

Thanks.

PS: Sorry for my English )
Konstantin Petkov
Telerik team
 answered on 26 Dec 2008
2 answers
402 views

I am creating a date picker in my code and want to change its background whenever its value is not valid(specified by IsValidFieldValue flag), but its not working .

Here is my code for creating the control and style :

// Binding to be set for control 
Binding binding = new Binding("Value"); 
binding.Mode = BindingMode.TwoWay; 
binding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged; 
 
string datePickerXamlTemplate = "<telerik:RadDatePicker x:Name=\"uxDatePickerCustomField{0}\" Grid.Row=\"1\" Grid.Column=\"1\" Height=\"24\" HorizontalAlignment=\"Left\" Margin=\"8,5,8,5\" Width=\"125\" xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:telerik=\"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" />"; 
string datePickerXaml = string.Format(datePickerXamlTemplate, field.Id, count); 
stream = new MemoryStream(ASCIIEncoding.Default.GetBytes(datePickerXaml)); 
RadDatePicker datePicker = (RadDatePicker)System.Windows.Markup.XamlReader.Load(stream); 
datePicker.SetBinding(RadDatePicker.SelectedDateProperty, binding); 
datePicker.Style = (Style)FindResource("DatePickerStyle"); 
datePicker.DataContext = field; // Object having properties - Value and IsValidFieldValue. Implements INotifyPropertyChanged
uxGrid.Children.Add(datePicker); // Added to a Grid  
 


    <UserControl.Resources> 
        <Style TargetType="{x:Type telerikInput:RadDatePicker}" x:Key="DatePickerStyle"
            <Style.Triggers> 
                <DataTrigger Binding="{Binding Path=IsValidFieldValue, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Value="false"
                    <Setter Property="telerikInput:RadDatePicker.Background" Value="#FFFFB9B9" /> 
                </DataTrigger> 
            </Style.Triggers> 
        </Style>       
    </UserControl.Resources> 

akjoshi
Top achievements
Rank 1
 answered on 24 Dec 2008
3 answers
129 views
I have a bug when I set the width of a column to * (i.e. take up all remaining space). This works fine if I populate the DataContext before I view the grid (e.g. in the constructor of WPF page) but fails when I populate the DataContext after the grid has been created and laid out (e.g. User choose an item to display in the grid at runtime).

Here is the code need to recreate the problem.

public class DummyObject 
    { 
 
        public DummyObject(string name, string notes) 
        { 
            Name = name; 
            Notes = notes; 
        } 
 
        public string Name 
        { 
            get
            set
        } 
 
        public string Notes 
        { 
            get
            set
        } 
    } 
Class or storing some data

public partial class Window1 : Window 
    { 
        public Window1() 
        { 
            InitializeComponent(); 
 
            //This works fine 
            //PopulateGrid(); 
        } 
 
        private void Populate_Click(object sender, RoutedEventArgs e) 
        { 
            //This will throw an exception 
            PopulateGrid(); 
        } 
 
        private void PopulateGrid() 
        {             
            List<DummyObject> myObjects = new List<DummyObject>() 
            { 
                new DummyObject("Justin""Here is a note"), 
                new DummyObject("Paul""Paul has a note too"), 
                new DummyObject("Sam""Sam has a note that is much longer than the other notes"), 
                new DummyObject("Dean""Nothing to see here"), 
                new DummyObject("Andrew""Blah blah blah blah"
            }; 
 
            mainGrid.DataContext = myObjects; 
        } 
    } 
Code behind of Window class

<Window x:Class="TeleirkDatagridBug.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    Title="Window1" Height="300" Width="300"
    <DockPanel> 
        <StackPanel DockPanel.Dock="Top"
            <Button Content="Populate" Click="Populate_Click"/> 
        </StackPanel> 
        <telerik:RadGridView AutoGenerateColumns="False" x:Name="mainGrid" ItemsSource="{Binding}"
            <telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn Width="100" HeaderText="Name" UniqueName="Name"/> 
                <telerik:GridViewDataColumn Width="*" HeaderText="Notes" UniqueName="Notes"/> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 
    </DockPanel> 
</Window> 
XAML for window

Hope you can help.

Regards

Justin
Hristo Deshev
Telerik team
 answered on 23 Dec 2008
9 answers
255 views
Hi,

I tried to solve a (I guess) very common task today - and checked the help for this.
I found - almost nothing :(

I compare this to my "Telerik Gateway Drug" .ASP.NET Controls :(
Looking at the ASP.NET Grid there I find "Functional Overview" - "Getting Started" and so on.
With WPF I find -- a number of "overview topics" - nothing more.

Back to my task - I have a grid which shall display 3 Columns of data.
Lets say - ProductName, Price, Tax
Since Price and Tax would no become very large I fix there width to 100.
What I tried to approach was to set the width of the name column to be "Stretching".
First approach Width="*" -- fails with an exception.
So I decided to leave out the Width attribute.

Since the Documentation gave me no information I tried it with the samples.
By luck I found that there is a property called CollumnsWidthMode.
Anyhow - whatever I set it gave me "strange" results.

How can I do what I want - First Column "filling" the widht of the grid, the other 2 columns with a fixed width?

I'm a customer over years.
More and more it looks as if you build functionality after functionality - and stop documenting the things.
You build great examples - and if (by luck) one fills the needs we have a good starting point for a solution.
If not - bad luck :(
And - it is extremely time consuming to browse numbers of sample files just to pick up a snippet there and an other snippet somewhere else.

My idea -- you (your developer team) started up with "beeing new" - and therefore you also knew how hard it is to solve problems.
And you documented it - making it very easy for your customers to use the controls.

Now you have a lot of expiriences - and have no problems to solve even complex tasks. And by this you forgot that your customer (at least a lot of them) do not have your skill and get stuck with this minmalistic documentation.

I did the work and counted the entries about a comming task (for me) -- hirarchical data binding.
In ASP Grid I find 12 Topis about this and EXTRA 8 "how to" Topics.

In WPF Grid I find exactly ONE entry about this - containin a extreme simple solution.
The so called documentation about this topic has less than 20 Lines of explanation.

I had the same problems with Gauge in Silverlight (where the documentation is completely missing).
And by this I learned an other thing about your new products -- they became extremely complex in the last years.
Of course they do much more and are therefore more complex -- BUT a competitor of you showed me that it does not have to be like this.

They also have a gauge - and they provide a PDF file "Getting Started" -- and with two lines of XAML you get a working Gauge.
It's simple, It's proper documented -- and it also allows complex scenarios and great looking results.

From another competitor I downloaded a free (not trial - really free) Grid Control.
It also provides very good help -- and with it I could solve my "Grid Problem" in about 10 Minutes.

CONCLUSION:
Why do I buy a control suite?
-My work is to solve customers problems, to design an write software.
-With I control suite I expect to save a lot of time.
What WAS my relation with Telerik?
I found you years ago on the web. I gave your navigation suite (for ASP) a try and learned three things:
a.) Great functionality and intuitive use
b.) Very good support - the reaction time was great - and all my problems got solved.
c.) Your controls did what the "orginals" (MS included) controls did - but better, easier and more stable.
What IS my current situation?
I get a bunch of new controls.
From release to release there is more functionality.
The documentation becomes worser with every new product (feature).
Take it and use it is over - there is (almost) no "out of the box" functionality.
Problems do not get solved over months.
---Example WinForms Tab Control.
----The MS Control begins to scroll if I add more elements than displayable.
----Your control does not scroll at designtime -- it is almost impossible to build a solution with a "buch of tabs"
----This problem is known -- and there was a promise "....will fix this with the next release...."
----Not fixed till today!!!!

In a view words:
I tried to solve a common task with your grid.
I could not find anything in the documentation.
Even to give the grid "a bit of the wanted look" took me hours browsing your samples.
--Taking a free grid made me solve the problem in about 10 Minutes.

You remember: I (and I guess most of your customers) buy a control suite to develope FASTER and to be able to concentrate on "my part of the job".

Regards

Manfred
PS: please excuse my english - I'm from Austria :)
Hristo Deshev
Telerik team
 answered on 23 Dec 2008
3 answers
126 views
Hello,

I am wondering if the following scenario is possible and how I would implement it.  Basically what I want to do is bind the list of items in a GridViewComboBoxEditor to a property of the data record for that row.

I have an object model that looks similar to this:

public class SomeObject
    public Field SelectedField { getset; }
    public string SelectedString { getset; }
 
public class Field
    public string[] ListOfAllowedItems; 

I have a grid that displays a list of SomeObject items, each of which contains a Field.  Depending on the Field the user selected, the list of items in another column needs to change according to a list defined on the Field object.

Any help would be greatly appreciated.

Thanks,
Joel
Hristo Deshev
Telerik team
 answered on 23 Dec 2008
4 answers
93 views
Hi..
Does the Carousel support displaying and data binding of multiple tables , lIke a Customer and Products relationship?

I can bind a DataTable to the Carousel but how do I Bind at DataSet and the individual tables ?
My radCarousel doesn't have a DataMember property..?  What am I missing?  Thanks again for your help!

 

Jon
Top achievements
Rank 1
 answered on 22 Dec 2008
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?