Second time

2 posts, 0 answers
  1. Mohamed
    Mohamed avatar
    25 posts
    Member since:
    Feb 2008

    Posted 22 Mar 2008 Link to this post

    Hi all
    i want to build a professionally web site to be international and i bought this library with full items  
    Q1- which library that i use  
    Rad Controls 'Prometheus' or Rad Controls for ASP.NET 
    more information I'm use vs2008 with AJAX supported

    Q2- if you recommended the 
    Rad Controls 'Prometheus'  for developing how can apply theme in master page and make it dynamically depends on user select

    Please advice me to make decision
  2. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 23 Mar 2008 Link to this post

    Hi Mohamed,

    I would highly recommend using Prometheus if you're just starting the project - at this point you would need to have a very specific reason to use the classic versions.  There are thousands of reasons to go with Prometheus given the choice between the two.

    In regard to setting the theme dynamically, that isn't really related to Telerik as it is a Microsoft ASP.NET framework feature.  What you are trying to do can be easily done, however, in the Page_Init code for your aspx page - a Master page doesn't have a Page_Init method.  It's easy to do:

    Page.Theme = "Default" or Page.Theme = "YourThemeName"

    I would suggest storing the user's preferred theme in the Profile for that person.  For an example of this check out and create an account so you can see the theme selection in action.  This application stores the name of the user's theme in the profile, so in the Page_Init the code looks like this:

    Page.Theme = Profile.Theme

    There is a RadComboBox in the bottom right of the page with all the Theme options, so the Page_Init also sets the currently selected Theme at the same time:

    rcbTheme.SelectedValue = Profile.Theme

    The RadComboBox has a SelectedIndexChanged event that fires when the user selects a different theme, and the reloads the current page, which can be done like so:

    Profile.Theme = rcbTheme.SelectedValue

    Hope that helps,

  3. DevCraft R3 2016 release webinar banner
Back to Top