Missing images / stylesheet in partialView

4 posts, 1 answers
  1. SolutionStream
    SolutionStream avatar
    40 posts
    Member since:
    Apr 2009

    Posted 14 May 2009 Link to this post

    Using a MVC.net RenderPartial(), i cannot get the TimePicker to load its' images unless I put a TimePicker in the parent view before the RederPartial is called.  

    Does anyone know why this may be, and any possible solutions to fix it?
  2. Answer
    Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 18 May 2009 Link to this post

    Hello Kier,

    The issue you observed is due to the fact that the RenderPartial(partialViewName, Model) method renders the control explicitly and its popup images are not registered on the page.

    To avoid that merely add RadStyleSheetManager in the partial view which will register the styles/images explicitly. I am attaching a test project to this forum thread for further reference (my partial view is in Views/RadTimePicker folder and is called RadTimePickerPartialView).

    Kind regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. SolutionStream
    SolutionStream avatar
    40 posts
    Member since:
    Apr 2009

    Posted 09 Jun 2009 Link to this post

    I finally got around to trying this project out and found that while the images now all work, the actual popup control does not popup the time picker.

    Do you have a solution for this?
  4. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 12 Jun 2009 Link to this post

    Hello Kier,

    I'm afraid that currently our RadDatePicker does not support rendering in partial views. However we are currently researching a possibility to better the support for partial view rendering.

    Please excuse us for the inconvenience.

    Kind regards,
    Rosen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top