Telerik Forums
UI for WinForms Forum
14 answers
289 views
Hi There:

I really liked the antimated 'Home' page of your WinForm Demo.  However, when I open up the solution, I don't see a 'Startup Object' listed. Can you tell me where in the project sample folders I can find that 'Home' form?  I'd like to learn how to do up a home page with animation like that in my winForm application.

Thanks!
Stefan
Telerik team
 answered on 23 May 2016
1 answer
230 views
Can the CardView be forced to list items in a single column vertically, instead of expanding out horizontally into multiple columns?  I can't seem to find a property to set this, but I could just be overlooking it.

 

 

redshift20
Top achievements
Rank 1
 answered on 20 May 2016
3 answers
811 views

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);
        }
    }
}

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 May 2016
1 answer
119 views

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

Andreas Haeusler
Top achievements
Rank 2
 answered on 20 May 2016
1 answer
69 views

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.

 

Hristo
Telerik team
 answered on 19 May 2016
1 answer
161 views

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.

 

Dimitar
Telerik team
 answered on 19 May 2016
2 answers
547 views

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;
}

Hristo
Telerik team
 answered on 19 May 2016
3 answers
240 views

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.

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 May 2016
5 answers
411 views
I have 2 ChartView's with trackballs.  I want to mouse over one 1 graph that shows the trackball and programatically position the second graphs trackball dependent upon where I am mouse overing on the the first graph.  What approach should I take? 

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 May 2016
1 answer
124 views

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

 

Hristo
Telerik team
 answered on 18 May 2016
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
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
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?