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

List of Images while not having MyDataIndex field

1 Answer 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Software
Top achievements
Rank 1
Software asked on 20 Dec 2017, 10:47 PM

Hi Telerik, I am asking question that has already answered in some other thread but not applicable in my case. I want to display list of images horizontally EG:

Img1    Img2    Img3

Img4    Img5

I can see in other threads that I can achieve it by using Group Explorer by setting property Field.MyDataIndex/3 and Field.MyDayaIndex%3 but the field that asked for is not there in my DataSource. In my case I am only getting "FileData" in DataSource nothing else. 

 

Can you please help me how can I achieve List of Images displayed horizontally.?

Thank You

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 21 Dec 2017, 12:30 PM
Hello,

The recommended approach for achieving multi-column layout where the data flows horizontally is provided in this KB article. This approach requires a data field that holds the index of the row to be present in the data source. This index needs to be used in grouping expression so the required number of columns could be generated.

The data field can be added to the data source manually. If it is not possible you can add a calculated field to the DataSource component and use a custom function to set the value of this field. For example, the function can return the index value and increment it.

I hope this information will help.


Regards,
Katia
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Software
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or