Thanks for reply. I am using 8.1 version. Please look into sample code which I have done. Please point where I am doing something wrong.
Because I have empty Popup when clicking on News details .
////////////////////////////Firstly ".cs" file////////////////////////////////////////////////////////////////////
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Page.ClientScript.RegisterClientScriptInclude("MyScript", "JScript.js");
if (IsCallback)
System.Threading.Thread.Sleep(50); // Intentionally pauses server-side processing, to demonstrate the Loading Panel functionality.
}
protected void ASPxCallback1_Callback(object source, DevExpress.Web.ASPxCallback.CallbackEventArgs e)
{
string s= e.Parameter;
int newsID = int.Parse(e.Parameter);
IHierarchicalDataSource dataSource = XmlDataSource1 as IHierarchicalDataSource;
HierarchicalDataSourceView view = dataSource.GetHierarchicalView("");
IHierarchicalEnumerable enumerable = view.Select();
int index = 1;
string text = "";
foreach(object obj in enumerable) {
if(newsID == index) {
IHierarchyData data = enumerable.GetHierarchyData(obj);
PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(data);
PropertyDescriptor descriptor = properties.Find("description", true);
text = descriptor.GetValue(obj).ToString();
}
index++;
}
e.Result = text;
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////part of "aspx" file//////////////////////////////////////////////////////////////////////
<table class="style1">
<tr>
<td>
<dxnc:ASPxNewsControl ID="ASPxNewsControl1" runat="server" NavigateUrlFormatString="BLOCKED SCRIPTvoid('{0}');"
DataSourceID="XmlDataSource1" Width="400px"
CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful"
ImageFolder="~/App_Themes/Youthful/{0}/" LoadingPanelImagePosition="Bottom">
<LoadingPanelStyle ImageSpacing="3px">
</LoadingPanelStyle>
<LoadingPanelImage Url="~/App_Themes/Youthful/Web/tcLoading.gif" />
<ItemDateStyle Spacing="10px">
</ItemDateStyle>
<Items>
<dxnc:NewsItem Date="11/13/2008 15:36:12" HeaderText="asdfasd asdfa asd "
Text="asdfasdf asdf asdf asdf adsf asdf asdf asdf ">
</dxnc:NewsItem>
<dxnc:NewsItem Date="2008-11-14" HeaderText="asdf asdf"
Text="asdfa asdf asdf asdf ">
</dxnc:NewsItem>
</Items>
<ItemSettings DateHorizontalPosition="OutsideLeft"
TailPosition="KeepWithLastWord" MaxLength="120" ShowImageAsLink="True">
<TailImage Align="Bottom" Height="11px"
Url="~/App_Themes/Youthful/Web/hlTailImage.png" Width="16px" />
</ItemSettings>
<ItemRightPanelStyle Spacing="7px">
</ItemRightPanelStyle>
<ItemLeftPanelStyle Spacing="7px">
</ItemLeftPanelStyle>
<ItemHeaderStyle Spacing="2px">
</ItemHeaderStyle>
<ClientSideEvents TailClick="function(s, e) {
OnTailClick(e.name, e.htmlElement);
}" BeginCallback="function(s, e) {
OnNewsControlBeginCallback();
}" />
<PagerSettings>
<AllButton>
<Image Height="15px" Width="21px" />
</AllButton>
<FirstPageButton Text="">
<Image Height="15px" Width="21px" />
</FirstPageButton>
<LastPageButton ImagePosition="Left" Text="">
<Image Height="15px" Width="21px" />
</LastPageButton>
<NextPageButton Text="">
<Image Height="15px" Width="16px" />
</NextPageButton>
<PrevPageButton Text="">
<Image Height="15px" Width="16px" />
</PrevPageButton>
<Summary AllPagesText="" Text="" />
</PagerSettings>
</dxnc:ASPxNewsControl>
<asp:XmlDataSource ID="XmlDataSource1" runat="server"
DataFile="~/App_Data/NewsControlRSS.xml"
TransformFile="~/App_Data/NewsControlRSS.xslt"></asp:XmlDataSource>
<dxcb:ASPxCallback ID="ASPxCallback1" runat="server" ClientInstanceName="NewsCallback1"
oncallback="ASPxCallback1_Callback" style="margin-bottom: 0px">
<ClientSideEvents CallbackComplete="function(s, e) {
OnCallbackComplete(e.result);
}" />
</dxcb:ASPxCallback>
</td>
<td>
<dxpc:ASPxPopupControl PopupAction="None" ClientInstanceName="ASPxPopupClientControl1" PopupHorizontalAlign="OutsideRight" EnableViewState="False" ID="ASPxPopupControl1" runat="server" PopupHorizontalOffset="5" AllowDragging="True" EnableAnimation="False" PopupVerticalAlign="TopSides" CloseAction="CloseButton" HeaderText="Details">
<ContentCollection>
<dxpc:PopupControlContentControl runat="server"></dxpc:PopupControlContentControl>
</ContentCollection>
</dxpc:ASPxPopupControl>
</td>
</tr>
</table>
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Javascript file is the same as in the example.