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

OnNodeBound is not firing

1 Answer 155 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
raphael
Top achievements
Rank 1
raphael asked on 19 Aug 2008, 09:06 AM

Hi everybody,

I trying to use the OnNodeBound event but I can't bring to work, the event does not want to fire, and I can't Understand what I'm doing wrong.

<
telerik:RadTreeView Skin="Office2007" ID="RTMM" Runat="server" CheckBoxes="true" OnNodeBound="HandleNodeBound">

ON MY CODE PAGE

protected void Page_Load(object sender, EventArgs e){
    SecurityFacade facade = new SecurityFacade();
    this.RTMM.DataSource = facade.getPortfolioRoles(1, false).Tables[0];
    
this.RTMM.DataFieldID = "Id";
    this.RTMM.DataFieldParentID = "ParentId";
    this.RTMM.DataTextField = "Name";
    
this.RTMM.DataBind();
}

protected

void HandleNodeBound(object sender, RadTreeNodeEventArgs e){
    DataRowView dataSourceRow = (DataRowView)e.Node.DataItem;
    e.Node.Checked= (
bool)(dataSourceRow["IsChecked"]);
}


Can maybe someone of you help me? Thank you very much

Raphael

1 Answer, 1 is accepted

Sort by
0
raphael
Top achievements
Rank 1
answered on 19 Aug 2008, 09:16 AM
I just found out that I was using the wrong event!

OnNodeBound instead of OnNodeDataBound

Tags
TreeView
Asked by
raphael
Top achievements
Rank 1
Answers by
raphael
Top achievements
Rank 1
Share this question
or