RadMultiColumnComboBox DataBinder.Eval in codebehind

5 posts, 1 answers
  1. mesho100200
    mesho100200 avatar
    5 posts
    Member since:
    Jun 2009

    Posted 19 Aug 2010 Link to this post

    hi

    i use RadMultiColumnComboBox in grid

    and add this

     <table style="width:100%; text-align:left">
                 <tr>
                 <td style="width: 125px;">
                Category Id
                 </td>
                   <td style="width: 125px;">
                Category Name
                 </td>
                    
                 </tr>
                 </table>
            </HeaderTemplate>
            <ItemTemplate>
                  <ul>
                   
                     <li class="col1"><%#  DataBinder.Eval(Container.DataItem, "Category_id")%> </li>
                    <li class="col2"> <%#  DataBinder.Eval(Container.DataItem, "Category_name")%></li>
                </ul>

            </ItemTemplate>

    the problem is how can i do this <%#  DataBinder.Eval(Container.DataItem, "Category_id")%>  from codebehind

    thanks and sory for my bad English


         
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Aug 2010 Link to this post

    Hello,


    One option is adding Label control in Template of RadCombobox and access the Label from code behind to setting text. The following docmuentation shows how to access template controls.
    Finding an item in template


    -Shinu.
  3. mesho100200
    mesho100200 avatar
    5 posts
    Member since:
    Jun 2009

    Posted 20 Aug 2010 Link to this post



    hi Shinu 
      it is ok but when the combobox  in radgrid the items count in combobox =0

  4. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 20 Aug 2010 Link to this post

    Hi bahgat,

    You can create the multi-column Template programmatically in this case. Please see this Code Library project showing this approach.

    Best wishes,
    Simon
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. mesho100200
    mesho100200 avatar
    5 posts
    Member since:
    Jun 2009

    Posted 21 Aug 2010 Link to this post

    thanks  i will try it
    meny thanks
Back to Top