Telerik Forums
UI for WinForms Forum
1 answer
126 views

Hello,

I have 3 hierarchical levels in my grid. Here is the structure:

Master template

|___tab1: Details (html view)

|___tab2: Orders (standard grid)

       |___tab2-1: Clients (standard grid)

|___tab3: Networks (standard grid)

 

I'am inspired by some posts in the forum to save and restore the expanded rows and selected rows. It works great.

I save the grid state before data refresh, and reset after data refresh. Here is the code.

Dim scrollpos As Integer = -1
Dim CurrentRow As Integer = -1
Dim expandedRows As New List(Of Boolean)()
Dim selectedRows As New List(Of Boolean)()
 
    Private Sub SaveSeletectedAndExpanded()
        scrollpos = myGridView.TableElement.VScrollBar.Value
 
        If myGridView.CurrentRow IsNot Nothing Then
            CurrentRow = myGridView.CurrentRow.Index
        End If
        If myGridView.Rows Is Nothing Then
            Exit Sub
        End If
        expandedRows.Clear()
        selectedRows.Clear()
        For i = 0 To myGridView.Rows.Count - 1
            expandedRows.Add(myGridView.Rows(i).IsExpanded)
            ' How can I remember which page tab is displayed currently?
            selectedRows.Add(myGridView.Rows(i).IsSelected)
        Next
    End Sub
 
    Private Sub RestoreSeletectedAndExpanded()
        If scrollpos <> -1 Then
            myGridView.TableElement.VScrollBar.Value = scrollpos
        End If
        If CurrentRow <> -1 Then
            myGridView.CurrentRow = myGridView.Rows(CurrentRow)
        End If
        If expandedRows IsNot Nothing Then
            For i = 0 To expandedRows.Count - 1
                myGridView.Rows(i).IsExpanded = expandedRows(i)               
            Next
        End If
        If selectedRows IsNot Nothing Then
            For i = 0 To selectedRows.Count - 1
                myGridView.Rows(i).IsSelected = selectedRows(i)
            Next
        End If
    End Sub

 

But I've found that the current selected tabbed view in the expanded row is reset to default after refresh.

How can I save the current selected tabbled view index for the expanded rows ?

 

Thank you by advanced.

Hristo
Telerik team
 answered on 23 Jan 2019
1 answer
667 views

Hello, administrator

    In the past, I used the DataGridView control, but now I use the RadGridView control, but I can't find the EditingControlShowing event, I need this event now,

please tell me what event should I use instead of it

    Please reply me as soon as possible. Thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Jan 2019
0 answers
136 views

Hi,

I was testing the RichTextEditor First Look in Demos and notice that it doesn't allow us to edit any parts of the document when the same document have specific parts of text locked for edition/change.

If I open the same document in Winword I can add or change text in others parts of the document that are not locked, without Word asking me the password or remove the "restrict editing" settings.

Is there any work around to overcome this issue in RichTextEditor?

PS: I don't want leave here any external links, but if you search for "how to lock specific text in word" in google you will see examples how to lock specific parts or sections of a winword document.

RSousa
Top achievements
Rank 1
 asked on 22 Jan 2019
11 answers
940 views
Hi
i've tested out your scheduler control whether does it support persian culture or not.
i found this link which help me very much!
almost everyThing is ok except month view. in month view the calendar does not works correctly and also gregorian month name display in the first of the week day that i don't see it.
in attention to that post which this schedule control does not support persian calendar, is there any way to work-around this problem ?
thanks in advance
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Jan 2019
4 answers
575 views

Hi, this should be an easy one, how can I fix that?

 

private void ContextMenuOpening(object sender, TreeBoxContextMenuOpeningEventArgs e)
        {
            //The below line doesn't work:
            //I need to reach the control to provide the contextmenu some "context"
            string myContext = (sender as Control).Name;
 
            cmMarkNullMenuItem.Tag = cmResetMenuItem.Tag = myContext;
            cmResetMenuItem.Enabled = EditorModel.PropertiesByName[myContext].IsChanged;
        }

 

 

 

Andrea
Top achievements
Rank 1
 answered on 21 Jan 2019
3 answers
323 views
Is there some sort of solution or work around for loading .doc files into the RadRichTextEditor.
Dimitar
Telerik team
 answered on 21 Jan 2019
0 answers
116 views

A row break in a cell in RadGridView will result in incomplete display of cell data

As shown in the picture below, the top part of the header text cannot be displayed.

Ricardo
Top achievements
Rank 1
 asked on 21 Jan 2019
2 answers
477 views

Hi,

I'm currently populating chat history when a forum opens. I want to have a button that clears the chat window and gets the latest conversation. I'm not finding a way to clear the message history however. If you happen to have some direction that would be great. 

Thanks for the assistance in advance.

Manahil
Top achievements
Rank 1
 answered on 18 Jan 2019
1 answer
244 views

Hi,

I tried an update to 2019.1.117 (from 2018.3.1016) with the Upgrade Wizard and after the "Upgrade Wizard Information" I'll get an "Telerik VSExtensions Error"

Here the StackTrace:

System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei Telerik.WinControls.VSX.Wizards.UpgradeProjectWizard.GetShouldEnableHDPI()
   bei Telerik.WinControls.VSX.Wizards.UpgradeProjectWizard.GetPropertyValue(String propertyName)
   bei Telerik.VSX.WizardEngine.Controls.WizardControlBase.PopulateCollectedValues(IPropertyDataDictionary gatheredData)
   bei Telerik.VSX.WizardFramework.Pages.DynamicPageController.GetData()
   bei Telerik.WizardFramework.Wizard.GetCurrentPageData()
   bei Telerik.WizardFramework.Wizard.UpdateNavigation()
   bei Telerik.WizardFramework.Wizard.Page_StateChanged(Object sender, EventArgs e)
   bei Telerik.WizardFramework.EventHelper.RaiseEvent(IEventRaiser eventRaiser, Object eventKey, EventArgs e)
   bei Telerik.WizardFramework.ScenarioDriven.WizardPageController`1.OnStateChanged(EventArgs e)
   bei Telerik.VSX.WizardFramework.Pages.DynamicPageController.Control_StateChanged(Object sender, EventArgs e)
   bei Telerik.WizardEngine.Helpers.EventHelper.<>c__DisplayClass1_0.<RaiseEvent>b__0()
   bei Telerik.WizardEngine.Helpers.EventHelper.CatchExceptionAndSendReport(Action action)

Does anyone got an idea what's missing?

Best regards,
BloodyFunFrog

Nikolay Mishev
Telerik team
 answered on 18 Jan 2019
0 answers
124 views
In the Radtreeview, we need to disable the keyboard actions & allow only mouse clicks. Please check & do the needful.
Krish
Top achievements
Rank 1
 asked on 18 Jan 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)
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?