RadGrid - 2 rows

3 posts, 1 answers
  1. Marko
    Marko avatar
    5 posts
    Member since:
    May 2015

    Posted 29 May 2015 Link to this post

    Hello!

    I'm testing telerik components and looking for best approach to solve situation like on attached picture.

    What is best solution to put "MarketingDescription" below this link? I wolud like to have something like second screenshot.

    Thank you.

     

            <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" GroupPanelPosition="Top" AllowPaging="True" PageSize="20">
                <ExportSettings>
                    <Pdf PageWidth="">
                    </Pdf>
                </ExportSettings>
                <MasterTableView DataSourceID="SqlDataSource2" NoMasterRecordsText="Molimo odaberite kategoriju.">
                    <Columns>
                        <telerik:GridBoundColumn DataField="Artikal_ID" FilterControlAltText="Filter Artikal_ID column" HeaderText="Šifra artikala" ReadOnly="True" SortExpression="Artikal_ID" UniqueName="Artikal_ID">
    <ColumnValidationSettings>
    <ModelErrorMessage Text=""></ModelErrorMessage>
    </ColumnValidationSettings>
     
                        </telerik:GridBoundColumn>
     
                        <telerik:GridImageColumn DataImageUrlFields="Artikal_ID" DataImageUrlFormatString="IMG/{0}.jpg" AlternateText="Slika" DataAlternateTextField="Artikal"
      ImageAlign="Middle" ImageHeight="60px" ImageWidth="60px" HeaderText="Slika" HeaderButtonType="None">
        </telerik:GridImageColumn>
     
     
                        <telerik:GridHyperLinkColumn AllowSorting="False" DataNavigateUrlFields="Artikal_ID" DataNavigateUrlFormatString="product_info.aspx?artikal_ID={0}" DataTextField="Naziv_artikla" DataTextFormatString="{0}" FilterControlAltText="Filter column column" Text="Naziv" UniqueName="column">
                        </telerik:GridHyperLinkColumn>
                        <telerik:GridBoundColumn DataField="Osnovica" DataType="System.Decimal" FilterControlAltText="Filter Osnovica column" HeaderText="VPC" ReadOnly="True" SortExpression="Osnovica" UniqueName="Osnovica" DataFormatString="{0:F2}">
    <ColumnValidationSettings>
    <ModelErrorMessage Text=""></ModelErrorMessage>
    </ColumnValidationSettings>
                            <HeaderStyle HorizontalAlign="Right" />
                            <ItemStyle HorizontalAlign="Right" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="MPC" DataType="System.Decimal" FilterControlAltText="Filter MPC column" HeaderText="MPC" ReadOnly="True" SortExpression="MPC" UniqueName="MPC" DataFormatString="{0:F2}">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                            <HeaderStyle HorizontalAlign="Right" />
                            <ItemStyle HorizontalAlign="Right" />
                        </telerik:GridBoundColumn>
                         
                        <telerik:GridBoundColumn DataField="MarketingDescription" FilterControlAltText="Filter MarketingDescription column" UniqueName="MarketingDescription" HeaderText="MarketingDescription" ReadOnly="True">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

  2. Answer
    Eyup
    Admin
    Eyup avatar
    3784 posts

    Posted 03 Jun 2015 Link to this post

    Hi Marko,

    You can achieve this requirement using GridTemplateColumn:
    http://www.telerik.com/help/aspnet-ajax/grid-column-types.html#template

    Hope this helps. Please give it a try and let me know if it works for you.

    Regards,
    Eyup
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. Marko
    Marko avatar
    5 posts
    Member since:
    May 2015

    Posted 03 Jun 2015 in reply to Eyup Link to this post

    Hi Eyup!

    Thank you very much. As you can see in attach, you give me great answer.

     

    Best regards,
    Marko

Back to Top