use telerik controls with devexpress controls

4 posts, 0 answers
  1. Alaa'
    Alaa' avatar
    20 posts
    Member since:
    Apr 2014

    Posted 13 Apr 2014 Link to this post

    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 ? 
  2. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 15 Apr 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alaa'
    Alaa' avatar
    20 posts
    Member since:
    Apr 2014

    Posted 16 Apr 2014 in reply to Plamen Link to this post

    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 ? 

  5. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 21 Apr 2014 Link to this post

    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.

     
Back to Top