This is a migrated thread and some comments may be shown as answers.

[Solved] RowSelect problem with GridtemplateColumn

2 Answers 152 Views
Grid
This is a migrated thread and some comments may be shown as answers.
VANDENBERGHE
Top achievements
Rank 1
VANDENBERGHE asked on 02 Jun 2008, 04:26 PM
Hi everyone,

I have this piece of code :
<telerik:RadGrid ID="gridViewCtrl" runat="server" AutoGenerateColumns="false" Skin="Default">  
  <MasterTableView> 
    <Columns>                                                          
      <telerik:GridTemplateColumn HeaderText="Product Name" SortExpression="Name" GroupByExpression="Name Group by Name">  
        <ItemTemplate> 
          <table width="100%" cellpadding="0" cellspacing="0" border="0">  
            <tr> 
              <td> 
                <img src="../images/i_product.png" alt="" /> 
              </td> 
              <td> 
                <asp:Label ID="lbProductName" runat="server" /> 
              </td> 
            </tr> 
          </table> 
        </ItemTemplate> 
      </telerik:GridTemplateColumn> 
    </Columns> 
  </MasterTableView> 
  <ClientSettings EnablePostBackOnRowClick="true">  
    <Selecting AllowRowSelect="True" /> 
  </ClientSettings> 
</telerik:RadGrid> 
                                             

My problem is I can't select an Item by clicking in the table of the TemplateColumn. I have to click in the row just near the table. If I test without table in the template everything works well.

Is there any workaround ?

Is it possible to use a table in a GridtemplateColumn and keep active selection on row click?

Thanks,
Sebastien.

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Petkov
Telerik team
answered on 03 Jun 2008, 07:09 AM
Hello,

The problem you describe is fixed in the latest release we uploaded three weeks ago and is labeled 2008.1.515. You can check on the last Grid column here:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GeneralFeatures/ColumnTypes/DefaultCS.aspx


Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
VANDENBERGHE
Top achievements
Rank 1
answered on 03 Jun 2008, 07:18 AM
Thanks a lot, it works fine with the latest version.

Regards,
Tags
Grid
Asked by
VANDENBERGHE
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
VANDENBERGHE
Top achievements
Rank 1
Share this question
or