Hi Mats,
To overcome the problem you can try the following approach:
- Add a button in a hidden <div> placed outside of the updatePanel on the page:
<div style="display: none;"> |
<asp:Button ID="exportButton" runat="server" Text="PostBack" OnClick="exportButton_Click"></asp:Button> |
</div> |
- Define the OnClientItemClicking event handler:
<script type="text/javascript"> |
function onClientItemClicking(sender, eventArgs) |
{ |
if (eventArgs.get_item().get_text() == "Export") |
{ |
$get("exportButton").click(); //full postback
|
} |
} |
</script> |
- In the code behind do the necessary action in the exportButton_Click event handler.
I hope this helps.
Best wishes,
Veskoni
the Telerik team