Telerik Forums
UI for WinForms Forum
19 answers
822 views

Hi Telerik

in the gridview paging is it possible to show the row count instead of page Count ?

if not

i put a text box and put the row count in it

in load i put RowCount of the grid

my problem is after filter

row count does not change after search i found this

this.radGridView1.ChildRows.Count;

but this show only the page size if the row count after filter=60

and page size=20 this statement return 20 

how to get the full row count after filter

 

thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Dec 2019
5 answers
170 views

Hi team,

is there any way to read what is selected (single or multi select) when I click on folder/file in Explorer control?
Basically, I want to update my textbox with that what is selected.

Thx,
Oliver

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Dec 2019
2 answers
875 views

I have a user control in VB.Net which creates a dynamic RadDropDownList at runtime.  The create code is as follows

    Private Sub SetControl()
        Try
                        Dim list As New RadDropDownList
                        list.Font = mFont
                        list.Location = New Point(213, 0)
                        list.Size = New Size(225, 25)
                        LoadList(list)
                        list.Name = "userCTRL"
                        Me.Controls.Add(list)
        Catch ex As Exception
            Dim x As String = ex.Message
        End Try
    End Sub

    Private Sub LoadList(ByRef lst As RadDropDownList)

        Dim strSQL As String = "SELECT AssetTypeAttributeListValueId, Label FROM dbo.AssetTypeAttributeListValue WHERE AssetTypeAttributeId = " & AttributeTypeId & " ORDER BY SortOrder"
        Dim ds As DataSet = CLIB_MAPPS.Configuration.DBAccess.getDataSet(strSQL, "Attribute")
        If ds.Tables(0).Rows.Count > 0 Then
            lst.ValueMember = "AssetTypeAttributeListValueId"
            lst.DisplayMember = "Label"
            lst.DataSource = ds.Tables(0)
        End If
    End Sub

 

Another Public property of the user control sets the value of the control from the form that contains this user control.  Here is the public property of the user control:

    Public Property CollectedValue() As String
        Get
            GetValue()
            Return mCollectedValue
        End Get
        Set(ByVal value As String)
            mCollectedValue = value
            SetValue()
        End Set
    End Property

When the value is set it calls the SetValue() routine to find the RadDropDownList control and set its value

    Private Sub SetValue()
        Try
                    Dim list As RadDropDownList = CType(Me.Controls("userCTRL"), RadDropDownList)
                    If mCollectedValue = "" Then
                        list.SelectedIndex = -1
                    Else
                        list.SelectedValue = CInt(mCollectedValue)
                    End If
        Catch ex As Exception
            Dim x As String = ex.Message
        End Try
    End Sub

After I create a local instance of the RadDropDownList called "list", I attempt to set the SelectedValue, and it will not change.  It is acting almost like the control doesn't exist, but doesn't throw any errors.  In the Debug mode, I can see that SelectedIndex is -1 and SelectedValue is Nothing, and is of type "Object".  If I view the value of list in the Quick Watch, it clearly shows it set as a control of type RadDropDownList, and it contains the list items I added when the control was created.  Also, if I stop it in Debug on the IF statement in SetValue() and expand the variable called "list" to see all its properties, then immediately close the Debug window, it recognizes the SelectedIndex and SelectedValue and it sets them properly.  Once I do that, the SelectedValue type also immediately changes to "Object(Integer)".

I'm not sure how to adequately explain this, but everything I have tried to get it to recognize the properties of "list" does not seem to work.  Clearly stopping the code, opening in the Quick Watch in Debug and expanding the "list" variable to see the properties does something to allow the "list" variable to be fully loaded and its properties available.  I tried Application.DoEvents(), and other events after creating "list", but nothing seems to work.

Thoughts?

Mark
Top achievements
Rank 1
 answered on 19 Dec 2019
1 answer
73 views

Hi,

 

i changed the BackColor of "SchedulerCell" in RadScheduler to White.

In Day and Week View it works, but in the Month View it donĀ“t work, and it is alwasy grey.

I searched for Month States but i found nothing.

Please help.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Dec 2019
3 answers
67 views

I have a Business Object just like:

private class Employee
            {
            public int EmployeeID { get;set;}
            public int ManagerID { get;set;}
            public string Title {get;set;}

            public bool IsChecked { get; set; } = false;
    
            }

binding like this:

            List<Employee> employees = new List<Employee> {.......};

            radTreeView1.DataSource = employees;
            radTreeView1.DisplayMember = "Title";
            radTreeView1.ParentMember = "ManagerID";
            radTreeView1.ChildMember = "EmployeeID";
            radTreeView1.CheckedMember = "IsChecked";

when I toggle the tree node , the application throw an expection.

So,

what is the correct way to binding check-boxes on tristatemode ?

 

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Dec 2019
1 answer
180 views

Hello,

Could you please help me with the following?

I have a listview containing multiple items, the listviewcontains SimpleListViewVisualItems.

Now I want to move items using DragDropService USING A TOUCHSCREEN (Gesture).

The functionality is working when I drag/drop using a mouse, within the list.

The functionality is working when I drag/drop using touchscreen to a second list, but when I am do drag/drop within the same list (using touchscreen), the PreviewDragOver and PreviewDragDrop events are not fired.

In my CustomRadListView, on the OnPanGesture-event I do call the dragDropService.DoMouseMove(mousep)

 

Best regards

Patrick Vossen

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Dec 2019
3 answers
161 views

Hello Experts,

Is there a way to not allow embedded images?

Allow first and remove after is also good but prevent in the first place is good 

Thnx

Martin
Telerik team
 answered on 17 Dec 2019
2 answers
68 views
How to do paging in Radgrid winform?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Dec 2019
9 answers
235 views

Hi,

 

We  need to implement  paging concept in the Telerik rad grid control for win forms. At present Telerik doesnā€™t  provide paging  in win forms. Is there a way to implement custom paging , provided it should honor the filtering within the grid.

 

Thanks,
Julian

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Dec 2019
5 answers
247 views

I've attached a picture from an application that I'm trying to mimic, and I"m unsure how to do this with the GridView.

 

1) The ellipses lookup button on a column. Basically the same display functionality as the GridViewBrowseColumn, but rather than opening an OPenFileDialog, I want to open another WinForm that I'd pass data back and forth between.

 2) The alert icon in the column - alerting the user that there is some information to be displayed. 

 

Can anyone help by pointing me in the direction of a sample that has functionality like this, or offering some ideas on how best to accomplish? Currently, I have a command column that is performing the Lookup Function, but as the user moves columns around, it may not be in the correct place, so I don't think that's the correct path. 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Dec 2019
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?