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

How can i remove the postback ?

4 Answers 140 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
fabio selingrim
Top achievements
Rank 1
fabio selingrim asked on 03 Nov 2008, 12:37 PM
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"));

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Nov 2008, 01:39 PM
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.
0
fabio selingrim
Top achievements
Rank 1
answered on 03 Nov 2008, 04:41 PM
yes is it .. but i don´t need de RadWindow to made the post, in the onclick of node i have the post
0
Accepted
Peter
Telerik team
answered on 04 Nov 2008, 01:11 PM

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.
0
fabio selingrim
Top achievements
Rank 1
answered on 04 Nov 2008, 06:25 PM
tnks Peter, it´s works fine !!
Tags
TreeView
Asked by
fabio selingrim
Top achievements
Rank 1
Answers by
Peter
Telerik team
fabio selingrim
Top achievements
Rank 1
Share this question
or