Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Problem using (WARP + Download file Dialog).
posted

Hi,

I have a problem on usage of WARP.

I have a UltraWebGrid within a WARP and Ultra Web Menu outside WARP. The WebMenu pops up on right click on any cell of DataGrid.

As i do not want whole of the page to get refreshed on click of any menu in WebMenu , I have chosen WebMenu ID in TriggerControlID property of WARP.

I need to download file from server on click on one of the menu Items.  

The Download file dialolg does not popup as the WebMenu ID in assigned in TriggerControlID property . Could you please suggest me a work around for this other than unchecking UltraWebMenu ID in TriggerControlID property of WARP !!

Help would be greatly appreciated as its very urgent.

Thanks in advance.

Nuthan.

 

Parents
No Data
Reply
  • 24497
    posted

    Hi Nuthan,

    If you need to cancel a particular request dynamically, then you may process ClientSideEvents.RefreshRequest and check for id of element which request postback. Note: WARP is not able to provide exact value for that param, so, that is the best guess. So, the id param can be string or array of strings.

    function WebAsyncRefreshPanel1_RefreshRequest(oPanel,oEvent,id)
    {
     
    var idToCancel = "xxxxx";
     
    if(id == idToCancel)
      
    oEvent.cancel = true;
    }

    You may try to debug by checking value of id in different situation. It will help you to get exact events which you want to cancel.

Children