Telerik Forums
UI for WPF Forum
3 answers
77 views
Intellisense in Visual Studio for some reason isn't picking up telerik RadGridView and won't resolve.


My project is targeting .NET 3.5 and has the following references:


`Telerik.Windows.Controls`


`Telerik.Windows.Controls.GridView`


`Telerik.Windows.Controls.Input`


`Telerik.Windows.Data`


All of these are for .NET 3.5 and have a runtime version of 2.0.X


My code:


    <Window x:Class="Project.MainWindow"
        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="MainWindow" Height="350" Width="525">
    
    <Grid Loaded="Grid_Loaded">
        <StackPanel>
            <telerik:RadGridView></telerik:RadGridView> <-- this won't resolve

Any ideas why this is happening and how to fix it?
Vera
Telerik team
 answered on 02 Oct 2012
1 answer
169 views
Hello,

I'm not sure if this is a bug or if it is intended to happen like this, but for some reason, if I try to add text to a RadRichTextBox after a window has finished loading, the rich text box behaves in an unexpected manner: it adds an extra span and it hides the text by default. It shows the text only after the text box is focused. This doesn't happen though if text is added to the rich text box before the window finished loading. You can easily see this by yourself.

So, on a new project, just add a rad rich text box and in the code-behind add:

public MainWindow()
{
InitializeComponent();
 
var section = new Section();
var paragraph = new Paragraph();
var span = new Span("Span declared in code-behind");
paragraph.Inlines.Add(span);
section.Blocks.Add(paragraph);
radRichTextBox.Document.Sections.Add(section);
}

That will work fine, but if you do this:

public MainWindow()
{
	InitializeComponent();
 
	Loaded += MainWindow_Loaded;
}
 
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
	var section = new Section();
	var paragraph = new Paragraph();
	var span = new Span("Span declared in code-behind");
	paragraph.Inlines.Add(span);
	section.Blocks.Add(paragraph);
	radRichTextBox.Document.Sections.Add(section);
}

you will see that the text box behaves completely different, and it is also prone to throwing different application errors in different circumstances.
Iva Toteva
Telerik team
 answered on 02 Oct 2012
3 answers
248 views
Hi Team,

I am working with WPF MVVM using RadRibbonView.
DataBinding not Working inside Ribbonview Backstage.

<telerik:RadRibbonView >
 <telerik:RadRibbonView.Backstage >
                <telerik:RadRibbonBackstage>
 <telerik:RadRibbonBackstageItem Header="Rooms Layout">
                        <Grid Background="Gainsboro">
                            <Grid.RowDefinitions >
                                <RowDefinition Height="100"></RowDefinition>
                                <RowDefinition Height="100"></RowDefinition>
                            </Grid.RowDefinitions>
                            <TextBox Text="Sample" Foreground="Green" Width="100" Grid.Row="0" Name="txtSample">  </TextBox>
                            <TextBlock Background="Green" Foreground="Yellow" Text="{Binding ElementName=txtSample,Path=Sample}" Width="100" Grid.Row="1"></TextBlock>
                        </Grid>
                    </telerik:RadRibbonBackstageItem>
 </telerik:RadRibbonView.Backstage >
                </telerik:RadRibbonBackstage>
</telerik:RadRibbonView >

Please help me.
Thanks,
Srinivas.

Tina Stancheva
Telerik team
 answered on 02 Oct 2012
5 answers
307 views
Hi,
I want to place a arrow icon on Button which is on AutoHideArea, can any one of you please tell me how i can do this ?
i have attached ascreenshot in which i tried to illustrate the requirement.

Thanks in advance,
Srinivas.
Ivo
Telerik team
 answered on 02 Oct 2012
1 answer
135 views
Hi guys,

I have a programmatically generated Scatter plot and each point in this chart has a label. This label appears to be smaller than desired so I would like to know how can I set the label size programmatically.

Evgenia
Telerik team
 answered on 02 Oct 2012
1 answer
218 views
This is WPF ChartView Control. I haven't been able to find any way to highlight a specific point on the chartview control. I am using RadCartesianChart, and I like to choose a specific point on the chart to display the white circle (just like the ShowIntersectionPoint on TrackBall movement), but I want to choose a point in code instead. Is this possible?

Petar Marchev
Telerik team
 answered on 02 Oct 2012
1 answer
142 views
Hi,
I'm new in DevTool. There is any way to change the default view of a TimeLineView to show only the current day with all hours?


Thanks


Marco
Yana
Telerik team
 answered on 02 Oct 2012
1 answer
187 views
Is this possible to convert Telerik.Windows.Documents.DocumentPosition to System.Windows.Documents.TextPointer? I try to darw
a rectangle as adorner on current word that is in CaretPosition. I do this in Windows RichTextBox as well but how can I do this in your RichTextBox?
Iva Toteva
Telerik team
 answered on 02 Oct 2012
1 answer
557 views
Hello,

Is there a way to get all the text from a RichTextBox without having to select all the text first and then call GetSelectedText() on the document selection?


PS: Also, is it possible to get parts of text without having to select it first? For example, if I want to get the text on a line, i currently do this:
// Get line text range.
startPosition.MoveToCurrentLineStart();
endPosition.MoveToCurrentLineEnd();
 
// Clear the previous selection.
richFolderList.Document.Selection.Clear();
// Select line text.
richFolderList.Document.Selection.AddSelectionStart(startPosition);
richFolderList.Document.Selection.AddSelectionEnd(endPosition);
 
var currentLine = richFolderList.Document.Selection.GetSelectedText();

Petya
Telerik team
 answered on 02 Oct 2012
2 answers
149 views
Hello,

is there any way to achieve WPF .NET 4 drag and drop between grids with different data, for example on the left grid (drag source) you have products and on the right grid (drop target) we have Orders, Orders has Name and Date plus collection of Products, Order
grid can be grouped with expand collapse by Products list (we can hide or show all Products within an Order), and finally we can drag Product from left grid to particular Order in the right grid?

Orders grid looks like this (it has expandable childtemplate with Products):
<telerikGrid:RadGridView x:Name="TelerikOrdersGrid" AutoGenerateColumns="False" ShowGroupPanel="False" Grid.Column="0">
           <telerikGrid:RadGridView.Columns>
               <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding Name}" Width="100" />
           </telerikGrid:RadGridView.Columns>
           <telerikGrid:RadGridView.ChildTableDefinitions>
               <telerikGrid:GridViewTableDefinition />
           </telerikGrid:RadGridView.ChildTableDefinitions>
           <telerikGrid:RadGridView.HierarchyChildTemplate>
               <DataTemplate>
                   <telerikGrid:RadGridView x:Name="TelerikProductsGrid" telerikDragDrop:RadDragAndDropManager.AllowDrop="True" AutoGenerateColumns="False" ShowGroupPanel="False" ItemsSource="{Binding Products}">
                       <telerikGrid:RadGridView.Columns>
                           <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding ProductName}" Width="100" />
                       </telerikGrid:RadGridView.Columns>
                   </telerikGrid:RadGridView>
               </DataTemplate>
           </telerikGrid:RadGridView.HierarchyChildTemplate>
       </telerikGrid:RadGridView>

How exactly I register RadDragAndDropManager.AddDropQueryHandler for TelerikDetailGrid?

When I try in code behind:

RadDragAndDropManager.AddDropQueryHandler(TelerikDetailGrid, RadGridView_OnDropQuery);


I have got error:

Error    1    The name 'TelerikDetailGrid' does not exist in the current context    C:\test\MainWindow.xaml.cs    35    55



In other words to add Product to Order by drag and drop? If possible by using multi-select - slecting one or more Product?

thank you

Valko
Top achievements
Rank 1
 answered on 01 Oct 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?