Hi!
I want to change the background color of the selected row, i also want some headings to have a different color. So far so good..When I click on the "Add new row" I don't want the selected row to go back to the default color, but stay the way it was. Any suggestions on how to accomplish that? This is my code so far:
private void rgv_RowFormatting(object sender, RowFormattingEventArgs e)
{
if (e.RowElement is GridDataRowElement)
{
if (e.RowElement.RowInfo.IsCurrent) //Selected row
{
e.RowElement.BackColor = Color.PaleVioletRed;
e.RowElement.GradientStyle = GradientStyles.Solid;
e.RowElement.DrawFill = true;
}
else if ((int)e.RowElement.RowInfo.Cells["Heading"].Value == 1) //Color on heading
{
e.RowElement.BackColor = Color.GreenYellow;
e.RowElement.GradientStyle = GradientStyles.Solid;
e.RowElement.DrawFill = true;
}
else //Reset color
{
e.RowElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
e.RowElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local);
e.RowElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
}
}
}
Is there a way to preserve a cells HTML like formatting when printing a gridview? Printing and exporting to PDF both show the markup instead of the formatted text.
see attached files
kind regards,
Andreas
Hi,
I have a RadRibbonForm which uses RadDock with four split panes. Everything looks great apart from two glitches.
My RadGrid is set to dockstyle = FILL and when the form is resized it (the grid) sizes accordingly. If the form is mazimized it stays the same size then 'fills' when you click the grid.
The second issue is when the RibbonForm is mazimized ti takes up the entire screen - meaning the bottom part of the form (a status strip with sizing grip) goes 'behind' the Windows Task Bar. I am currently running is Windows 7 64-Bit.
Thanks
Martin.
Hi
Apologies if this thread is in the wrong place, I wasn't sure which sub-category was appropriate.
Basically I have a client moving from another system and they have thousands of RadDocuments in there database stored in Xaml and I need to be able to convert them to DocX format.
I thought this would be a simple process but I have hot a wall.
As a test I created a simple WinForm app with the following code:
1.
var xaml = textBox1.Text;
2.
var xamlProvider =
new
XamlFormatProvider();
3.
var radDoc = xamlProvider.Import(xaml);
However, this throws an exception on the third line:
Cannot create unknown type '{clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents}RadDocument'.
Here is the Xaml I'm trying to import:
<
t:RadDocument
xmlns
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:t
=
"clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents"
xmlns:s
=
"clr-namespace:Telerik.Windows.Documents.Model.Styles;assembly=Telerik.Windows.Documents"
xmlns:r
=
"clr-namespace:Telerik.Windows.Documents.Model.Revisions;assembly=Telerik.Windows.Documents"
xmlns:n
=
"clr-namespace:Telerik.Windows.Documents.Model.Notes;assembly=Telerik.Windows.Documents"
xmlns:th
=
"clr-namespace:Telerik.Windows.Documents.Model.Themes;assembly=Telerik.Windows.Documents"
version
=
"1.2"
LayoutMode
=
"Paged"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
ParagraphDefaultSpacingAfter
=
"0"
ParagraphDefaultSpacingBefore
=
"0"
SelectedBibliographicStyleName
=
"\APA.XSL"
StyleName
=
"defaultDocumentStyle"
>
<
t:RadDocument.Captions
>
<
t:CaptionDefinition
IsDefault
=
"True"
IsLinkedToHeading
=
"False"
Label
=
"Figure"
LinkedHeadingLevel
=
"0"
NumberingFormat
=
"Arabic"
SeparatorType
=
"Hyphen"
/>
<
t:CaptionDefinition
IsDefault
=
"True"
IsLinkedToHeading
=
"False"
Label
=
"Table"
LinkedHeadingLevel
=
"0"
NumberingFormat
=
"Arabic"
SeparatorType
=
"Hyphen"
/>
</
t:RadDocument.Captions
>
<
t:RadDocument.ProtectionSettings
>
<
t:DocumentProtectionSettings
EnableDocumentProtection
=
"False"
Enforce
=
"False"
HashingAlgorithm
=
"None"
HashingSpinCount
=
"0"
ProtectionMode
=
"ReadOnly"
/>
</
t:RadDocument.ProtectionSettings
>
<
t:RadDocument.Styles
>
<
s:StyleDefinition
DisplayName
=
"Document Default Style"
IsCustom
=
"False"
IsDefault
=
"False"
IsPrimary
=
"True"
Name
=
"defaultDocumentStyle"
Type
=
"Default"
>
<
s:StyleDefinition.ParagraphStyle
>
<
s:ParagraphProperties
LineSpacing
=
"1"
SpacingAfter
=
"0"
/>
</
s:StyleDefinition.ParagraphStyle
>
<
s:StyleDefinition.SpanStyle
>
<
s:SpanProperties
FontFamily
=
"Verdana"
FontSize
=
"16"
FontStyle
=
"Normal"
FontWeight
=
"Normal"
/>
</
s:StyleDefinition.SpanStyle
>
</
s:StyleDefinition
>
<
s:StyleDefinition
DisplayName
=
"Normal"
IsCustom
=
"False"
IsDefault
=
"True"
IsPrimary
=
"True"
Name
=
"Normal"
Type
=
"Paragraph"
/>
<
s:StyleDefinition
DisplayName
=
"TableNormal"
IsCustom
=
"False"
IsDefault
=
"True"
IsPrimary
=
"True"
Name
=
"TableNormal"
Type
=
"Table"
>
<
s:StyleDefinition.TableStyle
>
<
s:TableProperties
CellPadding
=
"5,0,5,0"
>
<
s:TableProperties.TableLook
>
<
t:TableLook
/>
</
s:TableProperties.TableLook
>
</
s:TableProperties
>
</
s:StyleDefinition.TableStyle
>
</
s:StyleDefinition
>
</
t:RadDocument.Styles
>
<
t:Section
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:FieldRangeStart
AnnotationID
=
"1"
>
<
t:MergeField
DateTimeFormatting
=
""
DisplayMode
=
"Result"
GeneralFormatting
=
""
NumericFormatting
=
""
PropertyPath
=
"Provider"
/>
</
t:FieldRangeStart
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
Text
=
"Aviva Life"
/>
<
t:FieldRangeEnd
AnnotationID
=
"1"
/>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
Text
=
" & Pensions"
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
Text
=
"One Park Place"
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
Text
=
"Hatch Street"
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
Text
=
"Dublin 2"
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
TextAlignment
=
"Right"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:FieldRangeStart
AnnotationID
=
"2"
>
<
t:MergeField
DateTimeFormatting
=
""
DisplayMode
=
"Result"
GeneralFormatting
=
""
NumericFormatting
=
""
PropertyPath
=
"Date"
/>
</
t:FieldRangeStart
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
ForeColor
=
"#FF000000"
Text
=
"24 April 2014"
/>
<
t:FieldRangeEnd
AnnotationID
=
"2"
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
FontStyle
=
"Italic"
FontWeight
=
"Bold"
ForeColor
=
"#FF000000"
Text
=
"Re : "
/>
<
t:FieldRangeStart
AnnotationID
=
"3"
>
<
t:MergeField
DateTimeFormatting
=
""
DisplayMode
=
"Result"
GeneralFormatting
=
""
NumericFormatting
=
""
PropertyPath
=
"Provider"
/>
</
t:FieldRangeStart
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
FontStyle
=
"Italic"
FontWeight
=
"Bold"
ForeColor
=
"#FF000000"
Text
=
"Aviva Life"
/>
<
t:FieldRangeEnd
AnnotationID
=
"3"
/>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
FontStyle
=
"Italic"
FontWeight
=
"Bold"
ForeColor
=
"#FF000000"
Text
=
" "
/>
<
t:FieldRangeStart
AnnotationID
=
"4"
>
<
t:MergeField
DateTimeFormatting
=
""
DisplayMode
=
"Result"
GeneralFormatting
=
""
NumericFormatting
=
""
PropertyPath
=
"ProductType"
/>
</
t:FieldRangeStart
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
FontStyle
=
"Italic"
FontWeight
=
"Bold"
ForeColor
=
"#FF000000"
Text
=
"ARF"
/>
<
t:FieldRangeEnd
AnnotationID
=
"4"
/>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
FontStyle
=
"Italic"
FontWeight
=
"Bold"
ForeColor
=
"#FF000000"
Text
=
" "
/>
<
t:FieldRangeStart
AnnotationID
=
"5"
>
<
t:MergeField
DateTimeFormatting
=
""
DisplayMode
=
"Result"
GeneralFormatting
=
""
NumericFormatting
=
""
PropertyPath
=
"PolicyNumber"
/>
</
t:FieldRangeStart
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
FontStyle
=
"Italic"
FontWeight
=
"Bold"
ForeColor
=
"#FF000000"
Text
=
"91445684"
/>
<
t:FieldRangeEnd
AnnotationID
=
"5"
/>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
FontStyle
=
"Italic"
FontWeight
=
"Bold"
ForeColor
=
"#FF000000"
Text
=
" "
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
Text
=
"I wish to take a one off withdrawal of €10,000 NET from the above policy."
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
Text
=
"Please forward payment at your earliest convenience."
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
ForeColor
=
"#FF000000"
Text
=
"I trust you will find the above in order but please contact me should you have any queries."
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
ForeColor
=
"#FF000000"
Text
=
"Kind regards"
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"16"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
ForeColor
=
"#FF000000"
Text
=
"_________________________________"
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:FieldRangeStart
AnnotationID
=
"6"
>
<
t:MergeField
DateTimeFormatting
=
""
DisplayMode
=
"Result"
GeneralFormatting
=
""
NumericFormatting
=
""
PropertyPath
=
"ClientName"
/>
</
t:FieldRangeStart
>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
FontStyle
=
"Normal"
FontWeight
=
"Bold"
ForeColor
=
"#FF000000"
Text
=
"Mr Barry Donnellan"
/>
<
t:FieldRangeEnd
AnnotationID
=
"6"
/>
<
t:Span
FontFamily
=
"Arial"
FontSize
=
"16"
FontStyle
=
"Normal"
FontWeight
=
"Bold"
ForeColor
=
"#FF000000"
Text
=
" "
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"2"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
t:FieldRangeStart
AnnotationID
=
"7"
>
<
t:MergeField
DateTimeFormatting
=
""
DisplayMode
=
"Result"
GeneralFormatting
=
""
NumericFormatting
=
""
PropertyPath
=
"ConsultantTitle"
/>
</
t:FieldRangeStart
>
<
t:FieldRangeEnd
AnnotationID
=
"7"
/>
</
t:Paragraph
>
<
t:Paragraph
FontSize
=
"16"
LeftIndent
=
"0"
LineSpacing
=
"1"
LineSpacingType
=
"Auto"
SpacingAfter
=
"0"
>
<
t:Paragraph.ParagraphSymbolPropertiesStyle
>
<
s:SpanProperties
FontFamily
=
"Arial"
FontSize
=
"16"
/>
</
t:Paragraph.ParagraphSymbolPropertiesStyle
>
</
t:Paragraph
>
<
t:Paragraph
/>
</
t:Section
>
</
t:RadDocument
>
Appreciate any help you can give me to get this working.
Thanks.
I have a RadCheckedListBox bound to a list of objects. The RadCheckedListBox's CheckedMember value corresponds to the "IsChecked" property on each object.
Updating that property value on the objects does not update the view on the RadCheckedListBox until the RadCheckedListBox receives focus. Surely this not by design?
Windows 7 Ultimate SP1
.NET 4.5
UI for WinForms Q2 2016
2016.2.503.40
C# code example:
// This code is a simple WinForms project that has a RadCheckedListBox and a regular WinForms CheckBox.
// When the checkbox is checked/unchecked, the "IsChecked" property of the first item in the list (not the control) is toggled.
// Because of the data binding, the first item in the RadCheckedListBox control should be visually updated to reflect the updated state.
public class SimpleObject
{
public int Id { get; set; }
public string Name { get; set; }
public bool IsChecked { get; set; }
}
private IEnumerable<SimpleObject> CreateSimpleObjects()
{
List<SimpleObject> data = new List<SimpleObject>()
{
new SimpleObject() { Id = 1, Name = "Item1", IsChecked = false },
new SimpleObject() { Id = 2, Name = "Item2", IsChecked = true },
new SimpleObject() { Id = 3, Name = "Item3", IsChecked = true },
new SimpleObject() { Id = 4, Name = "Item4", IsChecked = false },
new SimpleObject() { Id = 5, Name = "Item5", IsChecked = false },
new SimpleObject() { Id = 6, Name = "Item6", IsChecked = true }
};
return data;
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
var firstItem = this.radCheckedListBox1.Items[0].DataBoundItem as SimpleObject;
firstItem.IsChecked = !firstItem.IsChecked;
// // This makes it work as expected.
// var activeControl = this.ActiveControl;
// this.ActiveControl = this.radCheckedListBox1;
// this.ActiveControl = activeControl;
}
Hi,
I have an issue with my radAutoCompleteBox :
The displayMember is the name of the customer... but there is many duplicated names in my datasource.
There isn't any problems when user select a new item, the issue is when the autoCompleteBox is initialized.
Example :
I have 3 customers :
Id Name
1 Smith
2 Smith
3 Smith
If user select "Smith" with the ID 2 by the autoCompleteBox, there isn't any problems, the Value of "Smith" will be 2.
But if i want to initialize my autoCompleteBox with "Smith" (2), i can only do this (for me) : autoCompletebox.Text = "Smith".
So, the value of "Smith" will be 1 (and not 2) because autoCompleteBox will take the first value he find.
Is there another way to add items to my autoCompleteBox (something like autoCompleteBox.Items.Add("Smith", 2)) ?
I specify that duplicate rows are normal here, another column is displayed in the dropdownlist of the autoCompleteBox with the customer ID and other fields.
Thank you for your time, i hope you have a solution to help me.
I met this strange problem during compiling VS say me that there is an error about TelerikExport.dll, this is one of several warning error (that blocks compiler)
impossibile risolvere il riferimento primario "TelerikExport" perché include una dipendenza indiretta all'assembly .NET Framework "System.Printing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" la cui versione "4.0.0.0" è successiva alla versione "3.0.0.0" nel framework di destinazione corrente.ModuloMaschere
It seems that this dll needs dependence of assembly compiled with FW 4.0, but version assembly id 2016.2.503.20 and not 2016.2.503.4,
is it a mistake?
My project is developed with FW 3.5