This is a migrated thread and some comments may be shown as answers.

Color Gallery

6 Answers 84 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Tooraj
Top achievements
Rank 1
Tooraj asked on 30 Apr 2011, 12:05 PM
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.

6 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 01 May 2011, 11:09 AM
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
0
Tooraj
Top achievements
Rank 1
answered on 02 May 2011, 03:55 AM
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.
0
Emanuel Varga
Top achievements
Rank 1
answered on 02 May 2011, 06:51 AM
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
0
Tooraj
Top achievements
Rank 1
answered on 02 May 2011, 10:06 AM
Hi Emanuel,
Just backgoround and forecolor of cells.
0
Emanuel Varga
Top achievements
Rank 1
answered on 02 May 2011, 10:39 AM
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
0
Ivan Petrov
Telerik team
answered on 05 May 2011, 07:51 AM
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.
Tags
RibbonBar
Asked by
Tooraj
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Tooraj
Top achievements
Rank 1
Ivan Petrov
Telerik team
Share this question
or