Hi everyone,
I’ve to load a large amount of data in a RadGrid and in order to improve performance I would like to disable the RadGrid ViewState.
My RadGrid just show data and let the user to click in some image buttons to do some actions with the selected row.
When I set the EnableViewState to false, I’ve found the RadGrid1_ItemCommand event doesn’t fire when you click on the Image button but it does when you click on a link button.
<telerik:GridTemplateColumn FilterControlAltText="" UniqueName="TemplateColumn6">
<ItemTemplate>
<!--ImageButton doesn't fire the RadGrid1_ItemCommand event -->
<asp:ImageButton ID="ImageButton1" runat="server" CommandName="Imprimir2" ImageUrl="printer3.png"
CausesValidation="false" />
<!--LinkButton fires the RadGrid1_ItemCommand event-->
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="Imprimir"
Text="Print" CssClass="myCssStyle"></asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
Best regards,