简体   繁体   English

Juice UI可拖动控件

[英]Juice UI Draggable Controls

Using Juice UI draggable controls, I can easily make an update panel draggable as the code on their website suggests as follows: 使用Juice UI可拖动控件,我可以轻松地使更新面板可拖动,因为其网站上的代码如下所示:

    <asp:Panel runat="server" ID="upFormControl" CssClass="box">
        <p>Drag me around</p>
    </asp:Panel>
    <Juice:Draggable ID="Draggable1" runat="server" TargetControlID="upFormControl" />

It seems to me that I can only make an update panel draggable, no other controls seem to work. 在我看来,我只能使更新面板可拖动,而其他控件似乎无法正常工作。 i did change the ID and the TargetControlID and it all works fine. 我确实更改了ID和TargetControlID,并且一切正常。 so my logic tells me the following code should work with a button: 因此我的逻辑告诉我以下代码应与按钮一起使用:

    <asp:Button ID="Button1" runat="server" Text="Button" />
    <Juice:Draggable ID="Draggable2" runat="server" TargetControlID="Button1" />

But it does not. 但事实并非如此。 There is no documentation or help on these issues from Juice UI. Juice UI上没有关于这些问题的文档或帮助。 If anyone has any experience with this and could tell me that it will not work with other controls, or even better, tell me how to go about getting it to work with other controls, that would be greatly appreciated. 如果有人对此有任何经验,可以告诉我它不能与其他控件一起使用,甚至更好,请告诉我如何使它与其他控件一起使用,将不胜感激。

You could give Brew a try, might resolve the issue. 您可以尝试Brew ,可以解决问题。 It's a fork of Juice UI. 这是Juice UI的一个分支。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM