multicolumn OnClientSelectedIndexChanging

2 posts, 1 answers
  1. Jean-Francois Lussier
    Jean-Francois Lussier avatar
    6 posts
    Member since:
    Sep 2009

    Posted 10 Apr 2013 Link to this post

    Hi,

    How to I access other column(not the value or text) of a selected item in javascript ?
    like the ContactTitle column ?

    also want to know server side

    <script type="text/javascript">

     

    function IndexChanging(sender, eventArgs) {

    </script>

     

    <telerik:RadComboBox runat="server" AutoPostBack="true" ID="RadComboBox1" Height="190px" Width="420px"

    MarkFirstMatch="true" EnableLoadOnDemand="true"

    HighlightTemplatedItems="true" OnClientSelectedIndexChanging="IndexChanging"

    OnItemDataBound="RadComboBox1_ItemDataBound"

    Label="Grid-like multi-column:"

    OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">

    <HeaderTemplate>

    <ul>

    <li class="col1">Contact Name</li>

    <li class="col2">City</li>

    <li class="col3">Title</li>

    </ul>

    </HeaderTemplate>

    <ItemTemplate>

    <ul>

     

    <li class="col1">

    <%

     

    # DataBinder.Eval(Container.DataItem, "ContactName")%></li>

    <li class="col2">

    <%

    # DataBinder.Eval(Container.DataItem, "City") %></li>

    <li class="col3">

    <%

    # DataBinder.Eval(Container.DataItem, "ContactTitle") %></li>

    </ul>

    </ItemTemplate>

    <FooterTemplate>

    A total of

     

    <asp:literal runat="server" id="RadComboItemsCount" />

    items

    </FooterTemplate>

    </telerik:RadComboBox

    thanks
    J-Francois

  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Apr 2013 Link to this post

    Hi Jean,

    Please have a look at this link which deals with accessing columns of a MultiColumn RadComboBox on the client-side when the combobox is databound in an external callback page.

    Thanks,
    Princy.
Back to Top