All Infragistics control videos for beginners can be found at http://www.infragistics.com/videos/get-started/intro-to-samples.aspx.
Once you watch the video .It will be easy to implement that control in your website.
Friday, January 16, 2009
Infragistics ASP .NET Samples Browser
All Infragistics controls samples.By looking at this samples infragistics control.It will be use useful to implement the code for that particular controls.We can use that control in design mode and coding for that control can be seen in SourceCode Section.
http://samples.infragistics.com/2008.3/WebFeatureBrowser/Default.aspx
http://samples.infragistics.com/2008.3/WebFeatureBrowser/Default.aspx
Way to make parent editable, but leaf not?
function BeforeBeginNodeEdit(treeId, nodeId) {
if (igtree_getNodeById(nodeId).getLevel() > 0)
return true;
else
return false;
}
if (igtree_getNodeById(nodeId).getLevel() > 0)
return true;
else
return false;
}
How to identify which node is selected when multiple nodes have the same text
protected void tree_NodeSelectionChanged(object sender,
Infragistics.WebUI.UltraWebNavigator.WebTreeNodeEventArgs e)
{
TextBox1.Text = e.Node.Text;
//You can use also other properties of the node:
//e.Node.DataKey;
//e.Node.DataPath;
}
Infragistics.WebUI.UltraWebNavigator.WebTreeNodeEventArgs e)
{
TextBox1.Text = e.Node.Text;
//You can use also other properties of the node:
//e.Node.DataKey;
//e.Node.DataPath;
}
How do I Maintain Scroll Position when a node is double clicked
You can use the method ScrollNodeIntoView(Node node)of UltraWebTree. Please take a look at the code below:
protected void Button1_Click(object sender, EventArgs e)
{
Node node = new Node();
node.Text = "isdgnfiuaswbgfiouwsebgibseri node";
Node node1 = new Node();
node1.Text = "kjnhfiosenhfoinseopi node";
node.Nodes.Add(node1);
UltraWebTree1.Nodes.Add(node);
UltraWebTree1.ScrollNodeIntoView(node);
}
protected void Button1_Click(object sender, EventArgs e)
{
Node node = new Node();
node.Text = "isdgnfiuaswbgfiouwsebgibseri node";
Node node1 = new Node();
node1.Text = "kjnhfiosenhfoinseopi node";
node.Nodes.Add(node1);
UltraWebTree1.Nodes.Add(node);
UltraWebTree1.ScrollNodeIntoView(node);
}
WebTree in overflow div
I believe one possible approach is disabling the Y overflow for the treeview in tree init on the client-side using CSOM. This would effectively disable the vertical scrollbar. For example:
Adding Groups to the WebListBar and adding a WebTree to the Group's UserControl at runtime
The following code shows how to add Groups to the WebListBar at runtime, as well as how to associate a UserControlURL to each Group and add a WebTree to each UserControl. This could be helpful in customizing what the individual user will see displayed in each Group
this.UltraWebListbar1.Groups.Add("Group 1", "One");
this.UltraWebListbar1.Groups.Add("Group 2", "Two");
this.UltraWebListbar1.Groups[0].UserControlUrl = "WebUserControl1.ascx";
this.UltraWebListbar1.Groups[1].UserControlUrl = "WebUserControl1.ascx";
//********Group 1
WebUserControl1 UC1;
UC1 = (WebUserControl1)this.UltraWebListbar1.Groups[0].UserControl;
UltraWebTree myTree = new UltraWebTree();
myTree.ID = "myTree";
UC1.Controls.Add(myTree);
UltraWebTree ucTree;
ucTree = (UltraWebTree)UC1.FindControl("myTree");
ucTree.Nodes.Add("My New Node 1");
ucTree.Nodes.Add("My New Node 2");
ucTree.Nodes.Add("My New Node 3");
//********Group 2
WebUserControl1 UC2;
UC2 = (WebUserControl1)this.UltraWebListbar1.Groups[1].UserControl;
UltraWebTree myTree2 = new UltraWebTree();
myTree2.ID = "myTree2";
UC2.Controls.Add(myTree2);
UltraWebTree ucTree2;
ucTree2 = (UltraWebTree)UC2.FindControl("myTree2");
ucTree2.Nodes.Add("My New Node A");
ucTree2.Nodes.Add("My New Node B");
ucTree2.Nodes.Add("My New Node C");
this.UltraWebListbar1.Groups.Add("Group 1", "One");
this.UltraWebListbar1.Groups.Add("Group 2", "Two");
this.UltraWebListbar1.Groups[0].UserControlUrl = "WebUserControl1.ascx";
this.UltraWebListbar1.Groups[1].UserControlUrl = "WebUserControl1.ascx";
//********Group 1
WebUserControl1 UC1;
UC1 = (WebUserControl1)this.UltraWebListbar1.Groups[0].UserControl;
UltraWebTree myTree = new UltraWebTree();
myTree.ID = "myTree";
UC1.Controls.Add(myTree);
UltraWebTree ucTree;
ucTree = (UltraWebTree)UC1.FindControl("myTree");
ucTree.Nodes.Add("My New Node 1");
ucTree.Nodes.Add("My New Node 2");
ucTree.Nodes.Add("My New Node 3");
//********Group 2
WebUserControl1 UC2;
UC2 = (WebUserControl1)this.UltraWebListbar1.Groups[1].UserControl;
UltraWebTree myTree2 = new UltraWebTree();
myTree2.ID = "myTree2";
UC2.Controls.Add(myTree2);
UltraWebTree ucTree2;
ucTree2 = (UltraWebTree)UC2.FindControl("myTree2");
ucTree2.Nodes.Add("My New Node A");
ucTree2.Nodes.Add("My New Node B");
ucTree2.Nodes.Add("My New Node C");
Subscribe to:
Posts (Atom)