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
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
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?
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
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
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