How To: Cascaded Controls - 2 drops downs and a treeview

Last post 10-13-2006 7:50 AM by WroxBuddy. 3 replies.

Sort Posts:

  • How To: Cascaded Controls - 2 drops downs and a treeview

    10-10-2006, 7:29 AM
    • Loading...
    • John1977
    • Joined on 10-10-2006, 11:04 AM
    • Posts 4

    Hi,

    Thaks for taking interesting for this question.

    I am using ASP.NET  2.0 C# with Atals. My Provblem is as below:

    - On my web page, I have two dropdown box say d1, d2 and one treview control say t1. Functionality is : When selected index changes in d1 it will populate d2. Then when selected index changes in d2 it will populate t1. This is working fine without ATLAS.

    Now there is sample on cascading dropdown box http://atlas.asp.net/atlastoolkit/CascadingDropDown/CascadingDropDown.aspx. But it uses web servicemethod  ServicePath="CarsService.asmx" ServiceMethod="GetDropDownContents". In my web application I have simple methods to fetch data to populate d1, d2 and t1. In my case there is no web service.

    Thus my question : "IS IT POSSIBLE TO POPULATE CASCADED CONTROLS WITHOUT WEBSERSEVICE USING SIMPLE METHODS? IF YES HOW TO CALL IT".

    When I place simple one updatepanel on whole page, and if I change d1 then atlas behavior is working  as no page loaded again but it does not populate d2 though the I have written code for d1's SelectedIndexChanged event.

    Looking for your Help.

    Thanks,

    John

  • Re: How To: Cascaded Controls - 2 drops downs and a treeview

    10-10-2006, 8:22 AM
    • Loading...
    • John1977
    • Joined on 10-10-2006, 11:04 AM
    • Posts 4

    Hi,

    I also try to place d2 and t1 in two update panels say U1 nad U2. Then I found when I change d1, it can update d2 as I am able to bind U1 trigger wih d1 selected index change event. But I could not bind U2 to d2 selected index change trigger as d2 is not appearing in trigger bind dialog box on right click of U2. It show U1 in constrol list but not d2. So I could associate t1 with d2.

    So thus other related question is - "IS THIS POSIBLE TO BIND A CONTROL WHICH IS INSIDE OF OTHER UPDATE PANEL ? HOW TO DO."

    Looking for your Help.Sad

    Thanks,

    John

    Filed under: ,
  • Re: How To: Cascaded Controls - 2 drops downs and a treeview

    10-11-2006, 7:37 AM
    • Loading...
    • John1977
    • Joined on 10-10-2006, 11:04 AM
    • Posts 4

    okay. Some how I created WebMethods to use cascaded dropdown controls d1, d2 control. It working well.

    Now question is when d2 selected values changes, I want to populate treeview. How can I do this ? Even though I have d2_selected index changes event in codebehind page it is not geting fire.So my treeview is not populated.!!

    OR Other way: http://atlas.asp.net/atlastoolkit/Walkthrough/CCDWithDB.aspx Here on this page if I want to use a treeview control instead of ddlColor dropdown control , is it possible ? what are the changes I have to make.

    Please help.

    Thanks,

    John

    Filed under: , , ,
  • Re: How To: Cascaded Controls - 2 drops downs and a treeview

    10-13-2006, 7:50 AM
    • Loading...
    • WroxBuddy
    • Joined on 10-13-2006, 7:38 AM
    • Posts 1

    John,

    I faced this problem in one of my recent projects.Then I found that it is a BUG Party!!! in ATALS. So we have to cross our finger till ATLAS team resolve it. If this type of basic problems are there then I would say ATALS control's future is DARK man.Angry

    Don't use ATALS in production till final release. There are many such bugs.

    - Buddy

Page 1 of 1 (4 items)
Microsoft Communities
Page view counter