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

Different Issues (RadDridView)

3 Answers 134 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Danny
Top achievements
Rank 1
Danny asked on 27 Apr 2011, 12:59 PM
Hello,

I've evaluated your GridView and I'm on the point to buy the WinForms controlls.
But some issues are still unresolved on my site. I'd really appreciate if you can give some advices to the following points:
  • Why is the first line with a TextBox column not painted correctly? After collapse and expand is the content correct
  • For a custom editor I derrive from BaseCustomEditor and the for the element from RadTextBoxItem
    As usual some keys such as backspace or delete are not effecting to the KeyPress event on the RadTextBoxItem. Therefore I tried to override ProcessCmdKey. But the overridden method will be never called
  • When the textbox columns change their values I want also that the bound data is changed. How can I achieve that?
  • In the CellBeginEdit method I set the height of the row to a specific value. But if I set the value above 156px a NullReferenceException is thrown. But why? I want to be able to set every height.

All listed points above have a corresponding todo comment in the attached sample project.
http://www.danflash.com/files/code/GridViewEvaluation.zip

Thank you very much.
Kind regards,
Danny

3 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 29 Apr 2011, 01:47 PM
Hello Danny,

Sorry i cannot see the problem with the textbox column...

For the key issue please try overriding the OnKeyUp like so:
protected override void OnKeyUp(KeyEventArgs e)
{
    if (e.KeyData == Keys.Delete)
        OnKeyPress(new KeyPressEventArgs((char)Keys.Delete));
    else if (e.KeyData == Keys.Back)
        OnKeyPress(new KeyPressEventArgs((char)Keys.Back));
 
    base.OnKeyUp(e);
}

For the last 2 questions Which version of telerik controls are you using?

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

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
Danny
Top achievements
Rank 1
answered on 09 May 2011, 10:30 AM
Thank you.

I'm evaluating the following version: 2011.1.11.315 (Q1 2011)

Kind regards,
Danny
0
Alexander
Telerik team
answered on 12 May 2011, 09:42 PM
Hello Danny,

Thank you for contacting us. Regarding your questions:

1. I am not able to reproduce this issue. Could you please send us pictures or video demonstrating it? It will be best if you send us a video of the described behavior. Please note that you should open a new support ticket in order to attach your files. You can use the free Jing to create the video.
2. Emanuel's solution should handle this scenario.
3. You can use the CellValueChanged event of RadGridView to update your DataSource.
4. This exception does not appear on my machine. I have attached video demonstrating my test. Could you give us more information for your testing environment? It will help me investigate this issue further.

I am looking forward to your reply.

Best regards,
Alexander
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
GridView
Asked by
Danny
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Danny
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or