This is a migrated thread and some comments may be shown as answers.

use telerik controls with devexpress controls

3 Answers 556 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Alaa'
Top achievements
Rank 1
Alaa' asked on 13 Apr 2014, 11:05 AM
hi telerik ,
in my project i use ORGchart and ListBox  and use a button as item template in ORGchart ,
at click on the button i want to open a devexpress popup and  perform a callback to a devexpress grid view .. it is possible to do ? 

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 15 Apr 2014, 09:44 AM
Hi Alaa,

In such cases we kindly recommend using RadWindow and RadGrid for ASP .NET AJAX as for example it is done in this demo with the context menu.

Regards,
Plamen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Alaa'
Top achievements
Rank 1
answered on 16 Apr 2014, 08:21 AM
thanks for reply
I use window and rad grid  , this part of my code to clarification
<telerik:RadOrgChart ID="AdminOccupationsChart"  runat="server" LoadOnDemand="NodesAndGroups"            EnableCollapsing="true"
                                          EnableDragAndDrop="false"  GroupColumnCount="2" >
                                           
                                  
                                          <ItemTemplate>                                             
                                              <strong id="Name"> <%# DataBinder.Eval(Container.DataItem, "RecordName")%></strong>
 
                                              <button id="PopUpBtn" title="Open" class="rocOpenPopupButton"  />
                                          </ItemTemplate>
                                </telerik:RadOrgChart>
this the chart with item template "popupBtn" at load function i handel the click event for this button 
 function pageLoad() {
       
            $(".rocOpenPopupButton").click(function myfunction(e) {
  
                openpopup(e);
            })
  
        }
  
  
 function openpopup(e) {
  
       var win = $find("<%= Popup.ClientID%>");
                 win.show();
  
}

now when the window is open i need to read a new data to the grid with define inside this window ,, how i can go to the server ?? i try to use in openpopup function this 
  function openpopup(e) {
                 var orgChart = $find("<%= AdminOccupationsChart.ClientID%>");
                 var hierarchicalIndex = orgChart._extractNodeFromDomElement(e.target)._getHierarchicalIndex()
                 hierarchicalIndex = orgChart._getRealHierarchicalIndex(hierarchicalIndex);
                 $find("<%= GeneralManeger.ClientID%>").ajaxRequest("open-" + "aa" + "-" + hierarchicalIndex);
                 var grid = $find("<%= UnitOccupations.ClientID%>");
}


to go t the server and load new data in grid but no any new data in the grid will be view !?? what i can do ? 

0
Eyup
Telerik team
answered on 21 Apr 2014, 07:52 AM
Hello Alaa',

Generally, you can use the following method to rebind the grid:
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-rebind.html


In addition, I believe it will be very helpful in case you check the following live sample:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

Hope this helps.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
OrgChart
Asked by
Alaa'
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Alaa'
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or