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 ?
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
0
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
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
this the chart with item template "popupBtn" at load function i handel the click event for this button
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
>
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
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
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.