Telerik Forums
UI for WPF Forum
4 answers
1.0K+ views
Hi,

Before I begin, this is more of a question about a Popup control rather than the RadRichTextBox itself. Feel free to move this post if you think it should belong in a different section.
I've been creating my own RadRichTextBox Intellisense application where I'm positioning a Popup control based upon the caret position.

I know how to obtain the position of the caret, like so:
Point position = new Point();
 
if (!richTextBox.Document.CaretPosition.Location.IsEmpty)
{
    position = richTextBox.ActiveEditorPresenter.GetViewPointFromDocumentPosition(richTextBox.Document.CaretPosition);
 
    position.Offset(offsetX, offsetY);
    return position;
}

The problem I have is that the Popup placement will alter depending on the size of the Popup/ListBox and if it is positioned towards the top or bottom of the screen.

When the the Popup is showing above my position point (the caret is  the bottom of the screen) it is aligned in the correct place. However, should the caret be towards the top of the screen, the top edge of the Popup is aligned with the top of the caret.

You can better see what I mean from the attached images.

I need to some way to determine if the popup placement is Above or Below my point and adjust the vertical offset accordingly.

Thank you for your time,

Rob
Robert
Top achievements
Rank 1
 answered on 30 Aug 2012
4 answers
303 views
I have a requirement where my Menu Items has to be Disabled/Enabled dynamically based on user Actions. Please let me know if you have an example that does this. My Menu Items are not static and they are Data Driven. 
Rosen Vladimirov
Telerik team
 answered on 30 Aug 2012
1 answer
234 views
Hi,
I'm using RadRichTextBoxRibbonUI to handle a richtext box. By default the control creates a drop down list with all the available fonts of the system. I would like to restrict my user and provide him/her with specific ones. How do I do that?
Nikolay Demirev
Telerik team
 answered on 30 Aug 2012
5 answers
75 views
Hi Team,

I am using RadBook for showing PDF files, but i have notice one thing with RadBook(and also with RadPdfViewer) RadBook is showing Blackish Image rather than showing original  Image. and also does not showing some text properly.

Please let me know to solve this problem.

Thanks,
Mandeep
Kammen
Telerik team
 answered on 30 Aug 2012
13 answers
241 views
Hi,

we use V2012.1.326.35 of Telerik and our application run on a Virtual Machine and we access it through Windows Remote Desktop. If you look at the attached file, when I click on the button of my RadDatePicker to popup the calendar, the calendar appear behind my control. If I run our application directly on my computer, I tried to reproduce the problem without any success :( I remark that this problem occur with some other Telerik controls also like the filters dialog with the RadGridView controls.

Thank's
Georgi
Telerik team
 answered on 30 Aug 2012
0 answers
77 views

Hii everybody,

Is There Any posibility to do CRUD operations with gridview control,Here the data is coming from excel sheet.when am uploding the file to grid view  control i want to do CRUD operations over the grid view control.I dont know how many number of columns in  excel sheet.i mean "Auto generate Columns='true'".

Is it Possible.Can any one can help me in coding?.I have an assignment.

Thanks in advance.

regards,

ANIL

ANIL
Top achievements
Rank 1
 asked on 30 Aug 2012
1 answer
153 views
Hello,

I would like to know if its possible to bind multiple datatables to a single RadGridView? I need to bind a datatable to populate the grid and beside that I would also like to bind the column header properties.

xaml
<telerik:RadGridView Margin="0"
                            AlternationCount="2"
                            AlternateRowBackground="#d7e8ff"
                            AreRowDetailsFrozen="True"
                            AutoGenerateColumns="False"
                            CanUserFreezeColumns="False"
                            IsReadOnly="True"
                            ItemsSource="{Binding}"
                            SelectionMode="Single"
                            ShowInsertRow="False"
                            RowHeight="30"
                            RowIndicatorVisibility="Collapsed"
                            telerik:StyleManager.Theme="Office_Blue"
                            x:Name="Listing">
 
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="ID" DataMemberBinding="{Binding Path=vis_ID}" IsVisible="False" Footer="Test"/>
                <telerik:GridViewDataColumn Header="{Binding [str_gridview_lastname]}" MinWidth="150" DataMemberBinding="{Binding Path=vis_lastname}"></telerik:GridViewDataColumn>
                </telerik:RadGridView.Columns>
        </telerik:RadGridView>

cs
// Bind datatable to populate grid
Listing.DataContext = myDataTable;
 
// Bind column header text properties
Listing.DataContext = myColHeaderTable;

The second binding overrides the first binding. Any suggestion to bind both are welcome

Kind regards,
Dennis
Dimitrina
Telerik team
 answered on 30 Aug 2012
1 answer
106 views
Hi,
Where can find Q1 2011 and Q2 2011 products release notes ?

I'm trying to upgrade our product from Q3 2010 SP1  to latest

Thanks,
Boyan
Telerik team
 answered on 30 Aug 2012
1 answer
80 views
How    to    import    the    KML   data     of     radmap???

As  the   documentation  online:

     
this.informationLayer.Reader = new MapShapeReader();
 this.informationLayer.Reader.Source = new Uri("/Silverlight.Help.RadMapSamples;component/Data/bulgaria.kml",UriKind.RelativeOrAbsolute ) 
 

But, there  is  no   the  "Source"  property  in   "Reader.Source"   ...   How  to  do  it???
Andrey
Telerik team
 answered on 30 Aug 2012
1 answer
103 views
Hello,

How can I disable auto expand when I drop an item in the treeview.
Petar Mladenov
Telerik team
 answered on 30 Aug 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?