Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
7 views

Hello.
I am using ASP.NET Framework, and in the Telerik.Reporting.Graph section I have a chart that is populated by a stored procedure.
The output of my stored procedure has three columns: DayOfMonth, ProductionType, and Value, and it is structured as follows.

 

DayOfMonthProductionTypeValue
1Staple1244
1SumAll3066.2
1Tow1822.2
2Staple624.9
2SumAll3984.6
2Tow3359.7
3Staple1865.38
3SumAll5126.18
3Tow3260.8

ProductionType has three values: Tow, Staple, and SumAll.

I need SumAll to be displayed as a line chart, and Tow and Staple to be displayed as bar (column) charts within the same chart.
DayOfMonth should be displayed horizontally on the X-axis and represent the days of the month.

No matter how much I tried, I could not limit the ProductionType values in the line chart using the filters in:

  • series < lineSeries1 < GraphGroup < Filters

  • series < SeriesGroup < Filters

so that only ProductionType = SumAll is shown in the line chart.

The only place where I managed to apply this filter was in:

  • Data < SeriesGroup < Filters

but that filters the entire dataset, causing the bar chart to be filtered as well.

Please help me with this issue.
A sample of my code is attached.

Thank you.

Mohamad Javad
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 06 Jan 2026
1 answer
32 views

I try to follow the example in https://demos.telerik.com/aspnet-ajax/orgchart/examples/applicationscenarios/drilldowntoviewdetails/defaultvb.aspx?show-source=true but if I run the code and click on an icon for drill-down I get the error at the line "If e.SourceNode.ID <> "1" Then":

Telerik.Web.UI.OrgChartDrillDownEventArguments.SourceNode.get returned Nothing.

The code is:

  Private Sub RadOrgChart2_DrillDown(sender As Object, e As Telerik.Web.UI.OrgChartDrillDownEventArguments) Handles RadOrgChart2.DrillDown
      If e.SourceNode.ID <> "1" Then
          Dim item = New OrgChartGroupItem()
          e.SourceNode.Renderer.Controls.Remove(e.SourceNode.Nodes.Renderer)
          e.SourceNode.GroupItems.Clear()
          e.SourceNode.Nodes.Clear()
          e.SourceNode.GroupItems.Add(item)
      End If
  End Sub

Please advise!

Thx
Gerhard

Rumen
Telerik team
 answered on 19 Aug 2025
0 answers
108 views
In RadOrgChart , Why is this happening ?
Pro
Top achievements
Rank 1
 asked on 14 Jul 2023
0 answers
184 views

I have a large dataset of employees.

I want to load one node initially and all other node collapsed and load other node on demand.

But this control is loading complete data on page load which is making it slow.

is there any way to rebind the org chart on expand and bind all child nodes?

 

anuj
Top achievements
Rank 1
 asked on 01 Jun 2023
1 answer
165 views

I would like to add a hyper link to the node of an Org Chart, and I tried to add like:


<telerik:RadOrgChart>
<ItemTemplate>
<div class="abc">
<a herf="abc.abc">test link</a>
But it won't work. The hyperlink is not even clickable. Can anyone tell me how to add hyperlink to OrgChart?
yuki
Top achievements
Rank 2
Iron
Iron
Iron
 updated answer on 08 May 2023
1 answer
278 views

My page logic is that I click on an 'Apply' button, then in the Apply_Click method, I do some data binding, such as: Grid1.Datasource = xxx; Grid1.DataBind(); . And the grid can show properly on the page. But when I click on other buttons on this page (for example: click the filter on the grid) to trigger a post back, the content on the grid just disappears (The datasource is stored in a session, so it's not datasource's problem). I need to add databind() to Page_Load() to prevent this from happening. But this is very weird and feels not right. Can you help me locate the real problem?

The same issue is happening bothe in Grid and OrgChart.

Doncho
Telerik team
 answered on 25 Apr 2023
1 answer
316 views

I read this , but when I copied the code into my own project and followed the documentation, this just didn't work. The node size and the group size are weird.  No matter how I tried to edit the css settings, the height of the node just wouldn't change. Can anybody help me?

And btw I also want to ask, what do  .rocItem and .rocItemContent mean? When I use my browser's inspect function, I also see a .rocItemTemplate, what is that?

Doncho
Telerik team
 answered on 25 Apr 2023
0 answers
123 views

So I have a organization chart and a button. When I click on the button, I will fill in a DataTable stored in ViewState to be the data source of the org chart. Since I'm still having the problem in another post that nobody replied yet: Databinding keeps disappearing when post back in UI for ASP.NET AJAX | Telerik Forums  So I add some handling in Page_Load to avoid the org chart from becoming blank.

My Page logic is as follows:


<Telerik:RadButton ID="btn1" OnClick="btn_click">
...
<Telerik:RadOrgChart ID="OrgChart1">



protected DataTable table1 { get { if (ViewState["table1"] != null) return (DataTable)ViewState["table1"]; else

return null; } set { ViewState["table1"] = value; } } protected DataTable table2 { get { if (ViewState["table2"] != null) return (DataTable)ViewState["table2"]; else return null; } set { ViewState["table2"] = value; } } protected void Page_Load(object sender, EventArgs e) { if (!PostBack) // do something

if (table1 != null && table2!=null) { OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldID = "aaa"; OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldParentID = "bbb"; OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataCollapsedField = "ccc"; OrgChart1.RenderedFields.NodeFields.Add(new OrgChartRenderedField() { DataField = "A" }); OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataSource = table1; OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldNodeID = "aaa"; OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldID = "ddd"; OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataSource = table2; OrgChart1.DataBind(); } }



protected void btn_click(object sender, EventArgs e) {

               // do something to provide data for table1 and table2

                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldID = "aaa";
                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldParentID = "bbb";
                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataCollapsedField = "ccc";
                OrgChart1.RenderedFields.NodeFields.Add(new OrgChartRenderedField() { DataField = "A" });
                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataSource = table1;

                OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldNodeID = "aaa";
                OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldID = "ddd";
                OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataSource = table2;

                OrgChart1.DataBind();

}

    

And then, when the page is post back, suddenly there are duplicate group names in the org chart as you can see in the screenshot.

Can somebody help me?

yuki
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 21 Apr 2023
0 answers
145 views
Is it possible to add a radbutton to org chart nodes? I would like to add a button to org chart nodes, and when the button is clicked, something happens to the webpage. I looked through demos and didn't find anything related? Could someone tell me if this is feasible? Thanks.
yuki
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 21 Apr 2023
0 answers
110 views

Is there any way to sort nodes based on hierarchyid?

currently default sorting based on alphabetical order.

 

Thanks in advance

Hari
Top achievements
Rank 1
 asked on 28 Jan 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?