小编Dan*_*ipe的帖子

如何更改MVC网格单元的Kendo UI的背景颜色

我正在使用Kendo UI为MVC开发应用程序,我希望能够更改单元格的背景,但我不知道如何获取列单元格背景属性的值,以便我可以设置它.

 @(Html.Kendo().Grid(Model)
        .Name("LineItems")
        .Events(e=> e
            .DataBound("LineItems_Databound")
        )
        .Columns(columns =>
            {
                columns.Bound(o => o.Ui).Title("UI").Width(20);
                columns.Bound(o => o.QtyOrdered).Title("Qty Ord").Width(30);
                columns.Bound(o => o.Nomenclature).Width(200);
                columns.Bound(o => o.QtyShipped).Width(20).Title("Qty Sent");
                columns.Bound(o => o.QtyReceived).Width(20).Title("Qty Rx");
                columns.Bound(o => o.ReqID).Width(50);
                columns.Bound(o => o.JCN_Job).Width(50).Title("Job/JCN");
                columns.Bound(o => o.ManPartID).Width(100).Title("Part#");
                columns.Bound(o => o.Requestor).Width(100).Title("Requestor");
            })
                     .ToolBar(toolbar =>
                     {
                         //toolbar.Create();
                         toolbar.Save();
                     })


                .Editable(editable => editable.Mode(GridEditMode.InCell))
                .Sortable()
                .Selectable()
                .Resizable(resize => resize.Columns(true))
                .Reorderable(reorder => reorder.Columns(true))
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .Model(model => model.Id(p => p.ID))
                    .Batch(true)
                    .ServerOperation(false)
                    .Read(read => read.Action("Editing_Read", "Shipping"))
                    .Update(update => update.Action("UpdateShipment", "Shipping"))
                    //.Destroy(update => …
Run Code Online (Sandbox Code Playgroud)

kendo-ui

15
推荐指数
1
解决办法
4万
查看次数

无法在Windows Phone 8中添加DLL引用

我试图用Visual Studio 2012和monogame将游戏移植到Windows Phone 8.问题是我似乎无法添加所需的DLL,错误是"对更高版本的引用或不兼容的程序集无法添加到项目中"

我试图添加的DLL称为Bass.net.dll,它以前用于普通的.Net应用程序.

有没有办法将这个引用添加到游戏中,以便我可以使用它?我在网上看了很多文章,但似乎都有不同的解释.

其中包括:无法将类库dll添加到Windows Phone 8

http://pcmusings.wordpress.com/2012/10/31/vs2012-windows-phone-and-the-reference-to-a-higher-version-error/

其中声明DLL文件应该被解除阻塞,在我的情况下,DLL和任何相关文件已经被解除阻塞,因此消息不适用.

monogame visual-studio-2012 windows-phone-8

4
推荐指数
2
解决办法
7807
查看次数

模态弹出扩展器在.Show()之后自动关闭

我正在使用AjaxToolkit中的ModalPopupExtender for asp.net.我试图用不同的按钮触发ModalPopupExtender.问题是,除非我使用TargetControlID,否则弹出窗口会在一秒钟内快速关闭.我需要这个弹出窗口可以通过几个不同的按钮访问,每次都使用相同的面板.

下面的代码应该很好地复制问题,在我的实际应用程序上几乎可以正常工作.甚至内容都是使用弹出窗口的选定面板进行更新,除非它在大约1/2秒后关闭,当我从OnClientClick调用.show()时;

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
    //Function to Hide ModalPopUp
    function Hidepopup() {
        $find('AjaxPopupHi').hide();
    }
    //Function to Show ModalPopUp
    function Showpopup() {
        $find('AjaxPopupHi').show();
    }

</script>

</head>

<form id="form1" runat="server">

<asp:LinkButton ID="lnk" OnClientClick = "Showpopup()" runat="server" Text="hi"></asp:LinkButton>


<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<br />

<asp:Button ID="Button_dummy" Style="display: none" runat="server" Text="Button" />

<ajaxToolKit:ModalPopupExtender ID="mpe" runat="server" BehaviorID="AjaxPopupHi" TargetControlID="Button_dummy" PopupControlID="pnl"
    CancelControlID="close" />

<!--BELOW panel does not remain OPEN :/-->
<asp:Panel ID="pnl" runat="server" CssClass="popupPanel">
    <div>
        Hi!!!
    </div>
    <asp:Button …
Run Code Online (Sandbox Code Playgroud)

c# asp.net ajax ajaxcontroltoolkit

3
推荐指数
1
解决办法
9777
查看次数