Click here to Skip to main content
15,886,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In below script display the data vertically .i need display the data in horzentically.Tab also not working.This is kendo template

JavaScript
<script id="div-Template" type="text/x-kendo-template">
    # for(var j=1;j&lt;=SoldCount;j++){#
    <div id='box'>#="Plot -" +  j # </div> <br />
    &nbsp;
    # } #
</script>








pls help me.

thank u

What I have tried:

In above script display the data vertically .i need display the data in horzentically.Tab also not working.This is kendo template




# for(var j=1;j&lt;=SoldCount;j++){#
<div id='box'>#="Plot -" + j # </div> <br />
&nbsp;
# } #
Posted
Updated 17-Jul-18 4:14am
v4

1 solution

This is more of an HTML & CSS question than Kendo.
1 You are displaying your content via a DIV, which by default is a box level element. To override this you need to set it as an inline element.
2 An element ID attribute can only be used once within a document. You can fix this problem by using the class.

The following is an HTML/CSS sample for you to work with.
You will need to remove the 4 hard-coded elements out and replace it with your Kendo loop

HTML
<html>
<head>
<title>Test</title>
<style type="text/css">
	.box { display: inline; width: 100px; }
</style>
</head>
<body>
	<div class="box">Box 1</div>
	<div class="box">Box 2</div>
	<div class="box">Box 3</div>
	<div class="box">Box 4</div>
</body>
</html>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900