I want to use something like jquerymulticolumn.
But i can’t use it from code behind. How can i do it or anyone suggest me another multicolumn selectbox ?
aspx:
.
.
<td>
<div id="datatable">
<table cellspacing="0" width="100%">
<tr>
<th>ID</th><th>Action Name</th><th>Action ID</th>
</tr>
<tr>
<asp:repeater id="rep" runat="server">
<itemtemplate>
<tr>
<td><%#Eval("AKSIYON_ID")%></td><td><%#Eval("AKSIYON_ADI")%></td><td><%#Eval("AKSIYON_ID")%></td>
</tr>
</itemtemplate>
</asp:repeater>
</table>
</div>
</td>
.
.
<script type="text/javascript">
$("#datatable").multicolselect({
buttonImage: "../Images/selectbutton.gif",
valueCol: 1,
hideCol: 0
});
</script>
The
jquerymulticolumnis using a HTML table to populate its drop down. You could dynamically populate this table using an ASP.NET Repeater:Then in your code-behind, you can bind the Repeater to a datasource.
Code snippet taken from here