Telerik Forums
UI for WinForms Forum
4 answers
257 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
172 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
79 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
112 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
228 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
273 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
87 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
112 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
282 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
1 answer
259 views
Hi,

I have multiple windows of same window form that contains RadDock panel and that all have create new dock window option.
On clicking on Add new dock window, new floating window created to that opened form and it only dock to that form.

I need to dock/undock any window to any form for opened windows.
So how can achieve that?

Thanks
Krunal
Dimitar
Telerik team
 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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?