Telerik Forums
UI for WinForms Forum
1 answer
150 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
103 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
108 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
150 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
276 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
1 answer
189 views
Hello
I need to impalement a tree view  with full row and ShowLines
Like what you see in the picture attached
Is it possible? and How

Thanks
Meir

Victor
Telerik team
 answered on 25 Mar 2010
5 answers
250 views
How do I instruct Combobox to use different type of RadComoboxItem  while still being to able to databind using Databindings or datasource ?
Victor
Telerik team
 answered on 25 Mar 2010
5 answers
190 views
Running your demos for Drag and Drop in the TreeView leaves me puzzled...

When dragging the "Unread Mail" node in the left treeView and then dropping it on the "Inbox" node the textBox on the right ("radTextBox1") displays the previous sibling node "Large Mail". It is also "Large Mail" that is displayed during the actual dragging.

What am I missing here? I really need the correct node as I have a corresponding XML document thet I need to manipulate based on drag and drop in the treeView.

<update>
Just tried running the same code on a couple of other pc's and they are working just fine. The problem is consistent on my own pc though. Any ideas as to what might be wrong?
</update>

Thanks in advance

Claus
Victor
Telerik team
 answered on 25 Mar 2010
1 answer
84 views
I have 3 tables as below.
Terms   (TID, Tname)
TermConditions  (TCID ,  FK_TID,  TCName)
SelectedTermsAndConditions. (RowID,  FK_TID, FK_TCID , SomeDescription)

I have a dataset.xsd  and i have set relation between Terms and TermConditions tables. (Lets say name of Relation is "TTC") 

In a Winform, i have a grid whose datasource =  SelectedTermsAndConditions.
I added Two Lookup columns to display TName and TCName for FK_TID, FK_TCID colums respectively  
I  set  their datasource as below.
FK_TID.DataSource = Terms  
FK_TCID.DataSouce = Terms.TTC   (The Relation).

When the grid is displayed only for 1st row of SelectedTermsAndConditions I get TName and TCName  correctly.
From 2nd Row onwards TCName  remains null.
(Note when I try to edit,  both lookupcolumns as a dropdownbox appear to behave normally. meaning when i choose TName, it filters and displays child values in TCName lookupcolumn).   but somehow it looks like while displaying grid it is not able to get child values for each row.

Hoping my above explaination was clear to understand problem scenario.

-Lee.









Julian Benkov
Telerik team
 answered on 25 Mar 2010
1 answer
255 views
Hello,

when I have a RadComboBox ( DataSource is  ObjectView )  on a RadSplitContainer it works, until I close the Solution. When I reopen the solution, run the program and I want to expand the ComboBox, I get an InvalidOperationException "Element already added". Only if I  completely delete the ComboBox and  create a new one, it works until I close and open the solution again.

WinControls-Version is 2010.1.10.308
OpenAccess-Version is 2010.1.310.2

Regards
Roland 

i found, that, if I make one or more copies  (<Ctrl>C, <Ctrl>V )  of the RadComboBox or if I move the ComboBox to a Windows, which is not a SplitContainer, it works.  The error occurs alwas in the first ComboBox in the SplitContainer.   If I delete the CombBox, where the error happens, the error happens on the next ComboBox.


here the exception-detail:

 

System.InvalidOperationException wurde nicht behandelt.

Message=

"Element already added"

 

 

Source=

"Telerik.WinControls"

 

 

StackTrace:

bei Telerik.WinControls.RadElementCollection.CheckElementAlreadyAdded(RadElement element)

bei Telerik.WinControls.RadElementCollection.OnInsert(Int32 index, Object value)

bei System.Collections.CollectionBase.System.Collections.IList.Add(Object value)

bei Telerik.WinControls.RadElementCollection.Add(RadElement value)

bei Telerik.WinControls.MeasurementControl.GetDesiredSize(RadElement element, SizeF availableSize)

bei Telerik.WinControls.UI.RadComboBoxElement.GetInitialPopupSize()

bei Telerik.WinControls.UI.PopupEditorBaseElement.ShowPopup()

bei Telerik.WinControls.UI.RadComboBoxElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)

bei Telerik.WinControls.RadElement.DoMouseDown(MouseEventArgs e)

bei Telerik.WinControls.RadElement.CallDoMouseDown(MouseEventArgs e)

bei Telerik.WinControls.ComponentInputBehavior.OnMouseDown(MouseEventArgs e)

bei Telerik.WinControls.RadControl.OnMouseDown(MouseEventArgs e)

bei System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)

bei System.Windows.Forms.Control.WndProc(Message& m)

bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)

bei Telerik.WinControls.RadControl.WndProc(Message& m)

bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)

bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

bei System.Windows.Forms.Application.Run(Form mainForm)

bei GUI1.Program.Main()

in C:\Projekte\Test\3TierArchitectur2\GUI1\Program.cs:Zeile 18.

 

bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)

bei System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)

bei System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)

bei System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()

bei System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)

bei System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)

bei System.Activator.CreateInstance(ActivationContext activationContext)

bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()

bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)

bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

bei System.Threading.ThreadHelper.ThreadStart()

InnerException:

 




Victor
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?