Color Gallery

7 posts, 0 answers
  1. Tooraj
    Tooraj avatar
    74 posts
    Member since:
    Aug 2010

    Posted 30 Apr 2011 Link to this post

    Hi,
    I need a Color gallery in my project to let user to format grid's cell to save them.
    Please guide me.
    tooraj azizi.
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 01 May 2011 Link to this post

    Hello Tooraj,

    Could you please be more specific? I don't really understand what you are looking for..

    Best Regards,
    Emanuel Varga

    Telerik WinForms MVP
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Tooraj
    Tooraj avatar
    74 posts
    Member since:
    Aug 2010

    Posted 01 May 2011 Link to this post

    Sure,
    Suppose I have a child form and a grid is displayed. the user can use color gallery on the ribbon to format the cells as he/she want. also this formatting must be saved (Maybe using SaveLayout method).
    Formatting also includes Font and FontStyles.
    Is it clear enough?
    Thank you again Emanuel, You really help me.
  5. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 02 May 2011 Link to this post

    Hello again,

    Ok, i understood the part about font and fontstyle, but what about colors, what kind of formatting? conditional formatting? background colors? header background colors? fore colors?

    Best Regards,
    Emanuel Varga

    Telerik WinForms MVP
  6. Tooraj
    Tooraj avatar
    74 posts
    Member since:
    Aug 2010

    Posted 02 May 2011 Link to this post

    Hi Emanuel,
    Just backgoround and forecolor of cells.
  7. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 02 May 2011 Link to this post

    Hello again,

    Ok... that sounds very simple to do, just take a look at the examples application: RibbonBar / First Look on how to create the color / color chooser element - This should be enough to create the ribbon components necessary for this operation.

    After that you will have to register to the grid's CellFormatting / RowFormatting event (I believe that there are a lot of examples on the forums on how to use these) and set the appropriate colors based on the users selection.

    One other thing, for the grid to apply the selection you should add these two lines:
    radGridView.BeginUpdate();
    // maybe do some other things
    radGridView.EndUpdate();


    Hope this helps, if you have any other questions or comments, please let me know,

    Best Regards,
    Emanuel Varga

    Telerik WinForms MVP
  8. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 05 May 2011 Link to this post

    Hello Tooraj,

    Thank you for writing.

    What I understand from your requirements is that you want something like the MS Excel formatting. However, this is not supported by RadGridView -  you can format the cells colors, but you cannot save the formatting as there is no such serialization provided by RadGridView

    I will be happy to answer any further questions should you have such.

    Kind regards,
    Ivan Petrov
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Back to Top
UI for WinForms is Visual Studio 2017 Ready