Click here to Skip to main content
15,911,531 members

Comments by KishoreUHG (Top 8 by date)

KishoreUHG 11-Jun-13 2:34am View    
Not like that.. i need to implement a app that post the textbox values to the intranet app and need to click the button from my developed app. Did you get what i am saying?
KishoreUHG 4-Jun-13 6:17am View    
No its reloading but Control is not going to controllor method after setting window.location. We use only ie.
KishoreUHG 3-Jun-13 8:31am View    
Deleted
This is the treeview code in Razor engine of MVC@Html.Trirand().JQTreeView(

new JQTreeView {

DataUrl = Url.Action("TreeView_TextAndImages_DataRequested"),

Height = Unit.Pixel(300),

Width = Unit.Pixel(300),

ClientSideEvents = new TreeViewClientSideEvents { Select = "SelectNode" },

}, "treeview")Here is the controller method

public JsonResult TreeView_TextAndImages_DataRequested() {

List<jqtreenode> nodes = new List<jqtreenode>();

ListAllItems(); if (lstItems.Count == 0) {

nodes.Add(new LeafNode { Text = "New.." }); }

else {

nodes.Add(new LeafNode { Text = "New..", Expanded = true });

if (check)

nodes.Add(new LeafNode { Text = "New Accumulator <date time="">..", Expanded = true });

var node = nodes.Find(n => n.Text == "New..");

foreach (TreeItems item in lstItems) {

if (item.TreeItemsCount > 0) {

node.Nodes.Add(new FolderNode { Text = item.ParentItem, Value = item.ID.ToString(), Expanded = false });

AddItems(node.Nodes, item); }

else

node.Nodes.Add(new LeafNode { Text = item.ParentItem, Value = item.ID.ToString() });

} } return tree.DataBind(nodes); }

Finally json result will be returned to the treeview and data will be binded to treeview.

When i select a node in tree, below JS function will be executed.

function SelectNode(args, event) { debugger;

var tree = $("#treeview").getTreeViewInstance();

var nodeOptions = tree.getNodeOptions(args);

var node = "New Accumulator";

if (nodeOptions.text == "New..") { }

}

If i click on the New i have to add a new node to treeview. Can you me an idea/solution how to fix this.

Thanks
KishoreUHG 9-May-13 6:49am View    
Without making chuncks can we achieve this..
KishoreUHG 9-May-13 6:49am View    
Without making chuncks can we achieve this..