Telerik Forums
UI for WinForms Forum
2 answers
158 views

With the GroupType set to Resource and the ActiveViewType set to Day I want the All Day Header Height to be set to 15. Everytime I set the height with the GroupType set to Resource it gets reset to the height of 25. As long as the GroupType is set to None the All Day Header Height gets set to the desired size. Here is the code I am currently using to set the height.

'Add any resources that aren't already in the collection
                    For Each nCrew In SelectedCrews
                        If IsNothing(nScheduler.Resources.GetById(nCrew.ID)) = True Then
                            nResource = New Telerik.WinControls.UI.Resource(New EventId(nCrew.ID), nCrew.Name)
                            nResource.Color = Color.Transparent
                            nScheduler.Resources.Add(nResource)
                            nScheduler.Resources.Item(nScheduler.Resources.Count - 1).SetDataItem(nCrew)
                        End If
                    Next nCrew
 
                    Dim nDayView As SchedulerDayView = nScheduler.GetDayView
                    If nDayView IsNot Nothing Then
                        nDayView.DayCount = 1
 
                        nDayView.ShowAllDayArea = True
                        nDayView.ShowHeader = False
 
                        'How many resource columns are displayed (cap at 7)
                        If nScheduler.Resources IsNot Nothing Then
                            If nScheduler.Resources.Count < 7 Then
                                nDayView.ResourcesPerView = nScheduler.Resources.Count
                            Else
                                nDayView.ResourcesPerView = 7
                            End If
                        Else
                            nDayView.ResourcesPerView = 7
                        End If
                    End If
 
                    nScheduler.GroupType = GroupType.Resource
 
                    Dim dayViewElement As SchedulerDayViewGroupedByResourceElement
 
                    If TypeOf nScheduler.SchedulerElement.ViewElement Is Telerik.WinControls.UI.SchedulerDayViewGroupedByResourceElement Then
                        dayViewElement = TryCast(nScheduler.SchedulerElement.ViewElement, Telerik.WinControls.UI.SchedulerDayViewGroupedByResourceElement)
                        If dayViewElement IsNot Nothing Then
                            dayViewElement.ResourceHeaderHeight = 25
                            dayViewElement.ResourcesHeader.Visibility = ElementVisibility.Visible
                            dayViewElement.AllDayHeaderHeight = 15
                        End If
                    End If
 
                    nScheduler.ResumeUpdate()
 
                    'Set up the Time Range on the Calendar
                    SetRuler(Me, nScheduler)

 

 

Brian
Top achievements
Rank 1
 answered on 14 Sep 2016
4 answers
270 views

Hi,

I am using the code below to drag the value of a specific field in a grid towards another grid and it works fine, until the moment that I filter the grid. Then this function returns the rowindex on the screen and not the actual rowindex in the grid.

How do I get the 'real' rownumber in order to drag the right data?

 

Thanks.

 

       private void gridTrekker_MouseDown_1(object sender, MouseEventArgs e)
        {
            var currentCell = gridTrekker.ElementTree.GetElementAtPoint(gridTrekker.PointToClient(Cursor.Position)) as GridDataCellElement;
            if (currentCell != null)
            {
                var rowIndex = currentCell.RowIndex;
                if (rowIndex >= 0)
                {
                    this.gridTrekker.CurrentRow = this.gridTrekker.Rows[rowIndex];
                    this.gridTrekker.CurrentRow.IsSelected = true;
                    gridTrekker.DoDragDrop("T-" + gridTrekker.CurrentRow.Cells["Kenteken"].Value, DragDropEffects.Copy);


                }
               
            }

Hristo
Telerik team
 answered on 14 Sep 2016
1 answer
186 views
Hi,

Do you plan (in nearest feature) to update kendo date picker with better support for mobile devices? (Date picker appears in random places and do not use available space.)
Is there any simple option to turn off kendo date picker if given conditions are met (screen resolution, browser) to use native date pickers?

Our goal is to make our application usable on mobile devices.
Stefan
Telerik team
 answered on 14 Sep 2016
1 answer
87 views

Hello,

Is there way to control the way GridView data is exported to PDF? Right now, the data on the exported PDF(generated using GridViewPdfExport) resembles exactly like that of the Grid. But, I have a different requirement.  Let's say, my Gridview has n number of rows and m number of columns, when I export I would like to see only some data to be displayed on the first page of the exported PDF with links to subsequent pages which would contain additional data.

Thanks,

Santosh

 

Dimitar
Telerik team
 answered on 14 Sep 2016
2 answers
117 views
When using a Radform in Winforms, if I maximize the form it now shows a thick border around the form. This border is transparent and obscures the edge of the form, all the way around. This happens in docking forms too, when floating and maximized. This only happens in Windows XP and Windows 7 - Windows 10 is fine (not tested on Windows 8). This has happened since the latest update - 2016 SP2. Before then this did not happen. Please investigate.
Nick
Top achievements
Rank 1
 answered on 14 Sep 2016
4 answers
243 views

Hi..Telerik Team

How to clear all cells value after binding a data then reload data. Here's my code.

Class Module

    Public Function GetDataTable(ByVal Query As String) As DataTable
        Dim adapter As New SqlDataAdapter()
        Dim mydt As New DataTable()
        Using Conn As New SqlConnection(DBConnection)
            adapter.SelectCommand = New SqlCommand(Query, Conn)
            adapter.Fill(mydt)
        End Using
        Return mydt
    End Function

---> i use above function to binding data into my grid and succeed

- Click NEW button then clear all cells value just loaded.My code as below

    Me.RadGridView1.DataSource = New DataTable()

- Click LOAD button to load another data

    dim vQstr as string = "SELECT * FROM table"

    RadGridView1.DataSource = objDB.GetDataTable(vQStr)

1. problem is when i load another data, my grid didnt show any data. Please kindly help

2. can manually save gridview data records into database by clicking a button, but user allows to add, edit and delete row before do saving

Thank you

Hristo
Telerik team
 answered on 13 Sep 2016
6 answers
290 views
Hello,
  I have a problem when useing the RadTreeView,I want to drag a RadTreeView Nodes to another RadTreeView,but I don't want to remove the RadTreeView Node ,and when dragenter I want out of a dialog box to choose the Node's Childs,then add the childs to another Radtreeviw.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Sep 2016
1 answer
95 views

I have the following aggregate to calculate the count of people in my data.

 

radPivotGrid1.AggregateDescriptions.Add(new PropertyAggregateDescription()
{
PropertyName = "personId",
AggregateFunction = AggregateFunctions.Count
});

 

I want to add a custom aggregate that calculates 5% of the count, always rounding up to the next integer value. For example, if there were 102 people, the customer aggregate would yield 6. (102 * 5% = 5.1 rounded up = 6)

How can I do this?

 

Hristo
Telerik team
 answered on 13 Sep 2016
1 answer
117 views

I just started using the panorama example "Demo Apps Hub".

When run as-is, the application starts slow, but it works as expected.

However, the first simple modification(change Form1's Windowstate property to Maximized) the sample is not behavng as expected.

An blank outline of the designed form width is printed on screen for as much as 1.5 seconds after which the form is resized and updated.

Is there any additional code needed to make the sample behave as one would expect?

 

Thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Sep 2016
12 answers
323 views

I still learning a lot about C# and Telerik. I am trying to figure out what NODE I am moving in a TREEVIEW when I am done moving it.  Any node in my tree can move and any node can be in any position (ROOT or CHILD). I have looked at DragEnded event, but the sender is never the node I have selected and/or moved.I have looked at SelectedNodeChanged, but that fires multiple times during a drag event and while the last one is the correct node, I don't believe this is the correct direction.  As for DragDrop even, this never fires, which I found both weird and interesting, as I have both AllowDragDrop and AllowDrop turned on for the tree view. I am currently using Telerik Winforms version 2016.2.503.40.

 

Thanks in advanced.

 

Mark

Mark
Top achievements
Rank 2
Bronze
Bronze
Veteran
 answered on 12 Sep 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)
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
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?