Results 1 to 6 of 6

Thread: ModalPopupExtender and TabContainer

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    162

    ModalPopupExtender and TabContainer

    Hi,
    I need a popup window to enable a user to edit rows of a gridview. This part is done and working. Now, i need to change this popup to contain a tabcontainer instead so that more options can be added. This, however i have had no luck getting to work. Have tried finding an example detailing how this can be done, but no luck. Any of you can point in the right direction?
    Im using the ajaxtoolkit with SharePoint 2010 and asp.net 3.5

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: ModalPopupExtender and TabContainer

    Are you able to share some of the code that you are using?

    Without it, it is going to be hard to help.

    I would suggest that you start from the beginning though. Don't immediately start putting the TabContainer into the PopupWindow. Instead, get the TabContainer working as you want it to. Then, once that is working, add the popup window.

    Gary

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    162

    Re: ModalPopupExtender and TabContainer

    Quote Originally Posted by gep13 View Post
    Are you able to share some of the code that you are using?

    Without it, it is going to be hard to help.

    I would suggest that you start from the beginning though. Don't immediately start putting the TabContainer into the PopupWindow. Instead, get the TabContainer working as you want it to. Then, once that is working, add the popup window.

    Gary
    Hi Gary,
    I got it working - the problem was due to SharePoint - the references to the AJAX toolkit had to be inserted into the v4.master.

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: ModalPopupExtender and TabContainer

    Hey,

    Glad to hear that you got it working!

    One thing though, if you are NOT using the AJAX toolkit on all the pages, adding the js files to the master page means that they will be loaded on all the pages, even if they are not needed. With SharePoint already being a resource hog, you might want to think about loading the js files only when they are really needed.

    Gary

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    162

    Re: ModalPopupExtender and TabContainer

    Hi,
    Yeah i tried that, but loading them on individual pages didnt seem to work - maybe im doing it wrong

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: ModalPopupExtender and TabContainer

    Hey,

    This is definitely something that you should be able to do, and something that we have done in the past.

    Perhaps the JavaScript files were not being added to the page early enough in the page life cycle.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width