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

[Solved] Export from Ajaxified Grid

3 Answers 180 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ricky
Top achievements
Rank 2
Ricky asked on 26 May 2008, 05:16 AM
Hi All
I got problem with exporting from ajaxified Grid. If i do it without Ajaxifying, it  just work fine, But i need to Ajxifi it to use the other functionality.

Can any one help me regarding this

Thanks
Ricky

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 May 2008, 05:32 AM
Hi Ricky,

Check out the following help document link.
Export from ajaxified grid

Thanks
Princy.
0
Ricky
Top achievements
Rank 2
answered on 26 May 2008, 05:52 AM
Thanks mate

i been through this one before, My export button is part of the command item template. the ASPX is as

<CommandItemTemplate>

<table cellpadding="5" width="100%">

<tr align="center" valign="middle">

<td align="center" valign="middle">

<asp:Image ID="AddRecord1" runat="server" ImageUrl="~/RadControls/Grid/Skins/AddRecord.gif"

AlternateText="Create Contact Note" />

<a href="#" onclick="return ShowInsertDUTransactionForm();">Add New</a>

</td>

<td align="center" valign="middle">

<asp:LinkButton Style="vertical-align: middle" ID="LinkButton4" runat="server" CommandName="Export">

<asp:Image ID="Image1" runat="server" ImageUrl="~/RadControls/Grid/Skins/excel.jpg"

AlternateText="Export To Excel" /> Export to Excel</asp:LinkButton>

</td>

<td align="center" valign="middle">

<asp:LinkButton Style="vertical-align: middle" ID="LinkButton23" runat="server" CommandName="PerformInsert"

Visible='<%# rgrdDUTransactions.MasterTableView.IsItemInserted %>'>

<img style="border: 0px" alt="" src="../../../RadControls/Grid/Skins/Insert.gif" /><asp:Label

ID="Label69" runat="server" Text=" Add this" Height="17px"></asp:Label></asp:LinkButton></td>

<td align="center" valign="middle">

<asp:LinkButton Style="vertical-align: middle" ID="LinkButton27" OnClientClick="javascript:return confirm('Delete selected Transaction?')"

runat="server" CommandName="DeleteSelected" CausesValidation="false">

<img style="border: 0px" alt="" src="../../../RadControls/Grid/Skins/Delete.gif" /><asp:Label

ID="Label72" runat="server" Text=" Delete Selected" Height="17px"></asp:Label></asp:LinkButton></td>

<td align="center" valign="middle">

<asp:LinkButton Style="vertical-align: middle" ID="LinkButton28" runat="server" CommandName="RebindGrid"><img style="border:0px" alt="" src="../../../RadControls/Grid/Skins/Office2007/Refresh.gif" /> Refresh</asp:LinkButton></td>

<td align="center" valign="middle">

<asp:Label ID="Label31" runat="server" Text='<%# DUTransactions.MasterTableView.DataSourceCount & " transactions" %>'></asp:Label></td>

</tr>

</table>

</CommandItemTemplate>


How can i use Triggers with this one as i am not using any Update Panel or a button in Update Panel.


Ricky


0
Sebastian
Telerik team
answered on 26 May 2008, 06:53 AM
Hello Ricky,

I think that the sample projects from the following code library thread can guide you through the process of how to disable explicitly the export button in the grid command item from being ajaxified:

http://www.telerik.com/community/code-library/submission/b311D-ttcbe.aspx

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Ricky
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Ricky
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or