ラベル drop の投稿を表示しています。 すべての投稿を表示
ラベル drop の投稿を表示しています。 すべての投稿を表示

2012年3月28日水曜日

Reset a CascadingDropDown control

Can anyone tell me how to reset a group of drop down lists that are grouped together in a CCDD control? I've tried calling dropDownList1.Items.Clear(); but that's not working.

Thanks!

Jason

not sure on this one... but I think you need to call _onParentChange() on the first CascadingDropDownBehavior object... I think you can just set the ID in the CascadingDropDownProperties and then use $object('long_generated_id')._onParentChange( false );

Sorry, but I'm not following... I can't find a method or event _onParentChange for either the CCDD or the DDL itself. I'm also not sure what you mean by $object("long_generated_id"). Where to I get this ID?

Can you provide an example?

Thanks!


Hi Jason,

Jaykul's talking about setting the ID in your CascadingDropDownProperties instance which will cause an ID to be used when it is rendered to the client. However, the ID you use will get mangled and include all the names of its parent naming containers. This mangled ID is what Jaykul was referring to by "long_generated_id." See the MSDN docs onnaming containers for more information. I think one of the easiest ways to find out the long version of the name is to turn tracing on and find it in the control tree.

Thanks,
Ted
$get("<%=ddlCountry.ClientID%>").selectedIndex = 0;

$get("<%=ddlOffice.ClientID%>").selectedIndex = 0;

$get("<%=ddlSalePerson.ClientID%>").selectedIndex = 0;

$find("<%=CascadingDropDown1.ClientID%>")._onParentChange(false);

2012年3月26日月曜日

restricting the drop area of a control

how would one restrict the drop area of a control usingDragOverlayExtender?Hi,

the drop area in this case is the BODY area, thus there's no practical way to control it without changing the whole layout of the page.

2012年3月21日水曜日

RoundedCornersExtender control problem

I've hit an issue with the screen "flickering" when i use the RoundedCornersExtender on multiple panels. It only happens if you place a drop down on one of the panels. If you get rid of the dropdowns it won't do it.

The funny thing is it only happens in IE...works fine in FireFox.

Anyone have any ideas?

here is the html for the page:

<%@dotnet.itags.org.PageLanguage="C#"AutoEventWireup="true"CodeFile="test.aspx.cs"Inherits="MasterPages_test" %>

<%@dotnet.itags.org.RegisterAssembly="AtlasControlToolkit"Namespace="AtlasControlToolkit"TagPrefix="cc5" %>

<%@dotnet.itags.org.RegisterAssembly="Microsoft.Web.Atlas"Namespace="Microsoft.Web.UI"TagPrefix="cc4" %>

<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<htmlxmlns="http://www.w3.org/1999/xhtml">

<cc5:RoundedCornersExtenderID="RoundedCornersExtender1"runat="server">

<cc5:RoundedCornersProperties

TargetControlID="Panel1"

Radius="6"

/>

<cc5:RoundedCornersProperties

TargetControlID="Panel2"

Radius="6"

/>

<cc5:RoundedCornersProperties

TargetControlID="Panel3"

Radius="6"

/>

</cc5:RoundedCornersExtender>

<cc4:ScriptManagerID="ScriptManager1"runat="server">

</cc4:ScriptManager>

<headrunat="server">

<title>Untitled Page</title>

</head>

<body>

<formid="form1"runat="server">

<asp:PanelBackColor="blue"runat="server"width="100%"ID="Panel1">

<centerid="center1">test1</center>

<asp:ButtonBorderStyle="Groove"ID="Button1"runat="server"Text="Button"/>

<asp:ButtonBorderStyle="Groove"ID="Button2"runat="server"Text="Button"/>

<asp:ButtonBorderStyle="Groove"ID="Button3"runat="server"Text="Button"/>

</asp:Panel>

<asp:PanelBackColor="blue"runat="server"width="100%"ID="Panel2">

<centerid="center2">test2</center>

<asp:ButtonBorderStyle="Groove"ID="Button4"runat="server"Text="Button"/>

<asp:ButtonBorderStyle="Groove"ID="Button5"runat="server"Text="Button"/>

<asp:ButtonBorderStyle="Groove"ID="Button6"runat="server"Text="Button"/>

<asp:dropdownlistID="Dropdownlist2"runat="server"></asp:dropdownlist>

</asp:Panel>

<asp:PanelBackColor="blue"runat="server"width="100%"ID="Panel3">

<centerid="center3">test3</center>

<asp:ButtonBorderStyle="Groove"ID="Button7"runat="server"Text="Button"/>

<asp:ButtonBorderStyle="Groove"ID="Button8"runat="server"Text="Button"/>

<asp:ButtonBorderStyle="Groove"ID="Button9"runat="server"Text="Button"/>

<asp:dropdownlistID="Dropdownlist1"runat="server"></asp:dropdownlist>

</asp:Panel>

</form>

</body>

</html>

Hi robpor88,

Thanks for bringing this to our attention. Does it flicker when loading, scrolling, or at other times? Could you perhapsfile a bug over at CodePlex?

Thanks,
Ted