We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DiagramWebControl NodeDoubleClick

Thread ID:

Created:

Updated:

Platform:

Replies:

117196 Sep 2,2014 07:16 AM Sep 3,2014 09:04 AM ASP.NET Web Forms (Classic) 1
loading
Tags: DiagramWebControl
Siva
Asked On September 2, 2014 07:16 AM

Hi,

I'm using DiagramWebControl to show the organization chart, When I've tried to expand/shrink using the DiagramWebControl NodeDoubleClick event, rectangle is not showing properly as attached screen shot(DiagramWebControl_NodeDoubleClick.png) . But its (rectangle) showing correctly when I've use dropdown change event to do the level shrink, these are using without the master page.

Below is the code, please suggest and provide the sample source

DiagramWebControl1_NodeDoubleClick
void DiagramWebControl1_NodeDoubleClick(object sender, Syncfusion.Web.UI.WebControls.Diagram.NodeDoubleClickEventArgs e)
{
   
    if (e.Node is EmpSymbol)
    {
        EmpSymbol expsymbol = (EmpSymbol)e.Node;
        if (expsymbol.SubNodes.Count > 0)
        {
            this.DiagramWebControl1.Model.BeginUpdate();
            if (expsymbol.IsExpanded == false)
            {
                expsymbol.ExpandSubNodes(true);
            }
            else
            {
                expsymbol.CollapseSubNodes(true);
            }
            this.DiagramWebControl1.Model.EndUpdate();
        }
    }
}
       
DropDown Event
 
 protected void ddChartType_SelectedIndexChanged(object sender, EventArgs e)
{

    int cnt = 0;
    foreach (Node node in DiagramWebControl1.Model.Nodes)
    {

        if (node is EmpSymbol)
        {
            cnt++;
            //lblNode.Text += cnt.ToString() + ",";
            //if (cnt == 2)
            //if (cnt == Convert.ToInt32(ddlExpandLvl.SelectedValue.ToString()))
            EmpSymbol expsymbol = node as EmpSymbol;
            if (expsymbol.EmpLevel == Convert.ToInt32(ddlExpandLvl.SelectedItem.Text))
            {
               
                expsymbol.CollapseSubNodes(true);
            }


    }
}


Attachment: DiagramWebControl_a5385364.rar

Ashok Kumar V [Syncfusion]
Replied On September 3, 2014 09:04 AM

Hi Siva,

Thanks for your interest in Syncfusion product.

We have analysed the reported problem and we suspect this could be an issue. Please create a new incident on behalf of this reported problem from the following link for better assistance.

Here is the link: link

Please let us know if you have any concerns.

Regards,

Ashok Kumar.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;