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

Removal of outlook section while keeping data in the data-grid

1 Answer 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Khoa
Top achievements
Rank 1
Khoa asked on 10 Oct 2018, 01:29 PM

Hi Telerik, 

Is it possible to remove the outlook section while keeping data in the data-grid and the functionality like select / read / unread from the Outlook template for Visual Studio 2018?

When I remove the outlook section, it seems like the data from the data-grid also disappear.

I want to keep the functionality, but without having the outlook section

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 12 Oct 2018, 07:52 AM
Hello Khoa,

The data in the example is passed through the controls via the corresponding view models. In order to acheive your requirement I would recommend you to invest some time in getting familiar with the models of the XAML definitions of the controls. This will give a very nice overview of how the example works and how to apply the required changes. 

For the specific requirement, in order to achieve it, you will need to keep the selected view model object (from the SelectedViewModel property). For example, if you don't need the different folders llike Inbox, Sent Items, Deleted Items, etc., you can remove this abstraction from the view models (this is the Folder model and the OutlookSection model) and leave only the MailViewModel and the models it uses. Then you can go through the code and change the usage of the models so that the Emails pane shows only the proper data.

Regards,
Martin Ivanov
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.
Tags
GridView
Asked by
Khoa
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or