How to Get Column Wise Value

3 posts, 0 answers
  1. Jaya
    Jaya avatar
    81 posts
    Member since:
    Mar 2011

    Posted 21 Feb 2015 Link to this post


    I have Telerik Radgrid How to Get Column Wise Data get values. 
    This is my Code

    foreach (GridDataItem grdf in GrdStatus.Items)

  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 23 Feb 2015 in reply to Jaya Link to this post

    Hello Jaya,

    Please the below code snippet.

    <telerik:GridBoundColumn DataField="Id" HeaderText="Id" UniqueName="Id">
    <telerik:GridTemplateColumn HeaderText="FileSize" UniqueName="FileSize">
            <asp:Label ID="lblFileSize" runat="server" Text='<%# Eval("FileSize") %>'></asp:Label>

    foreach (GridDataItem item in GrdStatus.Items)
    string id = item["Id"].ToString();
    string fileSIze = (item["FileSize"].FindControl("lblFileSize") as Label).Text;

    Jayesh Goyani
  3. DevCraft R3 2016 release webinar banner
  4. Jaya
    Jaya avatar
    81 posts
    Member since:
    Mar 2011

    Posted 23 Feb 2015 in reply to Jayesh Goyani Link to this post

    Jayesh Goyani

    This is my Table Data
    ID       Days        Order No
    1        SUN                    1
    2        MON                   2
    3        TUE                    3

    This is My Telerik Radgrid Client Side Code
    <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" Width="50%"
                    GridLines="None" AutoGenerateColumns="false"
                    <HeaderStyle HorizontalAlign="Left" />
                    <MasterTableView DataKeyNames="ID" AutoGenerateColumns="false">
                            <telerik:GridBoundColumn HeaderText="ID" DataField="ID" />
                            <telerik:GridBoundColumn HeaderText="Days" DataField="Days" />
                            <telerik:GridBoundColumn HeaderText="OrderNo" DataField="OrderNo" />

    Dynamic increase checkbox should be shown in grid based on the records added or deleted i mention above my table structure

    When i click button i need find control we have created dynamic checkbox in c# code how will do this.
Back to Top