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

GridButtonColumn not showing on Client Side Binding

1 Answer 168 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Valerie Azcona
Top achievements
Rank 1
Valerie Azcona asked on 11 Apr 2011, 06:12 PM
Upon client side binding of a radgrid, the button images do not display if the AllowFilteringByColumn property is set to false.  The images do display using the exact same code, if the AllowFilteringByColumn property is set to true.

button images will display on this grid...
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SimpleGrid.ascx.cs" Inherits="UserControls_SimpleGrid" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<script language="javascript" type="text/javascript" src="SimpleGridJs.js">
<!--    //
//--></script>
 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="true" AutoGenerateColumns="False">
      <MasterTableView ClientDataKeyNames="makecode, make">
        <Columns>
              <telerik:GridBoundColumn DataField="makeid" HeaderText="makeid">
              </telerik:GridBoundColumn>
              <telerik:GridBoundColumn DataField="makecode" HeaderText="makecode">
              </telerik:GridBoundColumn>
              <telerik:GridBoundColumn  DataField="make" HeaderText="make">
              </telerik:GridBoundColumn>
              <telerik:GridButtonColumn ButtonType="ImageButton"ImageUrl="images/technote1.gif">
              </telerik:GridButtonColumn>
        </Columns>
      </MasterTableView>
      <ClientSettings>
        <DataBinding Location="SimpleService.asmx" SelectMethod="GetDataAndCount" />
      </ClientSettings>
</telerik:RadGrid>

...but if the AllowFilteringByColumn is changed to "false", there are no button images.  There are a couple radgrids in my project that don't need to have the filter functionality, and don't have the space to waste on an unneeded FilterMenu row.  Am I doing something wrong, or is there a work around?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 14 Apr 2011, 12:28 PM
Hello Valerie,


I tried to replicate the described issue locally but to no avail. Please find attached a sample runnable application which uses your code and works as expected on my side. Test it locally and let me know what the difference in your case is.


Best wishes,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Valerie Azcona
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or