radopenfiledialog - find out the selected layout?

1 Answer 29 Views
FileDialogs
Steve
Top achievements
Rank 1
Steve asked on 28 Apr 2021, 02:13 PM

How can I find out the selected layout  (list, small icon, etc.) chosen by the user at the point the dialog is closed?

Thanks

Steve

1 Answer, 1 is accepted

Sort by
1
Accepted
Nadya
Telerik team
answered on 28 Apr 2021, 03:35 PM

Hello, Steve,

You can use the following code snippet to get the last selected layout in RadOpenFileDialog:

(openFileDialog.OpenFileDialogForm as RadForm).FormClosed += this.RadForm1_FormClosed;

private void RadForm1_FormClosed(object sender, FormClosedEventArgs e)
{
 LayoutType layout = (sender as RadOpenFileDialogForm).OpenFileDialogViewModel.SelectedLayout.LayoutType;
}

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Nadya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Steve
Top achievements
Rank 1
commented on 29 Apr 2021, 07:42 AM

That works great. Thanks
Tags
FileDialogs
Asked by
Steve
Top achievements
Rank 1
Answers by
Nadya
Telerik team
Share this question
or