Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ian Robinson 79 posts 143 karma points
    Oct 21, 2011 @ 14:56
    Ian Robinson
    0

    Adding custom stylesheet to backoffice user control

    Hi,

    I've created a user control that's displayed in the users dashboard.  It displays a list of users from an Active Directory after the user enters some search criteria.

    My questions is, what's the best way to add my own custom style sheet to my table of user results?

    I'm sure this must have been asked in the past, but I've searched the forum and I can't find an answer.

     

  • Rodion Novoselov 694 posts 859 karma points
    Oct 21, 2011 @ 15:18
    Rodion Novoselov
    0

    Hi. Umbraco heavily uses ASP.Net Client Dependency Framework, so the best way to inject your stylesheet is to make use of it as well.

    You can find documentation on it here: http://clientdependency.codeplex.com/documentation , though be little carefull since the version of CD framework that umbraco uses is not the lates one and can miss some features.


  • Ian Robinson 79 posts 143 karma points
    Mar 21, 2012 @ 10:20
    Ian Robinson
    0

    Thanks Rodion,

    I took a look at clientdependency and it was exactly what I needed.  I found this video useful as well from Shannon Deminick at Code Garden 11 - http://codegarden11.com/sessions/day-2/slot-three/clientdependency.aspx

    In the end I used clientdependancy to import my own stylesheet as well as the jQuery UI css and the javascript for DataTables.net.  Then I used a data table to format my list of users and add pagination and column sorting.  It looks great now.

    Thank you for your help!

Please Sign in or register to post replies

Write your reply to:

Draft