All I want to do is click on the CourseName colunm (GridButtonColunm) below and launch an event then retrive the data from that rows bound fields. Please Help.
<telerik:RadGrid |
ID="RadGridResults" |
runat="server" AllowSorting="True" |
AutoGenerateColumns="False" GridLines="None" |
AllowMultiRowSelection="True" Skin="Web20" Font-Bold="False" |
Font-Italic="False" Font-Names="Verdana" Font-Overline="False" |
Font-Strikeout="False" Font-Underline="False" |
OnItemCommand="RadGridResults_ItemCommand"> |
<MasterTableView Font-Bold="False" Font-Italic="False" Font-Names="Verdana" |
Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Font-Size="11px" OnItemCommand="RadGridProduct_ItemCommand"> |
<rowindicatorcolumn> |
<HeaderStyle Width="20px" /> |
</rowindicatorcolumn> |
<expandcollapsecolumn> |
<HeaderStyle Width="20px" /> |
</expandcollapsecolumn> |
<Columns> |
<telerik:GridBoundColumn DataField="Sequence" Display="false"></telerik:GridBoundColumn> |
<telerik:GridClientSelectColumn UniqueName="colSelect" Display="True"> |
<HeaderStyle Width="40px" Font-Bold="False" Font-Italic="False" |
Font-Overline="False" Font-Strikeout="False" Font-Underline="False" |
HorizontalAlign="Center" Wrap="True" /> |
<ItemStyle BorderStyle="None" Font-Bold="False" Font-Italic="False" |
Font-Overline="False" Font-Strikeout="False" Font-Underline="False" |
HorizontalAlign="Center" Wrap="True" /> |
</telerik:GridClientSelectColumn> |
<telerik:GridBoundColumn DataField="Location" HeaderText="Location" |
SortExpression="Location" UniqueName="colLocation"> |
<HeaderStyle Width="110px" Font-Bold="True" Font-Italic="False" |
Font-Overline="False" Font-Strikeout="False" Font-Underline="False" |
ForeColor="White" Wrap="True" /> |
<ItemStyle BorderStyle="None" /> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="Products" HeaderText="PRODUCT" |
SortExpression="Product" UniqueName="colProduct"> |
<HeaderStyle Width="100px" Font-Bold="True" Font-Italic="False" |
Font-Overline="False" Font-Strikeout="False" Font-Underline="False" |
ForeColor="White" Wrap="True" /> |
<ItemStyle BorderStyle="None" /> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="Sequence" Display="false"></telerik:GridBoundColumn> |
<telerik:GridButtonColumn |
DataTextField="CourseName" |
HeaderText="COURSE NAME" |
SortExpression="CourseName" |
Text="Button" |
UniqueName="colCourseName"> |
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" |
Font-Strikeout="False" Font-Underline="False" ForeColor="White" Width="260px" |
Wrap="True" /> |
<ItemStyle BorderStyle="None" /> |
</telerik:GridButtonColumn> |
<telerik:GridBoundColumn DataField="StartDate" HeaderText="START DATE" |
SortExpression="StartDate" UniqueName="colStartDate" |
DataFormatString="{0:M/dd/yyyy}"> |
<HeaderStyle Width="130px" Font-Bold="True" Font-Italic="False" |
Font-Overline="False" Font-Strikeout="False" Font-Underline="False" |
ForeColor="White" Wrap="True" /> |
<ItemStyle BorderStyle="None" /> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="TotalAvailSeats" HeaderText="SEATS" |
SortExpression="TotalAvailSeats" UniqueName="colTotalAvailSeats"> |
<HeaderStyle Width="90px" Font-Bold="True" |
HorizontalAlign="Center" Font-Italic="False" Font-Overline="False" |
Font-Strikeout="False" Font-Underline="False" ForeColor="White" Wrap="True" /> |
<ItemStyle BorderStyle="None" HorizontalAlign="Center" /> |
</telerik:GridBoundColumn> |
</Columns> |
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" |
Font-Strikeout="False" Font-Underline="False" Wrap="True" /> |
<AlternatingItemStyle Font-Bold="False" Font-Italic="False" |
Font-Overline="False" Font-Strikeout="False" Font-Underline="False" |
Wrap="True" /> |
</MasterTableView> |
<SelectedItemStyle Font-Bold="True" ForeColor="Maroon" Font-Italic="False" |
Font-Overline="False" Font-Strikeout="False" Font-Underline="False" |
Wrap="True" BackColor="Silver" /> |
<ClientSettings EnableRowHoverStyle="False" > |
<Selecting AllowRowSelect="True" /> |
</ClientSettings> |
</telerik:RadGrid> |