This is a migrated thread and some comments may be shown as answers.

Set Layout Configurator default

2 Answers 88 Views
FileDialogs
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 24 Jul 2019, 05:19 PM

Using code similar to this, is it possible for me to set the Layout Configurator to one of the options like "Default"? I'm not sure what I'd use for "doubleBufferedTableLayoutPanel1" or "filterDropDownList".

AddHandler Me.RadSaveFileDialog1.SaveFileDialogForm.Shown, AddressOf SaveFileDialogForm_Shown     
     
Private Sub SaveFileDialogForm_Shown(sender As Object, e As EventArgs)
        Dim dropDown As RadDropDownList = TryCast(Me.RadSaveFileDialog1.SaveFileDialogForm.Controls("doubleBufferedTableLayoutPanel1").Controls("filterDropDownList"), RadDropDownList)
        dropDown.SelectedIndex = 0
End Sub

 

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Jul 2019, 06:50 AM
Hello, Jeff,   

If I understand your requirement correctly, you want to select the default view mode in the main pane which is controlled by the layout configurator. Please refer to the following code snippet demonstrating how to achieve it:

Sub New()
    InitializeComponent()
 
    Dim saveFileDialog As RadSaveFileDialog = New RadSaveFileDialog()
    AddHandler saveFileDialog.SaveFileDialogForm.Shown, AddressOf SaveFileDialogForm_Shown
    Dim dr As DialogResult = saveFileDialog.ShowDialog()
 
    If dr = System.Windows.Forms.DialogResult.OK Then
        Dim selectedFileName As String = saveFileDialog.FileName
    End If
End Sub
 
Private Sub SaveFileDialogForm_Shown(sender As Object, e As EventArgs)
    Dim f As RadSaveFileDialogForm = TryCast(sender, RadSaveFileDialogForm)
    f.ExplorerControl.FileBrowserListView.ViewType = ListViewType.DetailsView
End Sub

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Jeff
Top achievements
Rank 1
answered on 25 Jul 2019, 02:28 PM
This is perfect. Thank you!
Tags
FileDialogs
Asked by
Jeff
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or