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

Cells in a GridViewDecimalColumn are prohibited from using up or down buttons

2 Answers 65 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 1
Ricardo asked on 08 May 2019, 02:54 AM

Hello, my friend

Look at the picture below, I want to remove these two buttons, what should I do?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 08 May 2019, 01:01 PM
Hello Ricardo,

You should use the CellEditorInitialized event to access the editor an hide the arrow buttons:
private void RadGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
    var editor = e.ActiveEditor as GridSpinEditor;
    if (editor != null)
    {
        var element = editor.EditorElement as RadSpinEditorElement;
        element.ShowUpDownButtons = false;
         
    }
}

I hope this will be useful. Let me know if you have additional questions.

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
Ricardo
Top achievements
Rank 1
answered on 09 May 2019, 08:36 AM

Hello, my friend

Thank you for your reply. It works very well

Best wishes to you!

Tags
GridView
Asked by
Ricardo
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Ricardo
Top achievements
Rank 1
Share this question
or