Telerik Forums
UI for WPF Forum
2 answers
97 views
Hello,

I am using telerik transition control  to create a ad rotator control as said in this link. http://blogs.telerik.com/blogs/posts/11-01-11/how-to-create-ad-rotator-with-telerik-transitioncontrol-and-coverflow-control-for-silverlight.aspx  . I have noticed that telerik component is wasting so much memory making my application unstable. I  isolated the telerik transition control from my application and found out that memory consumption is fairly stable  without the adrotator control. 

Is this a known issue? Is there any work around for this?

Thanks,
John. 

Ivo
Telerik team
 answered on 11 Sep 2012
1 answer
249 views
I am trying to pass the sender (control i.e. a Radpane from where the context menu was invoked) as command parameter.

The code is as follows:

<Window.DataContext>
    <ViewModel:MainWindowViewModel x:Name="ViewModelContext">
        <ViewModel:MainWindowViewModel.ContextMenuTemplate>
            <DataTemplate >
                <tel:RadContextMenu>
                    <tel:RadMenuItem Header="Floating"
                                           Command="tel:RadDockingCommands.Floating" />
                    <tel:RadMenuItem Header="Dockable"
                                           Command="tel:RadDockingCommands.Dockable" />
                    <tel:RadMenuItem Header="Save"
                                            Command="{Binding Save}"/>
                    <tel:RadMenuItem Header="Close"
                                            Command="{Binding Close}"
                                            CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type tel:RadPane}}}"  />
                </tel:RadContextMenu>
            </DataTemplate>
        </ViewModel:MainWindowViewModel.ContextMenuTemplate>
        <ViewModel:MainWindowViewModel.PaneHeaderTemplate>
            <DataTemplate>
                <StackPanel Orientation="Horizontal">
                    <ContentPresenter Content="{Binding}" Width="150" ToolTip="{Binding}" />
                    <Button Command="{Binding DataContext.Close, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type tel:RadPane}}}"
                            CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type tel:RadPane}}}" 
                            HorizontalAlignment="Center" VerticalAlignment="Center" ToolTip="Close" BorderThickness="0" Width="16" Height="16">
                        <Image Source="Resources\Images\ImgClose.png"/>
                    </Button>
                </StackPanel>
            </DataTemplate>
        </ViewModel:MainWindowViewModel.PaneHeaderTemplate>
    </ViewModel:MainWindowViewModel>
</Window.DataContext>


I can't get this to working.
In the above PaneHeaderTemplate works fine but I am not able to pass the parameter for the ContextMenu Template. 

Is there any different way to do this?

Rosen Vladimirov
Telerik team
 answered on 11 Sep 2012
4 answers
109 views
Product     |  Qty  |  Sales
Product A     50      500
Product B     60      600
Product C     55      550
Product D     65      650
Product A     40      400
Product B     45      450
Product C     35      350
Product D     25      250

I have the above data table. I would like to group by the Product and have the different Product description on the X-Axis. I would like to plot the sum of Qty and average of Sales on the same bar graph. So the legend would display Sum of Qty and Average of Sales.
I would like to achieve something like the following:



Any code samples would be great
Oliver
Top achievements
Rank 1
 answered on 11 Sep 2012
1 answer
82 views
Hi,

I'm using WPF 4.0. I followed the demo for reordering rows for radgridview(1 row at a time), it worked perfectly. But now I need to allow multiple rows to be reordered. Is that possible? Anyone here done it before?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 11 Sep 2012
0 answers
68 views
  1. I have a radgridview with the following sorted items in it; the column has a SortDescriptor with SortDirection="Ascending".
    00 item
    03 item
    05 item
    99 item
  2. Rename the cell in the 2nd row in a way that would make it move down 1 position in the list (prepend "06"):
    00 item
    06 03 item
    05 item
    99 item
    The column header shows an up-triangle, indicating ascending sort, but the column is not sorted. 
  3. Now rename the first row (prepend "07"):
    06 03 item
    05 item
    07 00 item 
    99 item
    The renamed item "07 00 item" sorted itself properly, but the one that failed in step 2, "06 03 item", is still in the wrong place.


This bug doesn't seem to affect moving an item upwards in the list, nor does it affect the first row.
Michael
Top achievements
Rank 1
 asked on 10 Sep 2012
1 answer
286 views
Hi!
Please look at the following xaml:
<telerik:GridViewDataColumn DataMemberBinding="{Binding}">
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <StackPanel Orientation="Vertical">
                <TextBox Text="{Binding propertyA}" />
                <TextBox Text="{Binding propertyB}" />
            </StackPanel>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

My cell template has two text boxes that should be bound with two different properties of my data source item. How do I do that?
Obviously my grid has other columns as well. The reason I want to do this and I don't want to use two different columns is that I want to save space and make my text boxes more wide. I don't mind about the vertical space being wasted that much.
papadi
Top achievements
Rank 1
 answered on 10 Sep 2012
1 answer
345 views
I am new to WPF, The scenerio is that i am Developing the application in WPF and i have made the menu.XML file which is a datasource for Ribbon Control. Now i want to hide/Disbale the menu on the basis of user role, User role is defined in Dataabse, Lets if user is Manager then he will only see Requests Tab and similarly if admin has logged in then he might only be able to see requests tab and Admin Tab also.
Tina Stancheva
Telerik team
 answered on 10 Sep 2012
2 answers
151 views
Dear Telerik team,

How i can style this bars from white/black to green/red?: http://demos.telerik.com/silverlight/#ChartView/Financial in WPF

Best regards,
Saykor
Saykor
Top achievements
Rank 2
 answered on 10 Sep 2012
2 answers
94 views
I have a simple data-bound column bar chart with an x-axis that aggregates the average value of items by month (YTD). Looks fine but how would I get an empty month to appear (zero value column)? Right now I only get columns for months with values. Those zero-values months are relevant too.
Art Kedzierski
Top achievements
Rank 2
 answered on 10 Sep 2012
9 answers
315 views
Hi, I'm a Telerik newbie.

I have a hierarchical grid in which a parent table has 2 child tables, each with different columns. Basically, a row in the parent table has 2 columns that hold collections of objects. For each of those collection types, I created a GridViewTableDefinition with a PropertyRelation to associate the parent table column to a child table. This works fine, but I am trying to find a way to expose the GridViewTableDefinition.PropertyRelation.Name above the child table.

I have seen an example in the forums that shows a RadGridView with multiple child data in tab controls. The tabs show the Relation.Name which is what I want, but I don't want to use the tab controls.

I think what I really want is closer to the RadTreeListView, but the RadTreeListView is only used for displaying homogenous data... and mine is heterogeneous.

I basically want a TreeView with columns so that I can display properties of heterogeneous object types. Is this possible with a RadGridView?

Kind Regards,
Albert


Dimitrina
Telerik team
 answered on 10 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?