本文介绍了如何将ilist传递给(Devexpress)gridview,它驻留在(DevExpress)弹出控件中而不需要回调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用devexpress工具。我有一个网格驻留在弹出控件中。这个gridview按顺序显示项目,所以我想将项目列表传递给popup中的局部视图gridview。这是我的代码请检查并提供解决方案,谢谢。

I am using devexpress tools in my application. I have grid reside in pop up control. this gridview display items in order , so i want to pass list of items to partial view gridview inside popup. here is my code please check and provide solution , thank you.

//this is popuo control
@Html.DevExpress().PopupControl(settings => {
    settings.Name = "popupControlChangePrice";
    //settings.CloseAction = CloseAction.OuterMouseClick;
    settings.CallbackRouteValues = new { Controller = "Supply", Action = "ChangeOrderPricePartial"  };
    
    //settings.PopupVerticalAlign = PopupVerticalAlign.Middle ;
    //settings.PopupHorizontalAlign = PopupHorizontalAlign.Center;
    settings.ShowFooter = true;
    settings.AllowDragging = true;
    settings.EnableHotTrack = true;
    settings.Height = Unit.Pixel(400);
    settings.Width = Unit.Pixel(800);
    settings.LoadContentViaCallback = LoadContentViaCallback.OnPageLoad;
    settings.PopupElementID = "btnPriceEdit";
    settings.HeaderText = "Updatable content";
    settings.Modal = true;

    settings.SetContent(() =>
    {
//passing list to partial view of grid 
        Html.RenderPartial("ChangeOrderPricePartial", Model.StockList );
    });

    
}).GetHtml()

推荐答案


这篇关于如何将ilist传递给(Devexpress)gridview,它驻留在(DevExpress)弹出控件中而不需要回调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 00:39