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

RadGridView -> Minimize and Checkbox

12 Answers 136 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 23 Jul 2009, 02:21 PM
Hi @all,

i have a very crazy problem:

So - i have a RadGridView inside my Radform. I use a dataset to fill my Gridview. Inside this gridview a have a checkbox culumn

This Application works very fine. No problems - hour by hour - i can check my checkboxes on and off.

BUT - if i minimize my application to the "?" bar (Use notify icon)  - and open the appilcation again i have a very crazy problem:

You can't check any boxes - or very difficult - perhaps you must click two or three times to check it on.
Or if you check on/off the checkbox in the first row - another checkbox in another row - checked on/off.

At the RadForm i use the event: FormClosing with this code:

e.Cancel = true;  
this.ShowInTaskbar = true;  
this.WindowStat = FormWindowState.Minimized;  
notico.Visible = true

Inside the Form1_Resize
if(this.WindowState == FormWindowState.Minimized)  
{  
   notico.ContextMenu = _contextMenu;  
   this.ShowInTaskbar = false;  
   this.WindoState = FormWindowState.Minimized;  
   notico.Visible = true;  

It´s very simple. I think the handling with the grid it´s ok because all works fine without minimize.

Can someone help me?

Thanks
Markus


Oh -> If if click the right mouse button on a row - the grid checked two checkboxes on/off. It´s not normal ! :-)


--> NEW INFORMAITONS:

The same Application with MS GridView --> Works. Is this a Telerik Bug?




12 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 24 Jul 2009, 11:05 AM
Hi Markus,

Thanks for contacting us and for the provided code snippets. I have tried to reproduce the behavior you described by using the snippets that you sent to us but unfortunately to no avail. Therefore, I would like to ask you to send me a sample Windows Forms application that manages to reproduce the behavior so that we can take a look at it and see what causes the described issues.

Thanks for your time. I am looking forward to receiving the requested details.

All the best,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pierre
Top achievements
Rank 1
answered on 24 Jul 2009, 11:13 AM
Hi Deyan ,

Thanks for your response. Do you have me an email address?

Thanks
Markus

0
Deyan
Telerik team
answered on 24 Jul 2009, 11:56 AM
Hi Markus,

I am sorry, I have forgotten to mention that you will have to open a support ticket in order to be able to attach your project.

Please open a new support ticket and attach your project in .ZIP format. Thanks for your time.

Greetings,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pierre
Top achievements
Rank 1
answered on 24 Jul 2009, 12:31 PM
Hi Deyan,

can you take a look inside your ticketsystem?

After fill out the ticket form - and clicking on "send" - not´s happend. No error message - no status message - but i receive a new blank ticket form (so i create two tickets) but i think nothing was stored into your system

Markus
0
Nick
Telerik team
answered on 24 Jul 2009, 01:33 PM
Hi Markus,

Thank you for contacting us. We cannot find any problem in our support system. The most perplexing thing is that you were able to send this forum post which means that everything should work. If the issue persists please send us more information about the browser that you are using. Thank you very much in advance.

Kind regards,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pierre
Top achievements
Rank 1
answered on 29 Jul 2009, 02:55 PM
Hi Nick,

i have got a seconed problem with my Checkbox in my RadGridView.

the first: I have updated my project to the new telerik version -> perfect - i havent got anly problems :-)

but my next with the grid:

i have got a checkbox inside my grid. When i click this checkbox the event: 

CellClick  - doenst run on a checkbox cell
CellEndEdit - on this event i must click on an other row or on the form to activate this event after clicking my checkbox.

What i need is: Click on the checkbox and start an event. With the other column inside - i havent got problems - only with my checkbox column.

            GridViewCheckBoxColumn chkBoxColumnDL = new GridViewCheckBoxColumn();  
            chkBoxColumnDL.UniqueName = "test";  
            chkBoxColumnDL.ReadOnly = false;  
            chkBoxColumnDL.HeaderText = "test";  
            chkBoxColumnDL.FieldName = "test";  
            chkBoxColumnDL.Width = 45;  
            chkBoxColumnDL.TextAlignment = ContentAlignment.MiddleCenter;  
            radGridView1.MasterGridViewTemplate.Columns.Add(chkBoxColumnDL); 

Can someone help?

Thanks
Markus

0
Nick
Telerik team
answered on 30 Jul 2009, 07:34 AM
Hello Markus,

I think that you can use ValueChanged event as shown in our documentation. Is this a good replacement of the CellClick event?

Regards,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pierre
Top achievements
Rank 1
answered on 31 Jul 2009, 07:49 AM
Hello Nick,

hm, i do some database taks and refresh my grid with the new values from the db. So - on each refresh the event Value Chanded starts too.

Regards
Markus
0
Jack
Telerik team
answered on 31 Jul 2009, 09:06 AM
Hi Markus,

CellClick doesn't fire in this case because the checkbox cell contains a permanent editor which intercepts all mouse events. You can check the sender argument when handling ValueChanged event. In case of a checkbox it will contain RadCheckBoxEditor. Here is a sample:

void radGridView1_ValueChanged(object sender, EventArgs e) 
    if (sender is RadCheckBoxEditor) 
    { 
        //... 
    } 

I hope this helps. If you need further assistance, don't hesitate to write back.

Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pierre
Top achievements
Rank 1
answered on 31 Jul 2009, 09:15 AM
Hello Jack,

thank you very much - it helps me.

One question :-) 

I havent got the RowIndex inside the ValueChanged event (eventargs). I need to read and set some values inside the row.

like this:
string strdbID = radGridView1.Rows[iRowIndex].Cells["ID"].Value.ToString(); 


Can you help me?

Regards
Markus
0
Accepted
Jack
Telerik team
answered on 31 Jul 2009, 03:00 PM
Hi Markus,

I am glad to hear that. You don't need the row index. You can get the row by using CurrentRow property of RadGridView. Here is a sample:

string strdbID = this.radGridView1.CurrentRow.Cells["ID"].Value.ToString(); 

Should you have any questions, feel free to ask.

Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pierre
Top achievements
Rank 1
answered on 31 Jul 2009, 09:09 PM
Hi Jack,

YEEES - this is what i need. Thank you very much.

thank you for your very good support  :-)

Nice team

Regards
Markus
Tags
GridView
Asked by
Pierre
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Pierre
Top achievements
Rank 1
Nick
Telerik team
Jack
Telerik team
Share this question
or