Telerik Forums
UI for WinForms Forum
1 answer
160 views

Hello,

I need to display custom controls ( two labels and image or panel ) in single cell.

Could you please tell me the way to achieve  this?

Thanks,
Amol Wable

Jack
Telerik team
 answered on 12 Apr 2010
1 answer
184 views
Hi !

I have a grid with 3 columns, one string, one string and one boolean.

I validate the new row with RowValidating. Work very nice .I put some code if the string columns are empty E.cancel = true .If all the fields are empty even if I press enter or tab the empty row is not added to already existent rows in grid. Nice.
BUT
If I add DefaultValuesNeeded event and I give to the boolean column a value of true, the behaviour of RowValidating is changing.Now If I press enter in any string columns , the row is added to the existent rows in grid, of course with the string values empty,and is not what I expected.

Can someone explain me how to avoid this ?

Regards,
Mihai


Jack
Telerik team
 answered on 12 Apr 2010
5 answers
208 views
I have a custom Appointment Edit Dialog working but can not move the Buttons (OK, Cancel... etc) because they are locked in the parent dialog.

Is there a way to unlock these buttons so they can be moved?

THe idea is when you resized the Custom Dialog, inherited, you need to move the buttons further down the layout.
Boyko Markov
Telerik team
 answered on 12 Apr 2010
1 answer
185 views
Hi Experts,

I would like to know if it's possible to create a drop down calendar with Rad Components? If yes, can you give me some hints to create one. I would like this combo Box look like Microsoft Outlook Task scheduler.

Thank you

Nadia Sangiovanni
Top achievements
Rank 1
 answered on 12 Apr 2010
5 answers
180 views
Hi!

I'm trying to localize the datetimepicker of a Date column in a RadGridView. I was able to easily localize the RadCalendar using the CultureInfo property, but could find no similar property in RadGridView, and no documentation on how to perform the task at hand.

Thank you for your help.
Svett
Telerik team
 answered on 12 Apr 2010
3 answers
364 views

Hi,

My problem is with RadForm. When I create a descendant from RadForm and put on it many telerik components, then I see application memory is increasing every time I open that form. I have prepared a small example: there are two forms: first form is just standard .NET form with button to open RadForm and then ask GC about Total used memory. I have used version 2009.2.729 and the problem was with one form, which after 100 times of opening and closing results in about 2 gigabytes of allocated memory. I have checked the last version of Telerik WinForms 2009.3.9.1203, but it still allocates more memory every next time.

The explicit call to garbage collector does not help.

And why I can't attach zip file ?

You can download the zip archive (17 kb) from here http://rapidshare.com/files/367983868/TelerikCheck.zip.html

The single method I have write is following :

private void button1_Click(object sender, EventArgs e) {

  FormTelerik form = new FormTelerik();

  DialogResult res  =form.ShowDialog();

  form.Dispose();

  form = null;

  long bytes  = GC.GetTotalMemory(true);

  textBox1.Text = string.Format("{0:F3} Megabytes", 1.0*bytes/1024/1024);


Deyan
Telerik team
 answered on 12 Apr 2010
2 answers
387 views
Hi !

I have a grid and one of the column is multi column combo box. Everything works fine.
When I want to resize RadMultiColumnComboBoxElement, I found it particulary very hard.Is not working for example like rad grid in this code:
rdgv.MasterGridViewTemplate.BestFitColumns()

Practically I had to re size it manually.

This is my code and my question is ; Is any way to resize RadMultiColumnComboBoxElement like rad grid control, only specifying a property like BestFitColumns ?

My code for the grid and multicolumnComboBox column :

Private Sub ConfigureGridView(ByVal dtEmpJob As DataTable, ByVal dtListEmployees As DataTable)

        If dtEmpJob Is Nothing OrElse dtListEmployees Is Nothing Then
            Return
        End If

        rdgv.DataSource = dtEmpJob
        Me.rdgv.MasterGridViewTemplate.Columns("EmpNo").HeaderText = "Emp.No"
        Me.rdgv.MasterGridViewTemplate.Columns("Active").HeaderText = "Active"

        Dim col As GridViewDataColumn = TryCast(rdgv.MasterGridViewTemplate.Columns("EmpFullName"), GridViewDataColumn)

        If Not col Is Nothing Then
            rdgv.MasterGridViewTemplate.Columns.Remove(col)
        End If

        Dim col1 As GridViewMultiComboBoxColumn = New GridViewMultiComboBoxColumn
        col1.DataSource = dtListEmployees
        col1.DisplayMember = "EmpFullName"
        col1.ValueMember = "pEmployeeId"
        col1.FieldName = "EmpNo"
        col1.HeaderText = "Custom"
        rdgv.MasterGridViewTemplate.Columns.Add(col1)
        AddHandler rdgv.CellBeginEdit, AddressOf rdgv_CellBeginEdit

        rdgv.MasterGridViewTemplate.BestFitColumns()

        Me.rdgv.MasterGridViewTemplate.Columns("EmpNo").Index = 0
        Me.rdgv.MasterGridViewTemplate.Columns("EmpNo1").Index = 1
        Me.rdgv.MasterGridViewTemplate.Columns("Active").Index = 2
    End Sub


    Private isColumnAdded As Boolean
--------------------------------------the  CODE WHERE I HAD TO RESIZE MULTICOLUMN COMBOBOX----------------------------------------------
    Private Sub rdgv_CellBeginEdit(ByVal sender As Object, ByVal e As GridViewCellCancelEventArgs)
        If TypeOf Me.rdgv.CurrentColumn Is GridViewMultiComboBoxColumn Then
            If (Not isColumnAdded) Then
                isColumnAdded = True

                Dim multiColumnComboElement As RadMultiColumnComboBoxElement = CType(Me.rdgv.ActiveEditor, RadMultiColumnComboBoxElement)
                multiColumnComboElement.EditorControl.MasterGridViewTemplate.AutoGenerateColumns = False

                multiColumnComboElement.DropDownSizingMode = SizingMode.UpDownAndRightBottom
                multiColumnComboElement.DropDownMinSize = New Size(300, 100)

                Dim column As New GridViewTextBoxColumn("pEmployeeId")
                column.HeaderText = "Emp No"
                column.Width = 60
                multiColumnComboElement.Columns.Add(column)
                column = New GridViewTextBoxColumn("EmpFullName")
                column.HeaderText = "Employee"
                column.Width = 120
                multiColumnComboElement.Columns.Add(column)

                multiColumnComboElement.BestFitColumns()
                multiColumnComboElement.AutoSizeDropDownToBestFit = True

            End If
        End If
    End Sub


Regards,
Mihai








Mihai Velicu
Top achievements
Rank 1
 answered on 09 Apr 2010
1 answer
526 views
I would like to create a new a new user control taht consists of a RadLabel and RadCombo box control. When I click add User Control, I do not see a template for a "Telerik Rad User Control". If I create a regular user control and try to change it's inheritance from UserControl to RadControl or even RadCustomControl I can't work with the result. Suggestions on how to do this?
Nikolay
Telerik team
 answered on 09 Apr 2010
2 answers
114 views
What is the best way to get the max levels of a treeview instead of looping throw the nodes.  Is there a property in the control that gets the max levels or should I just create a recursive function to loop through each node for children?

thanks Stephen
steve
Top achievements
Rank 1
 answered on 09 Apr 2010
3 answers
99 views
In version Q1 2010 there is no DataSource field for GridViewComboBox in Property builder.
Julian Benkov
Telerik team
 answered on 09 Apr 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?