Telerik Forums
UI for WinForms Forum
2 answers
407 views
Am trying to search a specific Text in the Document, and replace it with Table.
this is what am doing:
      private void Replace()
        {
              this.radRichTextBox1.Document.Selection.Clear();
              DocumentTextSearch ser = new DocumentTextSearch(this.radRichTextBox1.Document);
              IList<DocumentPosition> startPositions = new List<DocumentPosition>();
              IList<DocumentPosition> endPositions = new List<DocumentPosition>();
   
              foreach (var textRange in ser.FindAll("<Threat"))
                startPositions.Add(textRange.StartPosition);
              foreach (var textRange in ser.FindAll(KEYEND))
                   endPositions.Add(textRange.EndPosition);
              string xml = string.Empty;
              for (int i = 0; i < startPositions.Count; i++)
             {
                this.radRichTextBox1.Document.Selection.Clear();
                this.radRichTextBox1.Document.Selection.AddSelectionStart(startPositions[i]);
                this.radRichTextBox1.Document.Selection.AddSelectionEnd(endPositions[i]);
                 
                xml = this.radRichTextBox1.Document.Selection.GetSelectedText();
                Table tbl = GenerateTable(xml);
                this.radRichTextBox1.InsertTable(tbl);
            }



but it doesn't work. when i try to replace the selection with any string, it works fine. what's wrong??? please help
Svett
Telerik team
 answered on 23 Jul 2012
4 answers
348 views
Hi,

Is there a way to highlight today's date only and not the selected date on dateTimePicker's calendar?

Many Thanks,

Ian
Peter
Telerik team
 answered on 23 Jul 2012
1 answer
140 views
I'm having an issue with the alternate row colors disappearing after adding groupdescriptors in code.

example:
GroupDescriptor myDescriptor1= new GroupDescriptor();
myDescriptor1.GroupNames.Add("site", ListSortDirection.Ascending);
myDescriptor1.GroupNames.Add("batch", ListSortDirection.Ascending);
myDescriptor1.Aggregates.Add("count(counter)");
myDescriptor1.Format = "Site Number, Batch {1}      {2} Records(s)";
 
GroupDescriptor myDescriptor2= new GroupDescriptor();
myDescriptor2.GroupNames.Add("type", ListSortDirection.Ascending);
 
myGridView.MasterTemplate.AutoExpandGroups = true;
myGridView.GroupDescriptors.Add(myDescriptor1);
myGridView.MasterTemplate.AutoExpandGroups = false;
myGridView.GroupDescriptors.Add(myDescriptor2);
 
myGridView.EnableFiltering = true;
myGridView.EnableAlternatingRowColor = true;
myGridView.MasterTemplate.EnableAlternatingRowColor = true;

When I group my data (drag\drop column) while form is running, the alternating row colors are not affected.

Jack
Telerik team
 answered on 23 Jul 2012
1 answer
166 views
Hi All,

i have problem to call Radchart Paint Event...Invalidate() is not working.

Has anybody idea how to call this event ?

thanks lot for answer
alan
Top achievements
Rank 1
 answered on 23 Jul 2012
2 answers
827 views
I've tried setting the wait cursor, gridview.tableElement.text and font properties before initiating data load process and then resetting to empty\default once data is loaded.  No luck using this approach and I can't seem to find much documentation on this.  Thought of approaching this by retrieving data using a separate thread - is this even possible? 

Any help would be greatly appreciated.

thanks
Stefan
Telerik team
 answered on 23 Jul 2012
2 answers
166 views
Hello!
I am trying to remove the background of the dockManager. I want that the toolWindow to be transparent. I attached an image to be more explicit.

Thank you!
Marius
Top achievements
Rank 1
 answered on 23 Jul 2012
0 answers
165 views
Hi,
PersianCalendar is a class for iran country.  I'm going to customize MonthCalendar component in ToolBox to change it to PersianCalendar
that is it will not act as A.D calendar instead it will act as Solar calendar.
In MSDN Forums I get this link which is open source MonthCalendar:
http://reflector.webtropy.com/default.aspx/Dotnetfx_Win7_3@5@1/Dotnetfx_Win7_3@5@1/3@5@1/DEVDIV/depot/DevDiv/releases/whidbey/NetFXspW7/ndp/fx/src/WinForms/Managed/System/WinForms/MonthCalendar@cs/1/MonthCalendar@cs

but has some errors and I can not change it to Persian Calendar!
Can some body help me?
 
Tooraj
Top achievements
Rank 1
 asked on 21 Jul 2012
4 answers
142 views
Hi every one

I want to change XAxes Columns Font,i mean the numbers.
I use this code,but it's not worked

radchart1.Font = new System.Drawing.Font("B Nazanin", 12, FontStyle.Bold);
How can i do that?

Best Regards ...
Saman
Top achievements
Rank 1
 answered on 20 Jul 2012
2 answers
412 views
We use drawcolumnheader event in winform listview for changing font and color of column header.
Can we change these property of header of each column in telerik listview?
for example how can I use smaller font  in my header?
Stefan
Telerik team
 answered on 20 Jul 2012
2 answers
203 views
How Can I allow edit in a multi-columns comboBox ?

I have a list in this combo with two columns (checkBoxColumn and textColumn). The user can check witch column he want's to select. 

The propriety ReadOnly of the comboBox is set as False;
Stefan
Telerik team
 answered on 20 Jul 2012
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?