ComboBox / Multi-column ComboBox bind valur from server side

2 posts, 0 answers
  1. mohamed
    mohamed avatar
    311 posts
    Member since:
    Mar 2011

    Posted 08 Oct 2011 Link to this post

    <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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Oct 2011 Link to this post

    Hello Mohamed,

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

    Thanks,
    Shinu.
Back to Top