Welcome Guest Search | Active Topics | Sign In | Register

CascadingDropDown Options
UweD
Posted: Friday, February 13, 2009 3:59:16 AM
Rank: Advanced Member
Groups: Member

Joined: 8/11/2008
Posts: 37
We have a TabStrip in a CallbackPanel. In one PageView there is a DetailsView containing 2 cascaded DropDownLists connected wit a ajaxToolkit:CascadingDropDown. But this didn't work. If I click on "Edit" no elements in the 2nd DropDownLists are listed. There is a web service for this but it isn't called.
Can you explain this?

Thanks Uwe
eo_support
Posted: Friday, February 13, 2009 8:59:08 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Can you create a test page that reproduces the problem so that we can take a look?

Thanks!
UweD
Posted: Friday, February 13, 2009 9:53:47 AM
Rank: Advanced Member
Groups: Member

Joined: 8/11/2008
Posts: 37
Hello,
here is the code. I think th eproblem is that I use the CallbackPanel and there is no trigger for the <ajaxToolkit:CascadingDropDown. But without the CallbackPanel I get a Callback error.

<eo:CallbackPanel ID="CallbackPanel1" runat="server" Triggers="{ControlID:DvGrup;Parameter:}">
<eo:TabStrip ID="TabStrip1" runat="server" MultiPageID="MultiPage1">
<TopGroup>
<Items>
<eo:TabItem Text-Html="Allgemein"/>
<eo:TabItem Text-Html="Planung"/>
</Items>
</TopGroup>
</eo:TabStrip>

<eo:MultiPage runat="server" id="MultiPage1">
<!-- Allgemein -->
<eo:PageView id="PvAllg" runat="server">
<asp:DetailsView ID="DvGrup" runat="server" AutoGenerateRows="False" DataKeyNames="id_msgrp" DataSourceID="SqlGrup"
OnItemInserted="DvGrup_ItemInserted" OnItemUpdated="DvGrup_ItemUpdated">
<Fields>
<asp:TemplateField HeaderText="Einrichtung:">
<InsertItemTemplate>
<asp:DropDownList ID="DdEinr" runat="server" DataSourceID="SqlEinr" DataTextField="bezeichng"
DataValueField="id_res"/>
<asp:DropDownList ID="DdUEinr" runat="server" />
<ajaxToolkit:CascadingDropDown ID="CCDd" runat="server" TargetControlID="DdUEinr"
Category="Ressort" ServiceMethod="GetDropDownContentsPageMethod" ParentControlID="DdEinr" />
</InsertItemTemplate>
<ItemTemplate>
<asp:DropDownList ID="DdEinr" runat="server" Enabled="false" DataSourceID="SqlEinr" DataTextField="bezeichng"
DataValueField="id_res" SelectedValue='<%# Eval("ressort") %>'/>
<asp:DropDownList ID="DdUEinr" runat="server" Enabled="false" DataSourceID="SqlUEinr" DataTextField="bezeich"
DataValueField="id_abt" SelectedValue='<%# Eval("abtlg") %>'/>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="DdEinr" runat="server" DataSourceID="SqlEinr" DataTextField="bezeichng"
DataValueField="id_res" SelectedValue='<%# Eval("ressort") %>'/>
<asp:DropDownList ID="DdUEinr" runat="server"/>
<ajaxToolkit:CascadingDropDown ID="CCDd" runat="server" TargetControlID="DdUEinr" SelectedValue='<%# Bind("abtlg") %>'
Category="Ressort" ServiceMethod="GetDropDownContentsPageMethod" ParentControlID="DdEinr" />
</EditItemTemplate>
</asp:TemplateField>
<!-- #include File="CommandButton.txt" -->
</Fields>
</asp:DetailsView>

</eo:PageView>

<!-- Planung -->
<eo:PageView id="PvPlang" runat="server">

</eo:PageView>
</eo:MultiPage>


<asp:HiddenField ID="MGr" runat="server" />
</eo:CallbackPanel>

eo_support
Posted: Friday, February 13, 2009 10:06:49 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please provide a complete test page that we can use to run and reproduce the problem. If the problem requires multiple pages, please create a test project and send it to us. We will PM as to where to send. Make sure you provide detailed step to step instructions on how to reproduce the problem.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.