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

ComboBox / Multi-column ComboBox bind valur from server side

1 Answer 80 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 08 Oct 2011, 06:29 AM
<td>
                                      <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Quation, QtNo %>"></asp:Label>
                                  </td>
                                  <td>
                                      <asp:Label runat="server" ID="lbcaption" Visible="false"></asp:Label>
                                      <telerik:RadComboBox runat="server" ID="txt_QuotationNo" Height="190px" Width="300px"
                                          MarkFirstMatch="true" EnableLoadOnDemand="true" HighlightTemplatedItems="true"
                                          DataSourceID="SqlDataSource1" OnClientItemsRequested="UpdateItemCountField" OnItemDataBound="txt_QuotationNo_ItemDataBound"
                                          OnItemsRequested="txt_QuotationNo_ItemsRequested" OnDataBound="txt_QuotationNo_DataBound"
                                          OnSelectedIndexChanged="txt_QuotationNo_SelectedIndexChanged" AutoPostBack="true">
                                          <HeaderTemplate>
                                              <ul>
                                                  <li class="col1">Quation No</li>
                                                  <li class="col2">Revise No</li>
                                              </ul>
                                          </HeaderTemplate>
                                          <ItemTemplate>
                                              <ul>
                                                  <li class="col1">
                                                      <%# DataBinder.Eval(Container.DataItem, "quotationno")%></li>
                                                  <li class="col2">
                                                      <%# DataBinder.Eval(Container.DataItem, "revnumbr")%></li>
                                              </ul>
                                          </ItemTemplate>
                                          <FooterTemplate>
                                              A total of
                                              <asp:Literal runat="server" ID="RadComboItemsCount" />
                                              items
                                          </FooterTemplate>
                                      </telerik:RadComboBox>
                                      <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
                                          SelectCommand="select quotationno,revnumbr from DSQUOTATIONMAS where status <> 'del' order by quotationno,revnumbr asc">
                                          <%--<SelectParameters>
                                              <asp:Parameter Name="projectcode" Type="String" />
                                          </SelectParameters>--%>
                                      </asp:SqlDataSource>
                                  </td>

Hello all,
Here this comobobox is multi value showing combo ,
i want to bind the value from server side ,

here i bind from asp:SqlDataSource

how i bind that ,
reply as soon as possible

Thanks,
Mohamed.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Oct 2011, 07:26 AM
Hello Mohamed,

Check the following forum thread.
Creating a multi-column combo programmatically

Thanks,
Shinu.
Tags
ComboBox
Asked by
mohamed
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or