Telerik Forums
UI for WinForms Forum
1 answer
146 views
I'm sure I might be going about this the wrong way, but here is what I'm trying to accomplish.

My UI has two sides, on the left a user entry form, and on the right a RTB that is formatted to look like a report might.  On load, I define bookmarks to note the start and end of areas.  These start and end bookmarks are to help me identify where to place any updates I'll need to do through code.

When the user types in a value or performs an action on the user entry form, some corresponding changes will need to happen within the RTB document.  I'll need to find the location within the document and perform the update.

Ideally, I can simply identify where I need to select text within the document, delete it, and replace it with whatever.  Also worth noting is that most updates will occur within a Textbox TextChanged event, so speed is a factor as well.

Am I approaching this the right way?  This is my first go with the RTB, and I want to make sure I'm doing things somewhat correct.  lol

Sample range identification:

this.txtCareplanPreview.InsertLineBreak();
this.txtCareplanPreview.InsertBookmark("InterventionNotes" + intItem.CCGInterventionId.ToString());
this.txtCareplanPreview.Insert("Notes: " + intItem.Description);
this.txtCareplanPreview.InsertBookmark("InterventionNotesEnd" + intItem.CCGInterventionId.ToString());
this.txtCareplanPreview.InsertLineBreak();

Update 10/21/2013: I'm attempting to dig into annotations now, but I'm unable to find any good information regarding their usage, either in the documentation or here in the forum.  I believe as this point, annotations are what I'm looking for.  I'd still like some input on how I can best accomplish my goals.
Thanks!

Wayne
Ivan Petrov
Telerik team
 answered on 23 Oct 2013
1 answer
117 views
Is there a way to get the ListDataItem object that the mouse is hovering over in a RadListControl?
I've been trying several approach's but been drawing a blank.  I'm thinking the item should already be available somehow since its being highlighted/formatted by the ListControl already...
Thx
Stefan
Telerik team
 answered on 23 Oct 2013
1 answer
305 views
I have some problems with copying required columns from one gridview to another gridview!
Firstly, I download table from Excel, then I give my own HeaderText to some columns using ContextMenu.
And I need to copy only these columns with my HeaderText to another gridview.
I tried some variants but it didn't work!
How can I do that?

Thanks in advance.
Dimitar
Telerik team
 answered on 23 Oct 2013
1 answer
215 views
I'm adding some text programmatically and then allowing the user to format it for their needs and saved it as a Word document.  In the text that I am programmatically adding I am adding some numbers as a superscript. Currently I turn those blue, then make them smaller to offset them from the main text.  But I really want them to be forced to the top of the line, not the bottom.  In Word I would just set them as superscript.

I have styles for these that is separate from the main text.  I was hoping I can just format their style in a way to either make them an actual superscript, or at least align them to the top to make them look like it.  I would prefer to make the superscript, as this will be exported as a Word document.

Do you have any documentation about how to control the styles for things like this, maybe how to add footnotes and other things as well?  The online documentation only shows various font formatting.  Does the RadRichTextBox allow any more formatting than what is detailed in the documentation?
George
Telerik team
 answered on 23 Oct 2013
5 answers
111 views
I am using the hierarchy grid to display almost all of the data for my program and the inability for the user to be able to print the grid with it displaying the grid like it shows is a huge problem. Any who reads please vote for this to get added soon  here: http://www.telerik.com/support/pits.aspx#/details/Issue=11527 . Also if anyone knows any way to work around this that would be great!
George
Telerik team
 answered on 23 Oct 2013
2 answers
205 views
Hello, i have a tree data structure like the following:

public class MyTreeNode
{
    public string Display{get;set;}
    public List<MyTreeNode> childs {get;set;}
}

how can I bind to this datastructure?

Using your WPF Treeview I was able to do using the following code (data context is a root node that is not displayed)

<TreeView  Name="treeView1" ItemsSource="{Binding Childs}">
    <TreeView.ItemTemplate>
        <HierarchicalDataTemplate ItemsSource="{Binding Childs}">
            <StackPanel Orientation="Horizontal" Height="18">
                <TextBlock Text="{Binding Display}" />
            </StackPanel>
        </HierarchicalDataTemplate>
    </TreeView.ItemTemplate>
</TreeView>

I do not understand how to do with winforms version of treeview control.

Can anybody please help?
Andrea
Top achievements
Rank 1
 answered on 23 Oct 2013
3 answers
199 views
So i have a grid with multiple columns and one is a ComboBox. The problem I encountered is that each row has to have diferent items in that ComboBox. I tried setting the DataSource on the Column, bit it just messes up every row. Also tried to find the ComboBox from the Rows property with no success.
I was also thinking of the performance impact this would have? If i have 1000 rows with 1000 ComboBoxes an 1000 DataSources? Probably not good :/
Would really appreciate any help or tips anyone can give me.
George
Telerik team
 answered on 23 Oct 2013
7 answers
120 views
I want to place a row of buttons underneath a grid View such that they always lie under the last row, with no white space (except margin).
When the grid expands to the bottom of the form, the buttons are still visible (at the bottom), and the grid displays vertical scroll bars.

There must be some combination of gridViewElements, panels, docking, etc. that does this? 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Oct 2013
3 answers
89 views
Hi,

I'm trying to add a twitter style #-tagging feature to a Winforms RadRichTextBox, where, when the user enters "#", my code must automatically detect it, and convert the entered text to a link when the user ends the word, by entering a periode/comma/semicolon, a Space a line feed or switches caret position away from the entered word.

I would also like to add support for a popup menu/list, which displays the best matches to what the user have entered, based on previously used #-tags. The user can then select a tag from the popup list and have it inserted as a #-tag link, or continue typing, if none of the displayed #-tags are valid.

Checking the caret position and getting when the user enters "#" is easy enough, but detecting when the user then enters a " " to get the tag, I can't get that to work. I've also tried some popup context menu for displaying the list of available at the current caret position, but that opens with focus, so if the user keeps typing, the typing is ignored.

I really need some pointers and samples to get me in the right direction, so any help is much appriciated.

Best regards,
Thomas

George
Telerik team
 answered on 23 Oct 2013
3 answers
85 views
Hi,
  
I am using radgridview in a project.   If the column contains fullstop ( '.' character) then the value is not getting displayed for that column though the value is saved in database.
  
Is there any workaround to resolve this issue?
  
Thanks
Balaji
Stefan
Telerik team
 answered on 23 Oct 2013
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? 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?