How can I get rearranged Tile data

2 posts, 0 answers
  1. SunYeon Jang
    SunYeon Jang avatar
    2 posts
    Member since:
    Apr 2019

    Posted 24 Apr Link to this post

    Hello~

     

    Now I am testing TileView.

    I followed the sample and succeed to show tiles binding data. but, after I  rearrange tiles , I want to get the reordered data , and then the data is not changed.

               // 1. 현재 뷰모델에 접근하는 방법 1
                var mainViewModel = this.DataContext as MainViewModel;
                ObservableCollection<CControlStep> ss = mainViewModel.Items;

                for (int i = 0; i < ss.Count; i++)
                {
                    try
                    {
                        MessageBox.Show(((CControlStep)ss[i]).Number.ToString());
                    }
                    catch { }
                }

     

    How can I get the rearranged data from GUI ?

  2. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    495 posts

    Posted 25 Apr Link to this post

    Hello,

    Thank you for the provided code snippet.

    May I ask you to check out the following thread in our forum: Reflect changed position of tiles back into the ItemsSource collection, where a similar question was discussed and let me know, if it helps?

    I am looking forward to your reply.

    Regards,
    Vladimir Stoyanov
    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.
Back to Top