Telerik Forums
UI for WPF Forum
1 answer
193 views
Is it possible to have the RichTextBox use a canvas as the editing area?

I am trying to create an application where the user is putting text and images on a canvas.   They can then apply affects to the text.  It is basically so they can create templates to print on T-Shirts.  So the location of items has to be exact.

Is that possible?
Petya
Telerik team
 answered on 28 Jun 2013
4 answers
169 views
Hi there! 

I have a RadDiagram project that I'm currently working on and need a bit of advice on the best approach. Currently, I am listing out an ObservableCollection called CurrentExampleItems and binding it to an ItemsControl, and the DataTemplate is a UserControl of a CustomShape. I'd like to allow users to drag the UserControl from the StackPanel and have it drop on the grid, but to not create a copy. The idea being that there is only one of these ExampleItems that can be placed on the Grid, so if its on the grid, I dont want to show it in the StackPanel.

All examples I've played with our developed include the OnDragInitialize function to create a duplicate object based on the source, but I think I'd have to do something slightly different to enable this.

Any thoughts?


<StackPanel Background="White" x:Name="stackExampleItems" Orientation="Vertical" telerik:DragDropManager.AllowCapturedDrag="True" >
                    <ItemsControl ItemsSource="{Binding CurrentExampleItems}" >
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <local:ExampleItemView DataContext="{Binding }"   />
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                </StackPanel>
Miro Miroslavov
Telerik team
 answered on 28 Jun 2013
5 answers
355 views
In the right-bottom corner of the RibbonView's Backstage there is an (office) image.
How could we change the image?
For us it's not important that the image changes when using different themes.
Kiril Vandov
Telerik team
 answered on 28 Jun 2013
1 answer
112 views
HI,
I have a all those3 controls in my form. Howerver, if the datapager page size is 10 and the gridview have more than 10 rows when i click add new in the data form it show a blank page. if gridview row has lees than the datapager size or I remove the datapager then it works fine.
Is there something I miss or this is a bug?
Thanks,
Ivan Ivanov
Telerik team
 answered on 28 Jun 2013
1 answer
90 views

Hi,

I have a situation where I have successfully shown data in a ParentGrid, but now I have setup a child grid but cant get it to display data.

XAML:

 <telerik:RadGridView Name="CustomersGrid" ShowInsertRow="True" Grid.Column="0" SelectionChanged="CustomersGrid_SelectionChanged">
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition/>
            </telerik:RadGridView.ChildTableDefinitions>            
            <telerik:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerik:RadGridView Name="ChildGrid" ShowInsertRow="True" Loaded="ChildGrid_Loaded" />
                </DataTemplate>
            </telerik:RadGridView.HierarchyChildTemplate>
        </telerik:RadGridView>


C#:

 public MainWindow()
        {
            InitializeComponent();
            var customers = Repo.GetCustomers();
            CustomersGrid.RowIsExpandedChanging += CustomersGrid_RowIsExpandedChanging;
            CustomersGrid.ItemsSource = customers;
            
            DataContext = this;
        }

This works fine and shows the child grid when clicking on the + sign. The ParentGrid is bound to Customers (Select * FROM Customers) I need to know how to bind the child grids to Agreements (Select * From Agreements where CUST_NO = '" + CUST_NO + "'"). I cant seem to access the Child Grid's itemsource to set the data binding.

What am I doing wrong?

Thank you very much!
Ron
Ivan Ivanov
Telerik team
 answered on 28 Jun 2013
3 answers
183 views
Hello,
I am applying filtering to a column in the treelist but upon filtering, only the top level rows are kept.Rows in the final results cannot be expanded or collapse. I would like to display all the children rows for the filtered data. How can I achieve this?
Thanks
Dimitrina
Telerik team
 answered on 28 Jun 2013
0 answers
208 views
Hi,

I like to get the current item in a drag & drop operation.
It´s shared code from silverlight and there it´s possible to get the current item with the following code:

private System.Windows.Controls.ListBoxItem GetItemFromPoint(FrameworkElement listBox, Point CurrentPoint)
{
  var p = listBox.TransformToVisual(App.Center.RootVisual).Transform(CurrentPoint);
  IEnumerable hits = VisualTreeHelper.FindElementsInHostCoordinates(p, listBox);
  System.Windows.Controls.ListBoxItem item = null;
 
  foreach (UIElement element in hits)
  {
    if (element is System.Windows.Controls.ListBoxItem)
    {
      item = (System.Windows.Controls.ListBoxItem)element;
      break;
    }
  }
 
  return item;
}

But now I´m using WPF and the RadListBox. The return type now is a RadListBoxItem and the parameter listBox is a RadListBox control.

Which opportunities do I have with the RadListBox in WPF?

Thanks
Mirko
Top achievements
Rank 1
 asked on 28 Jun 2013
5 answers
395 views
<telerik:RadNumericUpDown Value="{Binding DaysNumber}" Minimum="1" IsInteger="True" VerticalAlignment="Center" Margin="5" Maximum="999">
    <telerik:RadNumericUpDown.NumberFormatInfo>
        <globalization:NumberFormatInfo NumberGroupSeparator="" NumberDecimalSeparator="." />
    </telerik:RadNumericUpDown.NumberFormatInfo>
</telerik:RadNumericUpDown>

NumericUpDown control allows to enter commas (the screenshot is  attached). How can I forbid that?
Koen
Top achievements
Rank 1
 answered on 28 Jun 2013
2 answers
103 views
Hi There,

I plan on overriding the Settings Pane by removing the Style and Text sections and then added 1 or 2 additional ones in their place. I'd like to maintain the functionality exposed in Home and Size however, just maybe re-arrange them (so my 2 custom ones are first followed by Home and Size). I can't seem to find a way to simply override the Settings Pane without creating a completely new Settings Pane (like in the MindMap example), can you help point me to an example of this or provide a suggestion on accomplishing this?

Thanks!
Tim
Tim
Top achievements
Rank 1
 answered on 27 Jun 2013
1 answer
61 views
I did upgrade to Q2 2013 yesterday and my solution regressed, wondering if anyone out there seen this or know about this and help me figure out a way out of this.

I am seeing resource load failure for "themes/office/black/gauge.xaml" in both designer and runtime, build passes though.
  • I did upgrade control suite to Q2 2013, no other changes.
  • I noticed that the gauge.xaml was embedded in the assembly "Telerik.WIndows.Controls.DataVisualization.dll" before (in Q2) and it is no longer there now.  I could not find any related information in readme, anyone knows how to find this missing resource?  Thanks in advance for any tips or links.

    Andrey
    Telerik team
     answered on 27 Jun 2013
    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
    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?