Telerik Forums
UI for WPF Forum
4 answers
303 views
Hello Telerik team,

I am using telerik radgridview in one of my WPF application. When i am binding Itemsource property i am binding a object which has foreign key columns, now in radgridview column i am getting the foreign key ID values as expected.

For example:

Binding Table Colums:
TableID
Name
Description
ForeignKeyTableID (FK)

Foreign key table:
ForeignKeyTableID
Value




Now i want to display the value of the foreign key rather than the id value, as id doesn't make any sense to display. What would be the efficient way to do this. I am thinking of using converter while binding, but it would be heavy as i will be working on thousands of records in radgrid.

Looking for a best and efficient way to handle this...

Thanks,
Kranthi
Pavel Pavlov
Telerik team
 answered on 25 Aug 2009
1 answer
240 views
hello telerik,

how do i implement pagination functionality for a RadGridview, does it have an in-built pagination control?
can i get some idea about implementing the pagination functionality for RadGridView..

thanks,
kranthi
Milan
Telerik team
 answered on 25 Aug 2009
6 answers
154 views
My RadChart does not display when place in a ItemsControl or a ListBox, when the RadChart is part of a DataTemplate that varies on DataType, no plots of my Datapoints are render.  Telerik, what's up with that, why can't RadChart render in a ItemsControl and/or ListBox?.
Patrick Fletcher
Top achievements
Rank 1
 answered on 24 Aug 2009
1 answer
55 views
Hi,

these days I stumbled over the "automatic edit selection" as described here.
http://www.telerik.com/help/wpf/gridview-data-editors.html
Although this looks "nothing special" the mechanism behind it allows us to implement our own editor and register is with the system.
I made a code library post about it since this is a real powerful mechanism.
By the way - congratulations for this - I love it!!

And since I have to proof my role as annoying customer I ask if it wouldn't be possible to implement this also for the "display part" of the RadGridView.
So additional to RegisterDefaultEditor(typeof(myDataType), typeof(myDataTypeEditorSettings)) I would like to see something like
RegisterDefaultCellTemplate(typeof(myDataType), typeof(myTemplate)).

Since in this case there is no need for the complex logic of an editor (with editor settings) a simple "Dictionary of DataTemplates" could do the job. At least in the first step.

Regards

Manfred
Stefan Dobrev
Telerik team
 answered on 24 Aug 2009
1 answer
77 views
Hi,

I am trying to add multiple barseries where each of them also have another serie that belongs to it.

So basically what I want to do is to have the line (or point) value to be directly above or below the bar that the serie belongs to. Right now the bars are standing next to each other (just like i want them to) but the lines or points that are connected to each bar serie is located in the middle of the XCategory and not in correlation with the bar.

I am assuming that this happens since bar are not drawn on top of each other but lines and points are. So if there is any way to prevent this that would be helpful.

What I want to achieve in the end is to show min/max and standard deviation values for an average bar, so in case there are better ways to do this I would be glad to hear about that too.

Thanks in advance,
Mattias
Ves
Telerik team
 answered on 24 Aug 2009
3 answers
134 views
This is my first experience with WPF and Telerik.

When I create an empty WPF project in VS2008, I'm given a Window1.xaml and the outer component is <Window x:Class="..." >

If I'm going to use the Rad controls throughout, should I replace that with telerik:RadWindow? If so, how? When I drag a RadWindow into my current canvas, it is nested. When I run the app, I don't see the RadWindow.

Essentially I'm looking to have a base window for my app that has a RadPanelBar on the left side as the primary menu, and a main content area that will hold multiple windows created dynamically based on menu selections.

I'm not sure what the foundation of a Telerik WPF app should start with.

Thanks,
ms
ManniAT
Top achievements
Rank 2
 answered on 22 Aug 2009
6 answers
968 views
I have a dataset that is  a master/detail, displaying as hierchical data.

The 2 tables are joined on a column called "InvoiceID"

I do not want to show the "InvoiceID" column in the detail data

Without defining every column that should be displayed in xaml, is there a way to specify a column that I want to hide?  Thanks
jas
Top achievements
Rank 1
 answered on 22 Aug 2009
1 answer
89 views
Hi folks -

I am trying to create a multi-ROOM calendar (think mult-day, but instead of say 7 days being displayed, 7 room schedules are displayed).  That is, I would like to have several day calendars displayed side by side, where each is the schedule for a single day's worth of events in a particular room. 

I have placed several one-day views adjacent to each other, but I still have some remaining issues in order to make the full deal.  You can see a picture of where I am at by clicking here: http://bit.ly/13IAYs

1. I would like to remove the forward and back by day arrows and date header information ("wednesday, August 19th, 2009") - just get rid of it completely.  How do I do that?

2. I would like to replace the dates in the day header (highlighted in the picture) with the room names.  How do I customize those?

3. I would like to get rid of the strange anomaly where the day header is bumped over to the right (Circled in red on the picture).  Any ideas what is causing this?

Many thanks
Josh
Teodor
Telerik team
 answered on 21 Aug 2009
9 answers
280 views

Hello!

I am having some problems with the GridViewComboBoxColumn .

GridViewComboBoxColumn supports selectionevent? Cannot seek change event.
 I am necessary, change event.
There is what kind of method?

Pavel Pavlov
Telerik team
 answered on 21 Aug 2009
4 answers
542 views
Hello, I've discovered an issue, and I'd like to see if this is some sort of desired behavior or a bug.  Here's the deal,  I've got a bunch of RadNumericUpDown controls, each lies within a UserControl.  and that UserControl is bould to an object. the RadNumericUpDown XAML looks like this.

        <telerik:RadNumericUpDown Grid.Column="1"  
                                  x:Name="inpPMax" Style="{StaticResource InputNumbers}" 
                                  ValueFormat="Numeric" NumberFormatInfo="{Binding Path=DisplayFormat}" 
                                  IsEnabled="{Binding Path=UserEntered}" 
                                  Minimum="{Binding Path=Minimum}" Maximum="{Binding Path=Maximum}" 
                                  SmallChange=".1" LargeChange="1" GotFocus="inpPMax_GotFocus" ValueChanged="inpPMax_ValueChanged"
            <telerik:RadNumericUpDown.Value> 
                <Binding Path="DisplayValue"  UpdateSourceTrigger="PropertyChanged" ValidatesOnDataErrors="True"/> 
            </telerik:RadNumericUpDown.Value> 
        </telerik:RadNumericUpDown> 
 

and the syle I'm using looks like this
            <Style x:Key="InputNumbers" TargetType="{x:Type telerik:RadNumericUpDown}"
                <Setter Property="Height" Value="25"/> 
                <Setter Property="FontSize" Value="12"/> 
                <Setter Property="Margin" Value="2"/> 
                <Setter Property="HorizontalContentAlignment" Value="Right"/> 
                <Style.Triggers> 
                    <Trigger Property="Validation.HasError" Value="true"
                        <Setter Property="ToolTip"  
                            Value="{Binding RelativeSource={RelativeSource Self},  
                                Path=(Validation.Errors)[0].ErrorContent}"/> 
                    </Trigger> 
                    <Trigger Property="Validation.HasError" Value="false"
                        <Setter Property="ToolTip" Value=""/> 
                    </Trigger> 
                </Style.Triggers> 
            </Style> 
 

The behavior I'm noticing is that when I enter "1000" in the text field, the control resets it back to 0, actually it looks like it sets it back to "000.000".  I thought that it might be doing this because I set the min and max values incorrectly, but when I debug into the "inpPMax_ValueChanged" method, I see that the control's max is set to double.maxvalue, and min is set to double.minvalue which means to me that it should't be failing this test.  I've also tried hard coding these values to 0.0, and 10000 respectively, with the same results.

I've noticed that if I enter 1999 (which is larget then (1000), the control resets the value to "999", to me it seems that the control is only taking the first 3 degits.  One other thing to note is that the binding for NumberFormatInfo looks like this.

        public NumberFormatInfo DisplayFormat 
        { 
            get 
            { 
                var ret = (NumberFormatInfo)CultureInfo.CurrentCulture.NumberFormat.Clone(); 
                ret.NumberDecimalDigits = DecimalPlaces
                return ret; 
            } 
        } 
        protected virtual int DecimalPlaces { get { return 0; } } 
 

This is because some "measurements" require 3 decimal places, while others require 0 and the control just binds to the "measurement"s DisplayFormat property.

it's going to be difficult to send any more code, but I'd greatly appreciate any help here, and I'll send whatever you ask for, if I can't get this to work I'll have to go back to a textbox, and I really don't want to do that.
Hristo Borisov
Telerik team
 answered on 21 Aug 2009
Narrow your results
Selected tags
Tags
+113 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?