I have RadGridView with GridViewColorColumn . The default color picker dialog is far more advanced than what i need. I just need to allow user to pick basic colors. I see a ENUMS in RadColorDialog class such as ShowBasicColors, ShowSystemColors, ShowWebColors, ShowProfessionalColors.
Question is, how do i modify this behavior from Grid?
i need to show only basic colors.
please help.
4 Answers, 1 is accepted
0
Hello Binu,
Thank you for writing.
You can access the editor in the CellEditorInitialized event. For example:
Please let me know if there is something else I can help you with.
Regards,
Dimitar
Telerik
Thank you for writing.
You can access the editor in the CellEditorInitialized event. For example:
private
void
RadGridView1_CellEditorInitialized(
object
sender, GridViewCellEventArgs e)
{
var editor = e.ActiveEditor
as
GridColorPickerEditor;
if
(editor !=
null
)
{
var element = editor.EditorElement
as
GridColorPickerElement;
RadColorDialogForm form = element.ColorDialog.ColorDialogForm
as
RadColorDialogForm;
form.ShowCustomColors =
false
;
form.ShowProfessionalColors =
false
;
form.ShowSystemColors =
false
;
}
}
Please let me know if there is something else I can help you with.
Dimitar
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Yanick
Top achievements
Rank 1
answered on 07 Dec 2018, 02:29 AM
Hi,
Cannot find GridColorPickerElement
Could you help me please!
0
Hello Yanick,
Now you should use RadColorPickerEditorElement instead.
Should you have any other questions do not hesitate to ask.
Regards,
Dimitar
Progress Telerik
Now you should use RadColorPickerEditorElement instead.
Should you have any other questions do not hesitate to ask.
Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Yanick
Top achievements
Rank 1
answered on 07 Dec 2018, 04:14 PM
Very good thank you for your time!