CheckBoxList in DetailTables

3 posts, 1 answers
  1. K. R.Murthii
    K. R.Murthii avatar
    19 posts
    Member since:
    Sep 2006

    Posted 03 May 2013 Link to this post

    HI I want to place CheckBoxList in DetailTables and populate CheckBoxList 
    with data can any body help me.
    This is urgent.


    Thanks

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

    Posted 06 May 2013 Link to this post

    Hi,

    Try the following code.
    aspx:
    <DetailTables>
      <telerik:GridTableView Name="DetailTable1" AutoGenerateColumns="false">
         <Columns>
           <telerik:GridTemplateColumn UniqueName="temp" HeaderText="ERROR CAUSES">
             <ItemTemplate>
               <asp:CheckBoxList ID="CheckBoxList1" runat="server" ></asp:CheckBoxList>
            </ItemTemplate>
          </telerik:GridTemplateColumn>
        </Columns>
      </telerik:GridTableView>
    </DetailTables>
    c#
    protected void Radgrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
            if (e.Item is GridDataItem && e.Item.OwnerTableView.Name == "DetailTable1")
            {
                GridDataItem item = (GridDataItem)e.Item;
                CheckBoxList list = (CheckBoxList)item.FindControl("CheckBoxList1");
                 //populate list here
            }
    }

    Thanks,
    Shinu
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. K. R.Murthii
    K. R.Murthii avatar
    19 posts
    Member since:
    Sep 2006

    Posted 06 May 2013 Link to this post

    Sorry this is working fine.
    Thanks a lot.
Back to Top