Telerik Forums
UI for WPF Forum
1 answer
93 views
iam trying wpf dragdrop treeview but in that items are dragging but not droping where we took the position........ if any on know's please tell me the code...........
prem



thank you
Valentin.Stoychev
Telerik team
 answered on 08 Jun 2009
15 answers
250 views
Hello!
Could you tell, how i can programmatically  create filter by two (for example) columns? Is it possible?

Thx
Orit
Top achievements
Rank 1
 answered on 08 Jun 2009
2 answers
107 views

Posted 23 hours ago (permalink)

Hi,
I need to rotate label in code
we using code behind (example in forum) to create a chart. how can i get following done in code behind not sure how  to get to this properties from code:

following works in xamel but need to do from code

<Style TargetType="telerik:AxisXLabel2D"
            <Setter Property="LayoutTransform"
                <Setter.Value> 
                    <RotateTransform Angle="-90"/> 
                </Setter.Value> 
            </Setter> 
        </Style> 

or

 

 

<telerik:LabelFormatConverter

 x:Key="labelFormatConverter" />

 <Style

      targetType="telerik:AxisXLabel2D">

     <Setter

         Property="LayoutTransform">

     <Setter.Value>

        <RotateTransform

             Angle="-90" />

     </Setter.Value>

  </Setter>

 

 


thx
Ves
Telerik team
 answered on 08 Jun 2009
2 answers
115 views
I download a project from this forum
it was ok
but when I copy the code to my project it fail

this is the code 

var

 

masterFilter = (CompositeFilterDescription)(this.RadGridView1.FilterDescription);

 

 

var subjectFilter = (FieldFilterDescription)masterFilter.FilterDescriptions[0];

 

 

subjectFilter.Values.Add(

"Cats");

this is the error
Error 1 'Telerik.Windows.Data.FieldFilterDescription' does not contain a definition for 'Values' and no extension method 'Values' accepting a first argument of type 'Telerik.Windows.Data.FieldFilterDescription' could be found (are you missing a using directive or an assembly reference?)

 

Orit
Top achievements
Rank 1
 answered on 08 Jun 2009
10 answers
277 views
Hi,
I have create a RadChart based on a datatable that has 2 columns "XValue" and "YValue".

Dim

 

seriesMapping2 As New SeriesMapping

 

seriesMapping2.SeriesDefinition =

New BarSeriesDefinition

 

 

Dim itemMapping2 As New ItemMapping

 

itemMapping2.DataPointMember = DataPointMember.YValue

itemMapping2.FieldName =

"YValue"

 

seriesMapping2.ItemMappings.Add(itemMapping2)

RadChart1.SeriesMappings.Add(seriesMapping2)

 

When i execute the chart, the X axis labels values are 1,2,3, .... and i would like to put here the values of "XValue" column on my datatable. How can i do it?


Also, If I try to put string values to "YValue" column in mi datatable, the chart fails, that is, only numeric values can be put as source of a serie?.

Thanks a lot.

Giuseppe
Telerik team
 answered on 05 Jun 2009
8 answers
320 views
Hi

I am trying to do a simple bar chart showing the following data;

Group               Value

Group 1 140.30
Group 2   5.00
Group 3          81.70

I wish to have the above groups as labels in the x-asis, but the barchart always shows 1,2,3

Can you please give me a simple example on how to achieve the above.

Regards
Velin
Telerik team
 answered on 05 Jun 2009
3 answers
121 views
I would like to style and edit the control template of the RadDatePicker inside Expression Blend.
When I add a copy of either the control template or the style of it, i get the following exception (german error message):

"
An Exception was thrown.
StackTrace: Empty

Inner Exception: Der öffentliche Typ mit dem Namen "RadDatePicker" kann von dem Typverweis nicht gefunden werden
XamlParseException: Der öffentliche Typ mit dem Namen "RadDatePicker kann von dem Typverweis nicht gefunden werden
StackTrace
bei System.Windows.Markup.XamlReaderHelper.Read(XamlNode& xamlNode)
...
InnerException:None
"

Translation of the message: "The public type with the name "RadDatePicker" can't be found by the reference type"
When I open the project with Visual studio, the exception does not occur.

Thanks in advance for helping.
Boyan
Telerik team
 answered on 05 Jun 2009
3 answers
219 views
Hi,

Please bear with me as I am a newbie to WPF and we are evaluating RadGridView as part of a new development project. I have a issue with filtering and grouping on columns.

I have another Grid with Contact information with and a related table that stores other contact information, such as address details. If I have the Grid bound to a datarecord type of Contact and want to have related columns such as Address.Line1, Address.Line2 displayed on the parent GridRow. What is the best way to acheive this? I can get the information display but my issue is that I can not use the Filter or Groups on the Address columns. I have attached some simple code behind that I am using, Name works as expected, however Address.Line1 displays data but can not use filtering or the grouping functionality

private void SetupGridView()  
{  
    myGridView.Columns.Add(new GridViewDataColumn()   
    {  
        HeaderText = "Name",  
        UniqueName = "Name",  
        DataMemberBinding = new Binding("Name")   
    });  
 
    myGridView.Columns.Add(new GridViewDataColumn()  
    {  
        HeaderText = "Address Line 1",  
        UniqueName = "Address.Line1",  
        DataMemberBinding = new Binding("Address.Line1"),  
        IsFilterable = true 
    });  

Any help is greatly appreciated.

Glen

Rossen Hristov
Telerik team
 answered on 05 Jun 2009
1 answer
376 views
Dear Sir,

I need Telerik.Windows.Themes.Vista.dll etc.... But I did not find any where.
Can you please tell me from where I can download the same?

Regards
Vinay
Boyan
Telerik team
 answered on 05 Jun 2009
3 answers
103 views
Hi,

I am trying to prevent dropping of items on level other than their own , i.e., items on a specific level cannot be moved to level above or below). For this, I am working with PreviewDragEnded and if the item is not being dropped to the same level, i prevent it by setting e.Handled to true. It works fine when DropPosition is DropPosition.Inside. However, when the DropPosition is After or Before, the TargetDropItem is null ,for some reason, and I cannot check the level to which the item is dropped. The TargetDropItem gets a value on DragEnded event but it's already too late. Is there a way to do it?
Thank you,
Tal
Bobi
Telerik team
 answered on 05 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
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
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?