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

Various problems with tile view amd

5 Answers 41 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Mladen
Top achievements
Rank 1
Mladen asked on 02 Aug 2013, 10:37 AM
Hi !

I have problems with TileView and FluidContentControl. I've created small project which is reproducing the problems in our application. You can download it from here (You'll need to adjust refferemces to telerik assemblies):

https://docs.google.com/file/d/0B9h8habEj9Z3akI0UVZzUTgwTlU/edit?usp=sharing 

The problems are as follows:

1. Rad Fluid Control does'n change it's state. I'm binding State property with OneWay binding to ViewModel state property using converter. The same property is Two Way bound to the TileState property of the TileItem. Although the property is set, when tile state changes and PropertyChanged is rised, the RadFluidControl state is not updated ( it works only when tile is created, i.e as OneTime binding)

2. To avoid this issue i tried to change the state of RadFluidControl manually in the event handler of TileStateChanged event of TileView. Although it seems that the proper state is set to the radFluidContentControl there is no visible change - the content of the control stays the same and i expect to change between small, normal and large content.

3. When you set MinimizedItemsPosition of rad tile view to "Top" and when you have two tiles and when you maximize one of them - silverlight crashes!! (exception from COM object) (in case you are using what is described in 2).

4. When you set MinimizedItemsPosition to Right (default) - if you have four tiles - when maximize one of them maximized tile overlaps some of the others. (it happens also in other cases)

5. When you set MinimizedItemsPosition to Right - if you have 6 tiles - when maximize one of them the maximized tile slowly shrinks and the minimized tiles increases theirs width.


Please note I'm using 2013.1.527.1050 version of  controls.

Also I'm sending video, which is recording all steps:

 https://docs.google.com/file/d/0B9h8habEj9Z3Vkk4VkQ3Z2VGNm8/edit?usp=sharing

6. I'm binding RowsCount and ColumnCount to the properties in the viewmodel. When i change ColumnsCount - the tiles reorder according to the value being set. This does not happen when i change RowsCount property (this i found recently it is not in the video or the project). Also, even if the RowsCount property is manually set to 1,  when i add tiles they go on multiple rows instead of 1.

Please answer what causes this problems and how to avoid them!

Best Regards,
Mladen Nikolov
INTERCONSULT Bulgaria

5 Answers, 1 is accepted

Sort by
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 07 Aug 2013, 11:52 AM

Hi Mladen,

Let me go through your issues one by one:

1. Rad Fluid Control does'n change it's state. I'm binding State property with OneWay binding to ViewModel state property using converter. The same property is Two Way bound to the TileState property of the TileItem. Although the property is set, when tile state changes and PropertyChanged is rised, the RadFluidControl state is not updated ( it works only when tile is created, i.e as OneTime binding)

2. To avoid this issue i tried to change the state of RadFluidControl manually in the event handler of TileStateChanged event of TileView. Although it seems that the proper state is set to the radFluidContentControl there is no visible change - the content of the control stays the same and i expect to change between small, normal and large content.

The reason behind this two issues is the fact that RdFluidContentControl must be configured not to change the content of the RadTileViewItems automatically. In order to overcome this issue you need to set the ContentChangeMode property to Manual (read more)

3. When you set MinimizedItemsPosition of rad tile view to "Top" and when you have two tiles and when you maximize one of them - silverlight crashes!! (exception from COM object) (in case you are using what is described in 2).

When you configure the RadFluidContentControl as described in the article this issue will not be reproduced.

4. When you set MinimizedItemsPosition to Right (default) - if you have four tiles - when maximize one of them maximized tile overlaps some of the others. (it happens also in other cases)

5. When you set MinimizedItemsPosition to Right - if you have 6 tiles - when maximize one of them the maximized tile slowly shrinks and the minimized tiles increases theirs width.


In order to overcome these two issues you can try setting the MinimizedColumnWidth and MinimizedRowHeight properties of the RadTileView control. By setting these properties you fix the size of the minimized items and the issue will not be reproduced.

I will need more time to further investigate the last issue. I will get back to as soon as I have more information.


Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Pavel R. Pavlov
Telerik team
answered on 07 Aug 2013, 03:03 PM
Hello Mladen,

Regarding the sixth question, I tried to reproduce the reported behavior on our side and it seems that the code works as expected. Please note that if you try to bind both ColumnsCount/MaxColumns and RowsCount/MaxRows properties the value of ColumnsCount/MaxColumns will have a priority. (read more)

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Mladen
Top achievements
Rank 1
answered on 12 Aug 2013, 12:33 PM
Hi, Pavel, thank you for your reply! 

So 1-5 issues are solved.

Regarding the 6th question - you are right - the reason for the behaviour I'm describing is that I'm binding both RowsCount and ColumnsCount properties and RowsCount is ignored. But is there any known workaround to avoid that and to allow setting both RowsCount and ColumnsCount?

Best Regards,
Mladen
0
Pavel R. Pavlov
Telerik team
answered on 15 Aug 2013, 05:39 AM
Hello Mladen,

If you bind one of these properties, lets say the ColumnsCount, you will be able to control the number of the rows by controlling the number of the RadTileViewItems. For example if you set the ColumnsCount to 3 and then you insert 5 RadTileViewItems the RadTileView control will generate one row with 3 items and the second row will be with 2 items.

Can you please clarify how do you expect the RadTileView to order the items, if in this scenario you have also set the RowsCount property to 3? Basically, this will be achieved only if you have 9 items and all other scenarios will be invalid. Please note that you can achieve the same layout by setting only one of the properties to 3 and inserting 9 items.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Mladen
Top achievements
Rank 1
answered on 15 Aug 2013, 12:45 PM
Hi Pavel,

Thank you for your reply - you are right that it is pointless to set both properties. 

Best Regards
Tags
TileView
Asked by
Mladen
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Mladen
Top achievements
Rank 1
Share this question
or