Telerik Forums
UI for WinForms Forum
5 answers
149 views
Hello!

I know this topic has been discussed here quite often, but I can't get it to work and because they were written a long time ago maybe there are new informations for this.

My target is to add Objects in a RadComboBox or RadListBox (maybe it's supported now).
The first step is to bind a List<Object> to the Controls DataSource, then I fill the List but nothing is drawn/added to the control. If have checked both counts (ComboBox and List), ComboBox is 0 und List not. What is the reason?

Next thing I don't know exactly, is how to get the selected Objects. Im using a workaround by getting the Index of the Item and then getting the real Object from the list using the index. Is this correct or should I use another way?

Maybe someone can give me a solution for this, how to work with ComboBoxes and ListBoxes with my own Objects.

Thanks for your help,
regards
Juergen
Victor
Telerik team
 answered on 29 Mar 2010
2 answers
125 views
Hi Expert,

My question will look maybe really simple but I can't find the way to do it.

1. I want my user to be able to double-click on any part of a row and when this is done I want to be able to know the value of the cell(row user click, column 3)

2. I want to be able to change the back color of some specific rows in blue and some other in white depend of value in the column 3

Thank you for your help.
Jack
Telerik team
 answered on 29 Mar 2010
3 answers
205 views

I have changed this post from the original to focus on the main problem I am having. I am using the newest version of VSB and Winforms in a C# application. The app uses a RadShapedForm with ThemeManager and the repository.xml and theme.xml loaded into it. My RadTitleBar uses three images for the min, max and close buttons as well as three more mouse over buttons. While the gradient fills work on the title bar none of the images show up in the VS2008 designer or at run time. Also I noticed that after loading the saved repository back in the VSB the images are missing there as well. Why aren’t the images showing up in Visual Studio and why does the VSB loose the location of the images after it is saved. I am guessing the VSB is not saving the correct location of the images for some reason but I have no way to check it because the string is not readable. Can anyone help?

I have attaches two images, one is the missing images on the visual studio designer and the other ris the missing images in th VSB after loading the saved repository.

 

Victor
Telerik team
 answered on 29 Mar 2010
1 answer
78 views
Hello !

I create a hiercachical grid bound to 2 tables.If the both tables are empty, when I start to add data, I can add data only to master template .If I press + sign on master template rows, nothing it happens. If i go direct in the child table and insert a value ( direct in sql server)  , after I reload the data in form I can press on plus sign beside of the record in master and everything is working just fine.

What do I do wrong ?

Best regards,
Mihai Velicu



Julian Benkov
Telerik team
 answered on 29 Mar 2010
2 answers
110 views
Hi,

I am in the process of upgrading an exisiting winforms  application that manages room reservations.

Currently we are just showing the reservations in a grid. I am planning to use the RadScheduler to show the reservations.

I already have a Reservation Class as follows.
public class Reservation 
   public int ReservationId { getset; } 
   public DateTime RequestDate { getset; } 
   public string RequestedByName { getset; } 
   public DateTime StartDate { getset; } 
   public DateTime EndDate { getset; } 
   public string Comments { getset; } 
   public int RoomId { getset; } 

How do I go about using the above class to populate the scheduler. The only thing I can think of is to map the above class to the Appointment class for populating the scheduler.  Is there an easier way?

My other question is how do I go about using the Reservation Form that I have already created instead of the Appointment Dialog that the scheduler displays by default when the user wants to edit / create reservations.


thanks



Dobry Zranchev
Telerik team
 answered on 26 Mar 2010
1 answer
120 views
Hello !

Why when I choose Desert theme name , the colour of rad tool strip become green ? Shouldn't be a kind of light brown?
I use Windows xp.

Regards,
Mihai
Nikolay
Telerik team
 answered on 26 Mar 2010
1 answer
82 views
Hi,

I have a data bound grid. The grid is bound to a person object. The person object has a sub object called person_type. The column that displays the person_type should display person_type.description property so I went into the property browser and changed the field name from person_type to person_type.description and closed the property browser. I run my application and everything appears fine. I then tried to edit another property through the property browser but as soon as I opened the browser the person_type column is missing both from the tree on the left as well as the preview on the right. Closing the browser also removed it from the actual control. Running the application again confirms that the column is not there anymore.

Any ideas on what might be happening?
Michael Asimakopoulos
Top achievements
Rank 1
 answered on 26 Mar 2010
2 answers
76 views

Hi to all.

I use Q2 2009 version.

I have this simple table on MS SQL2005:

CREATE TABLE [dbo].[CondizioniPagamento](
 [id_CondizionePagamento] [int] IDENTITY(1,1) NOT NULL,
 [txt_Codice] [varchar](100) NOT NULL,
 [txt_Descrizione] [varchar](100) NOT NULL,
 [fl_DfFm] [bit] NOT NULL,
 [fl_AnnoCommerciale] [bit] NOT NULL,
 [n_DistanzaRata1] [int] NOT NULL,
 [n_DistanzaAltreRate] [int] NOT NULL,
 CONSTRAINT [PK_CondizionePagamento] PRIMARY KEY CLUSTERED
(
 [id_CondizionePagamento] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

with this values:
id_CondizionePagamento   xt_Codice       txt_Descrizione   fl_DfFm  fl_AnnoCommerciale   n_DistanzaRata1  n_DistanzaAltreRate
1                          Cd1           Condizione 1        True           True                60                30
2                          Cd2           Condizione 2        True           False               30                30

If I Use this view for load the RadGridView it's all ok:
SELECT     id_CondizionePagamento AS CodiceInterno, txt_Codice AS Codice, txt_Descrizione AS Descrizione, fl_DfFm AS DF,
                      fl_AnnoCommerciale AS [Anno Commerciale], n_DistanzaRata1 AS [Rata 1], n_DistanzaAltreRate AS [Altre Rate]
FROM         dbo.CondizioniPagamento

but if i change [Anno Commerciale] to [Anno Comm.] the colum if always false (not cheked)

SELECT     id_CondizionePagamento AS CodiceInterno, txt_Codice AS Codice, txt_Descrizione AS Descrizione, fl_DfFm AS DF,
                      fl_AnnoCommerciale AS [Anno Comm.], n_DistanzaRata1 AS [Rata 1], n_DistanzaAltreRate AS [Altre Rate]
FROM         dbo.CondizioniPagamento

Second problem:
If I change the name of the last field, integer,  from [Altre Rate] to [Altre Rate.] (only for example) the colum is always empty

I use this code for to load the radgrid
    Private Sub ElencoCarica()

        Dim Ds As DataSet = getDataSet()

        If Ds Is Nothing Then Return
        If Ds.Tables.Count < 1 Then Return

        RadGridView1.Enabled = True
        RadGridView1.DataSource = Ds.Tables(0)

        With RadGridView1
            For Each colonna As GridViewDataColumn In .Columns
                If colonna.FieldName.ToLower.StartsWith("codiceinterno") Then
                    colonna.IsVisible = False
                End If

                If colonna.DataType.Name = "DateTime" Then
                    colonna.FormatString = "{0:dd/MM/yyyy}"
                End If

            Next
        End With

        RadGridView1.Show()

    End Sub

    Private Function getDataSet() As DataSet
        getDataSet = New DataSet
        If _Query.Length = 0 Then Exit Function

        Try
            Dim Comando As New SqlClient.SqlCommand(_Query, _SqlConnection)
            Dim Da As New SqlClient.SqlDataAdapter(Comando)
            Da.Fill(getDataSet)

        Catch ex As Exception
            MsgBox(ex.Message, MsgBoxStyle.Critical)
        End Try

    End Function

 

Regards
Giovanni

Giovanni
Top achievements
Rank 1
 answered on 26 Mar 2010
1 answer
118 views
Hello Telerik

We have an app using Q3 2009 Sp1.  Awesome controls BTW. 

Using RadDock, I have a single toolwindow docked to the left, and a single tabbed document to the right.  I want to use the autohide feature of the Docked Window and the resizing feature of the vertical splitter bar of the raddock.  All works well but I don't want to see the caption bar (or titlebar) on top of the toolwindow now the tab area on top of the tabbed document, since there's only one tab.

2 questions:

1- How can I collapse the caption bar (or titlebar) of a docked toolwindow?  Obviously no buttons will be visible. 

2- How can I collapse the tab area of the tabbed documents?  I can hide the tabs but the tab area isn't collapsed.

Thanks

Alain
 
Nikolay
Telerik team
 answered on 26 Mar 2010
5 answers
229 views
Is it possible to do conditional formatting based on the property of the value, in addition to the value.

For example, format red if value.Length > 50?

Thank you.
Jack
Telerik team
 answered on 25 Mar 2010
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
+? 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?