Telerik Forums
UI for WinForms Forum
1 answer
167 views

Hi,

How I export to excel a VirtualGrid ? 

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

Greetings,

I know If i want to reorder Radgridview columns, I should use : Radgridview1.Columns.Move(lastIndex , Newindex)

But I need to reorder columns at runtime and save the changes for the next run.

So I can use 2 buttons : MoveForward , MoveBackward.

And I can define 2 integer values in My.settings : LastIndex, NewIndex. (every column has these 2 integer values in my.settings)

plus, I need to have a combo box to select the current column.

As the Move function requires both the current index and desired index , it makes it a bit complicated with the combo Box and buttons. Because when I select and move a column no matter forward or backward (when combo box value is 1 , means the first column is out target to move), the current index should be updated with the desired index. For Example :

Column 1 is in index 0. Now I want to reorder in order to place it in Index 1. So :

I select value "1" in combo box, and then

With Radgridview1

.columns.move(combobox.text , combobox.text + 1)

End with

 

So what happens next ? If I'm about to move it 1 more index forward, then the above code should be ? How can I save latest changes in My.settings (the integer values we defined from the beginning)

 

What is your approach ?

 

Thanks for your attention.


George C.
Top achievements
Rank 2
Iron
Veteran
 answered on 25 Dec 2019
1 answer
108 views
Hello  Telerik team , good time

I wrote a program in Persian (Iran) and it is right to left

I want to convert to English and turn it left to right by a new RESX file ,When   I'm back in Persian ّForm  ,gridview headers are cleared  But the English form is ok

The relevant photos were attached  , Thankful
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Dec 2019
2 answers
1.3K+ views

Greetings,

I have a RadGirdView and a RadColorBox.

I want to change back/fore colors of each columns of the Radgridview, using the RadColorBox.

I know that I should use Cell-Formatting of the Radgridview, but the problem is that I can not see (update) the changes at runtime. The cell-formatting does its job only once and that is at the time of starting the program.

 

Anyway to see the changes at runtime ?

 

Thanks in advance.

George C.
Top achievements
Rank 2
Iron
Veteran
 answered on 24 Dec 2019
1 answer
105 views

I don't know why you delete my post. But it doesn't matter. I can post it again.

Backgroud

The behavior of split button makes me confused when I use split button collapsing the split panel. It locates in different position when I restore the split button by double-click. What's weirder is that double-click will make no effect when the split button located on the edge. I don't like these default behaviours.

Question

1. Do you know how to overwrite the default behaviour of split button?

2. Is there a virtual method or some event I can reimplement?

3. I want to collapse the right panel to the right side, and restore it to the initial location, and just these to behaviours. How can I do it?

Thanks!

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

hi

i want to enable border of area

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Dec 2019
19 answers
913 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
197 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
961 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
125 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
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?