Telerik Forums
UI for WinForms Forum
1 answer
191 views

Hi,

I am new in here. I hope someone will help me.I'm writing this peace of code to check if the inputted text are correct and change the color my text if it is wrong

My error is on SelectionStart and SelectionColor

Please see below my code

Private Sub RadRichTextEditor1_TextChanged(sender As Object, e As EventArgs) Handles RadRichTextEditor1.TextChanged
       Dim ValuetoCheck= RadRichTextEditor2.Text
       Dim ArrayValue() As String = W.Split(" ")
         For Each searchword As String In ValuetoCheck
           Dim index As Integer = 0
           While index <> -1
               index = RadRichTextEditor1.Text.IndexOf(searchword, index)
               If index <> -1 Then
                   If index = RadRichTextEditor1.Text.Length - searchword.Length - 1 Then
                       RadRichTextEditor1.SelectionStart = index
                       RichTRadRichTextEditor1extBox1.SelectionLength = searchword.Length
                       RadRichTextEditor1.SelectionColor = Color.Black
                       RadRichTextEditor1.SelectionStart = RadRichTextEditor1.Text.Length
                       Exit Sub
                   Else
                       index += 1
                   End If
               Else
                   RadRichTextEditor1.SelectionStart = n
                   RadRichTextEditor1.SelectionColor = Color.Red
               End If
           End While
       Next ' added
   End Sub

Dimitar
Telerik team
 answered on 24 Nov 2015
2 answers
108 views

Hi There,

 

I am using expression to define some special function for the format.

I have 2 questions:

1) my function is like

Public Class CustomExpressionContext
    Inherits Telerik.Data.Expressions.ExpressionContext
    Public Function formatAddress(ClientName As String, rawAdd As String) As String
        rawAdd = rawAdd.Replace("{}", vbCrLf)
        rawAdd = rawAdd.Replace("{lf}", ClientName & vbCrLf)
        rawAdd = rawAdd.Replace(vbCrLf & vbCrLf, vbCrLf)
        Return rawAdd
    End Function
End Class

when I use ColumnRawAdd.expression = "formatAddress(AliasName, RawAddresses)"   where ColumnRawAdd is the column for "RawAddresses"

I got exception like "RawAddresses is not defined in the context"

if I use a new column, and set newcolumn.expression = "formatAddress(AliasName, RawAddresses)"  

then there is no problem. Is there something I need to set or check for ColumnRawAdd so I can use ColumnRawAdd for it?

 

2)newcolumn is working fine, but if I LoadLayout for alll the columns first, then define newcolumn.expression = "formatAddress(AliasName, RawAddresses)"  

then the newcolumn is empty, without any exception. What should I do here to have newcolumn have value?

 

Thanks.

 

Ada

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Nov 2015
1 answer
219 views

I constructed a RadGridView and would like to use its content for my RadChartView to create a pie chart, but so far nothing shows up.

For RadGridView I would have five columns.

Name     Count     C     D     E

 Germany  20

France      50

I would only use the "Name" and Count" column to construct my pie chart but not "C", "D", and "E" columns, so it would be a percentage chart with Germany 20/70 and France 50/70. How do I use these two columns of the RadGridView for my RadChartView?

Dimitar
Telerik team
 answered on 23 Nov 2015
1 answer
297 views
I need something like BesFitColumns() for rows. I know that I can use AutoSizeRows, but it has problem with cells that have long multiline content. I attached screenshot. Please check it.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Nov 2015
2 answers
1.0K+ views

Dear Telerik,

 I'm currently using the version 2013.2.612.40. My requirement are to get the ListViewDataItem when the user right click. I'm using the DetailsView.

Basically the user right click in one item, the last get selected and later i can do some other processing.

Unfortunately i cannot get it done. I have seen the following post that does not work http://www.telerik.com/forums/select-an-item-in-listbox-control-on-mousedown-event

Any help please

 

Evald
Top achievements
Rank 1
 answered on 23 Nov 2015
7 answers
214 views

Hi there,

I'm encountering a problem when using the RadTreeView control to display sibling nodes with different text lengths.

The text for the nodes is not being uniformly left aligned - even when I explicitly set this for each node using 

     fooNode.TextAlignment = ContentAlignment.MiddleLeft

Please see the attached image for an example of the issue - I've highlighted the affected nodes in orange.​

To set the control's font I'm using

    radTreeView.Font = new Font("Microsoft Sans Serif", 8.25F, GraphicsUnit.Point);

 

I'd be really grateful if anyone could please advise on how I could get my node text lining up perfectly ! 

thanks a lot 

James

 

Dimitar
Telerik team
 answered on 23 Nov 2015
1 answer
6.9K+ views
for(int i =0; i<radGridView.rows.count;i++)
{
               if(RadGridview.Rows[i].Cells[0].value.ToString().Equlas("100")
                       {
                                 //change row color in radgridview
}
}
Ralitsa
Telerik team
 answered on 23 Nov 2015
1 answer
153 views

I am currently using a HtmlViewDefinition() in a template to get a custom view in a hierarchy(Picture down below). My question is if there is a way to make the text box (notes)  a RichTextEditor-Like box.

I am using a TextBox Column in the picture below with WrapText set to true and AutoSizeRows set to true as well

Thank you

Stefan
Telerik team
 answered on 23 Nov 2015
1 answer
134 views
So is this control meant to allow users to design some forms?  From the documentation, it does not appear offering me anything that I can't already do with anchoring controls correctly.  Please enlighten me!
Ralitsa
Telerik team
 answered on 20 Nov 2015
8 answers
1.1K+ views
Hi,

How can I set the dropdownbutton background color to transparent?
I can get the main part of the button to be transparent, but when I hit the dropdown the backgound color is not changing.

I have tried to edit the fill primitive via the Edit IU elements but with no luck.

Cheers

Shaun


Oliver
Top achievements
Rank 1
 answered on 20 Nov 2015
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
AI Coding Assistant
+? 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?