Deepak Vasudevan
Top achievements
Rank 2
Deepak Vasudevan
asked on 22 Nov 2011, 10:10 PM
I just have one checkbox and a text that comes in a datasource. Can I use a grid to get the following style?
CB1 Text1 CB2 Text2
CB3 Text3 CB4 Text4
...
CB1 Text1 CB2 Text2
CB3 Text3 CB4 Text4
...
7 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 23 Nov 2011, 05:12 AM
Hello Deepak,
You can achieve this using GridTemplateColumn as explained in this documentation.
Customizing with GridTemplateColumn
-Shinu.
You can achieve this using GridTemplateColumn as explained in this documentation.
Customizing with GridTemplateColumn
-Shinu.
0
Deepak Vasudevan
Top achievements
Rank 2
answered on 24 Nov 2011, 04:05 PM
Shinu,
Thanks for the layout example. But is there a way we can stipulate that three records will go in the horizontal way and then the next three records in the next line (as I have illustrated with a figure in my original post)?
Thanks for the layout example. But is there a way we can stipulate that three records will go in the horizontal way and then the next three records in the next line (as I have illustrated with a figure in my original post)?
0
Shinu
Top achievements
Rank 2
answered on 25 Nov 2011, 07:14 AM
Hello Deepak,
Here is the sample code.
aspx:
-Shinu.
Here is the sample code.
aspx:
<
telerik:GridTemplateColumn
>
<
ItemTemplate
>
<
table
cellspacing
=
"1"
>
<
tr
>
<
td
>
<
asp:CheckBox
ID
=
"CheckBox1"
runat
=
"server"
/>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text='<%# Eval("LastName") %>'></
asp:Label
>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
>
. . . .
</
telerik:GridTemplateColumn
>
-Shinu.
0
Deepak Vasudevan
Top achievements
Rank 2
answered on 30 Nov 2011, 05:18 PM
Dear Shinu,
Your code will render as
[X] Shinu
[X] Lavanya
[X] Deepak
[X] Microsoft
right? I would need the following type of rendering:
[X] Shinu [X] Lavanya
[X] Deepak [X] Microsoft
Your code will render as
[X] Shinu
[X] Lavanya
[X] Deepak
[X] Microsoft
right? I would need the following type of rendering:
[X] Shinu [X] Lavanya
[X] Deepak [X] Microsoft
0
Hi Deepak,
In order to achieve your goal, and have better control on the data visualization, as well get better performance for your case, I would suggest that you utilize our RadListView control. Try the attached sample.
Let me know if this works for you and if you need to enable additional features for the RadListView, like paging selection, etc.
Greetings,
Iana Tsolova
the Telerik team
In order to achieve your goal, and have better control on the data visualization, as well get better performance for your case, I would suggest that you utilize our RadListView control. Try the attached sample.
Let me know if this works for you and if you need to enable additional features for the RadListView, like paging selection, etc.
Greetings,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Deepak Vasudevan
Top achievements
Rank 2
answered on 05 Dec 2011, 05:38 PM
Thanks Iana.
Do we have header footer templates for ListView?
Do we have header footer templates for ListView?
0
Hello Deepak,
RadListView has a layout template where you can define the header and footer. You can also use it predefined layouts and make it look like RadGrid, with Skin applied. For more information you can refer to the below resources:
http://demos.telerik.com/aspnet-ajax/listview/examples/templates/datalayouttemplates/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/listview/examples/appearancestyling/predefinedlayouts/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/listview-data-and-layout-templates.html
http://www.telerik.com/help/aspnet-ajax/listview-edit-and-insert-templates.html
http://www.telerik.com/help/aspnet-ajax/listview-predefined-layouts.html
http://www.telerik.com/help/aspnet-ajax/listview-skins.html
Kind regards,
Iana Tsolova
the Telerik team
RadListView has a layout template where you can define the header and footer. You can also use it predefined layouts and make it look like RadGrid, with Skin applied. For more information you can refer to the below resources:
http://demos.telerik.com/aspnet-ajax/listview/examples/templates/datalayouttemplates/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/listview/examples/appearancestyling/predefinedlayouts/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/listview-data-and-layout-templates.html
http://www.telerik.com/help/aspnet-ajax/listview-edit-and-insert-templates.html
http://www.telerik.com/help/aspnet-ajax/listview-predefined-layouts.html
http://www.telerik.com/help/aspnet-ajax/listview-skins.html
Kind regards,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now