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


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

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


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?

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!

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