Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to add a command item row for each grid row in telerik rad grid?
    primarykey
    data
    text
    <p>I have a usual rad grid. I was wondering if I could have a list of action buttons in a row rather than in columns. the buttons will vary based on each rows. any ideas?</p> <p>here is what i've experimented so far.. but no success for the nested view..</p> <pre><code> &lt;telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" PageSize="5" GridLines="None" ShowGroupPanel="True"&gt; &lt;MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="id" AllowMultiColumnSorting="True" GroupLoadMode="Server"&gt; &lt;Columns&gt; &lt;telerik:GridBoundColumn DataField="ref" HeaderText="Ref" SortExpression="ContactName" UniqueName="ContactName"&gt; &lt;/telerik:GridBoundColumn&gt; &lt;telerik:GridBoundColumn DataField="title" HeaderText="Title" SortExpression="ContactTitle" UniqueName="ContactTitle"&gt; &lt;/telerik:GridBoundColumn&gt; &lt;/Columns&gt; &lt;NestedViewSettings DataSourceID="SqlDataSource2"&gt; &lt;ParentTableRelation&gt; &lt;telerik:GridRelationFields DetailKeyField="vacancyid" MasterKeyField="id" /&gt; &lt;/ParentTableRelation&gt; &lt;/NestedViewSettings&gt; &lt;NestedViewTemplate&gt; &lt;asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap"&gt; &lt;div class="contactWrap"&gt; &lt;fieldset style="padding: 10px;"&gt; &lt;legend style="padding: 5px;"&gt;&lt;b&gt;Detail info for Customer:&amp;nbsp; &amp;nbsp;&lt;/b&gt; &lt;/legend&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; location: &lt;/td&gt; &lt;td&gt; &lt;asp:Label ID="cityLabel" Text='&lt;%#Bind("locationid") %&gt;' runat="server"&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/fieldset&gt; &lt;/div&gt; &lt;/asp:Panel&gt; &lt;/NestedViewTemplate&gt; &lt;/MasterTableView&gt; &lt;PagerStyle Mode="NumericPages"&gt;&lt;/PagerStyle&gt; &lt;ClientSettings AllowDragToGroup="true" /&gt; &lt;/telerik:RadGrid&gt; &lt;asp:SqlDataSource ID="SqlDataSource2" SelectCommand="select vacancyid, locationid from vacancylocationlocation where vacancyid = @id" ConnectionString="&lt;%$ ConnectionStrings:NorthwindConnectionString %&gt;" runat="server"&gt; &lt;SelectParameters&gt; &lt;asp:Parameter Name="id" /&gt; &lt;/SelectParameters&gt; &lt;/asp:SqlDataSource&gt; &lt;asp:SqlDataSource ID="SqlDataSource1" SelectCommand="select id, ref, title from vacancy where id = 1045" ConnectionString="&lt;%$ ConnectionStrings:NorthwindConnectionString %&gt;" runat="server"&gt;&lt;/asp:SqlDataSource&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload