<telerik:GridTemplateColumn DataField="Download" HeaderText="" UniqueName="Download">
<ItemTemplate>
<asp:LinkButton CommandName="Download" ForeColor="#2176D3" ID="lbDAR_Download" runat="server"
Text="Download"></asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
In the Item Command of that grid i'm calling a function to download the file from the server.
Response.ClearHeaders()
Response.Clear()
Response.ContentType =
"application/pdf"
Response.AddHeader(
"Content-Disposition", "attachment; filename=" + AppDomain.CurrentDomain.BaseDirectory & sourceFile)
Response.WriteFile(AppDomain.CurrentDomain.BaseDirectory & sourceFile)
it works fine. But if i implement the ajax for this grid with the help of RadAjaxManager, the downloading is not working.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid6">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid6" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista" />
- please provide me the solution.
-thanks,
-Saravana.
| <button id="btnOne" runat="server" class="button" onclick="showMenu(event)">Process</button> |
| <button id="btnTwo" runat="server" class="button" onclick="showMenu(event)">Process</button> |
| <Telerik:RadContextMenu id="RadContextMenu1" runat="server" Skin="WebBlue" OnItemClick="RadContextMenu1_ItemClick" > |
| <Items> |
| <Telerik:RadMenuItem Text="Accept" runat="server" /> |
| <Telerik:RadMenuItem Text="Reject" runat="server" /> |
| </Items> |
| </Telerik:RadContextMenu> |
In the server side code:
| protected void RadContextMenu1_ItemClick(object sender, RadMenuEventArgs e) |
| { |
| } |
...how can I find out which button's menu was actually clicked?
Thanks.
Bill
If i insert this code behnd onthe masterpage:
| <telerik:AjaxSetting |
| AjaxControlID="RadTabStrip1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="ContentPageWorkbench" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
I want that only the conetentplaceholder "ContentPageWorkbench" would be updated on the postback and not the whole page .
How can I handle this.
Thanks alot
Christian