PopupControlExtender, Repeater, Multiple-Text Boxes; Request help in doing the impossible...

Last post 05-09-2008 2:18 PM by Reddy11. 2 replies.

Sort Posts:

  • PopupControlExtender, Repeater, Multiple-Text Boxes; Request help in doing the impossible...

    05-08-2008, 6:29 PM
    • Loading...
    • Reddy11
    • Joined on 05-08-2008, 6:18 PM
    • Posts 9

    So..to make it brief, I've spent hours and hours trying to come up with a solution to my problem:

    I have 15 textboxes per row in a repeater, they are filled in via an SQL query.

    I have a TreeView in an updatepanel (in a panel), that is displayed from the PopupControlExtender when either the Country, State, or City text boxes are selected in the row.

    This TreeView contains three levels (Country -> State -> City), so that when a user selects a city the value is returned as: "Country/State/City".

    Here comes the tricky part: I want the selection of a city to populate all THREE textboxes (Country, State, City) not just the textbox that was clicked(I can do that already). This seems nearly impossible, I've seperated it into the proper values via JavaScript, but there seems to be no way for Javascript to access elements inside of a repeater. I've tried sending extra information via the .Commit() method, but again, there seems to be no way to get the current row from Repeater, or the current element, and thus no way to access the textboxes. I've tried using the OnTextChange event of the textbox, but it does not fire if it was only changed via the PopupControlExtender. I'm really really at a loss for what to do. I had assumed the Repeater would have far more power than it does, and I cannot switch from using it to represent the data at this point.

    Does anyone have any suggestions on how to go about doing this? Even getting the row that is currently in "focus" on the repeater would be wonderful..

    Thank you.

  • Re: PopupControlExtender, Repeater, Multiple-Text Boxes; Request help in doing the impossible...

    05-09-2008, 1:44 AM
    • Loading...
    • Reddy11
    • Joined on 05-08-2008, 6:18 PM
    • Posts 9

    Just thought of another possible solution, if I could get the value returned from one popupcontrolextender to be fired off to another popupcontrolextender's commit event, that would work also.

     Example:

    User clicks city textbox, tree is displayed, they select their city. This causes the full path (country-state-city) to be sent to all three popupcontrolextenders as their commit values. But..since they're in a repeater control I'm not entirely sure how to do that either.

  • Re: PopupControlExtender, Repeater, Multiple-Text Boxes; Request help in doing the impossible...

    05-09-2008, 2:18 PM
    Answer
    • Loading...
    • Reddy11
    • Joined on 05-08-2008, 6:18 PM
    • Posts 9

    Solved. I used dynamically created javascript, commitscripts, and the OnItemBound event of the repeater control to achieve what I wanted.

Page 1 of 1 (3 items)