Set Layout Configurator default

3 posts, 0 answers
  1. Jeff
    Jeff avatar
    62 posts
    Member since:
    Apr 2012

    Posted 24 Jul 2019 Link to this post

    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. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3993 posts

    Posted 25 Jul 2019 Link to this post

    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.
  3. Jeff
    Jeff avatar
    62 posts
    Member since:
    Apr 2012

    Posted 25 Jul 2019 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    This is perfect. Thank you!
Back to Top