How can i remove the postback ?

5 posts, 1 answers
  1. fabio selingrim
    fabio  selingrim avatar
    5 posts
    Member since:
    Jun 2008

    Posted 03 Nov 2008 Link to this post

    How can i remove the postback when i click in a node of the RadTree??

    As far as i know, PostBack happens when i handle the event 'onnodeclick', but i need to use this method to catch the value of the clicked node.

    Not use "__doPostBack()"

    How can i acomplish that?

    $create(Telerik.Web.UI.RadTreeView, {"_postBackDEFANGED_OnClick":true,"_postBackOnContextMenuItemClick":true,"_postBackReference":"__doPostBack(\u0027ctl00$filas$dckFilas$C$tevFilasPublicas\u0027,\u0027arguments\u0027)","_scrollPosition":0,"_skin":"Default","_uniqueId":"ctl00$filas$dckFilas$C$tevFilasPublicas","clientStateFieldID":"ctl00_filas_dckFilas_C_tevFilasPublicas_ClientState","collapseAnimation":"{\"type\":12,\"duration\":100}","contextMenuIDs":["MainContextMenu"],"expandAnimation":"{\"duration\":100}","nodeData":[{"value":"1"},{"value":"2"},{"value":"3"},{"value":"4"},{"value":"5"},{"value":"6"},{"value":"7","selected":1},{"value":"8"},{"value":"9"},{"value":"10"}],"selectedIndexes":["6"]}, null, null, $get("ctl00_filas_dckFilas_C_tevFilasPublicas"));
    
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 03 Nov 2008 Link to this post

    Hi fabio,

    You can suspend the node click event and postback after a confirmation, as shown in this kb article:

    Using radprompt and radconfirm with Telerik navigational controls 

    Is this what you need?

    Regards,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. fabio selingrim
    fabio  selingrim avatar
    5 posts
    Member since:
    Jun 2008

    Posted 03 Nov 2008 Link to this post

    yes is it .. but i don´t need de RadWindow to made the post, in the onclick of node i have the post
  4. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 04 Nov 2008 Link to this post


    Hello fabio,

    You can either set the PostBack property of the node in code-behind, or cancel the OnClientNodeClicking client-side event using the set_cancel() method.   


    Regards,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. fabio selingrim
    fabio  selingrim avatar
    5 posts
    Member since:
    Jun 2008

    Posted 04 Nov 2008 Link to this post

    tnks Peter, it´s works fine !!
Back to Top