iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
m using webtreeview and m binding node from server side using two datasets but when i run the application it gives script error 'Not implemented' plz replay as earyly as possible
Hi Raviraj Shimpi,
Forgive me, however, I cannot run under your code since I do not have the onjLibrary and the dataset of yours. After I see through your code, It seems that there are some couple thing that are not looked right in there.
First, it seems that you are not add the StateNode into the WebTreeView. Secondly, the object e.node or Tree in protected void GetTreeNode(WebTreeViewNode Tree) is actually the object of WebTreeView1. So, I think, we are not allowed to do WebTreeView1.Node.Add(Tree). Instead of that, perhaps, you can do "Tree.Nodes.Add(StateNode)", it will add the WebTreeNode of StateNode to WebTreeView1.
Probably to be clarify, you can take a look again at our sample at WebTree Documentation. I hope it helps. Thank you and have a nice day.
Best Regards,
Andi Santoso
Actually, we do have a documentation about using dataset in our WebTreeView. You can go to WebTreeView documentation with "ms-help://ISNet.WebUI.WebTreeView.V1/ISNet.WebUI.WebTreeView/Add TreeViewNodes based on retrieved data (Load On Demand scenario).html" page.
I hope it helps. Thank you and have a nice day.
hi m still getting same error
here is my code which have written to get treeview
protected void WebTreeView1_InitializeChildNodes(object sender, WebTreeViewNodeEventArgs e) { GetTreeNode(e.Node); }
protected void GetTreeNode(WebTreeViewNode Tree) { DataSet State = objLibrary.FillDS("ssp_GetDisplayTblStateMasterForWebGrid", "12"); DataSet City = objLibrary.FillDS("ssp_GetDisplayTblDistrictMasterForWebGrid", "12");
WebTreeViewNode StateNode = new WebTreeViewNode(); WebTreeViewNode CityNode = new WebTreeViewNode(); Tree.Expanded = true; for (int i = 0; i < State.Tables[0].Rows.Count; i++) { Tree.Nodes.Add(GetTreeNode(State.Tables[0].Rows[i], "S-"));
DataTable FilterCity = GetDataView(City.Tables[0], State.Tables[0].Rows[i]["intStateId"].ToString()); for (int j = 0; j < FilterCity.Rows.Count; j++) { StateNode.Nodes.Add(GetTreeNode(State.Tables[0].Rows[i], "C-")); } } WebTreeView1.Nodes.Add(Tree); }
public WebTreeViewNode GetTreeNode(DataRow row, string Value) { WebTreeViewNode NewNode; NewNode = new WebTreeViewNode(row[0].ToString()); NewNode.Text = row[1].ToString(); NewNode.Value = Value + row[0].ToString(); NewNode.ToolTip = row[1].ToString(); return NewNode; }
public DataTable GetDataView(DataTable row, string Value) { DataView dv = new DataView(row); dv.RowFilter = "" + row.Columns[4].ColumnName + "=" + Value + ""; return dv.ToTable(); }
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname