Hello,
i make a RadTreeView so:
It works fine.
playerID - Primary key
parentID - for TreeView
playerName - String
Route - a value between 1 to 4 (1-Main, 2-Partial, ...)
Once a new record is inserted into the database, I get back the new playerID.
How can i select the new Node in the TreeView with the new playerID?
Best regards
Reiner
i make a RadTreeView so:
<
telerik:RadTreeView
ID
=
"RadTreeView1"
Runat
=
"server"
DataFieldID
=
"playerID"
DataFieldParentID
=
"parentID"
DataSourceID
=
"ObjectDataSource1"
DataTextField
=
"playerName"
DataValueField
=
"Route"
onnodedatabound
=
"RadTreeView1_NodeDataBound"
Width
=
"100%"
oncontextmenuitemclick
=
"RadTreeView1_ContextMenuItemClick"
>
It works fine.
playerID - Primary key
parentID - for TreeView
playerName - String
Route - a value between 1 to 4 (1-Main, 2-Partial, ...)
Once a new record is inserted into the database, I get back the new playerID.
PlayerBLL players = new PlayerBLL();
string text = SaveSQL.GetSaveSql(txtCreateMainRouteName.Text.Trim());
if (Page.IsValid)
{
PlayerID = players.InsertRouteAndStation(text, 1, null);
RadTreeView1.DataSourceID = "ObjectDataSource1";
RadTreeView1.DataBind();
}
How can i select the new Node in the TreeView with the new playerID?
Best regards
Reiner