Hi Team,
I have bind the value XmlDataProvider to XamDatagrid, i have use treeview while i select the child node initially the values bind properly in XamDatagrid but i select different child the xamdatagrid doesn't refresh.
I have tried below concepts before assign the value to XamDatagrid,
XamDatagrid1.DataContext = null;XamDatagrid1.DataSource = null;XamDatagrid1.Records.RefreshSort();
Also i have check below weblink doesn't work,
http://es.infragistics.com/community/forums/t/18253.aspx
http://es.infragistics.com/community/forums/p/4985/23376.aspx
Please suggest.
Hello Vishnuvarthan,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi Stefan,
Thanks for your reply, i got solution.
I have changed Memorystream insteadof XmlDataprovider the xamdatagrid is now refreshing properly.
Thanks,
Vishnuvarthan
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
I have been looking into your code, but I am not able to conclude what can cause this without an isolated sample project, where your issue is reproduced so, could you please send us such sample project, so we can investigate it further for you.
Looking forward for your reply.
Thanks for your sample application, it is working fine, i didn't pass the data XmlDataProvider through xaml, Actuall i am using MVVM pattern, i tried your sample it's not working, could you please provide MVVM pattern for the same.
I have use below coding,
ViewModel.cs
public XmlDataProvider PrototypeProvider { get { return _prototypeProvider; } set { _prototypeProvider = value; // Call OnPropertyChanged whenever the property is updated OnPropertyChanged("PrototypeProvider"); } }
public void prototypeMethodQuery(string Prop)
{ ReportType = Prop; string PrototypeXmlString = null; //PipelineBrowserServiceClient ws = _pipeDAL.GetPipleineServiceClient(); //string[] StratsList = ws.selectAllStrat(); //string[] SummaryList = ws.selectAllSummarization();
try { PrototypeProvider = null; IsEnableApply = false; if (ReportName != null && Prop == "Strats") { string stratOptions = null; stratOptions = _pipeDAL.GetStratCategory(ReportName, SelectorConditions); PrototypeXmlString = stratOptions; } if (ReportName != null && Prop == "Summaries") { string summaryOptions = null; summaryOptions = _pipeDAL.GetSummaryCategory(ReportName, SelectorConditions); PrototypeXmlString = summaryOptions; }
if (PrototypeXmlString != null && PrototypeXmlString != "") { // prepare xml XmlDocument doc = new XmlDocument(); doc.LoadXml(PrototypeXmlString); if (PrototypeProvider == null) PrototypeProvider = new XmlDataProvider();
if (PrototypeProvider != null) { PrototypeProvider.Document = doc; PrototypeProvider.XPath = "/Results";
PrototypeProvider.IsInitialLoadEnabled = true; PrototypeProvider.IsAsynchronous = false; //PrototypeProvider.DeferRefresh(); PrototypeProvider.Refresh(); } } else { PrototypeProvider = null; // PipelineSummaryList; } } catch (Exception ex) { Logger.Write(ex.StackTrace); } }
Please assist.