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

GridViewComboBoxColumn retaining value after leaving row

7 Answers 155 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alfred Ortega
Top achievements
Rank 2
Alfred Ortega asked on 27 May 2008, 09:10 PM
I have a simple grid in which one of the columns is a drop down to a reference table.  I get them both to bind fine but when I leave the dropdown box it returns to it's original value.  Textbox columns work just fine.

I am dynamically creating all the columns including the drop down:

GridViewLookUpColumn jurisComboBoxColumn = new
GridViewLookUpColumn();

jurisComboBoxColumn.HeaderText = "MISSO";
jurisComboBoxColumn.Width = 100;
jurisComboBoxColumn.FieldName = "JurisdictionID";
jurisComboBoxColumn.DataSource = _jurisCodes;
jurisComboBoxColumn.ValueMember = "ID";
jurisComboBoxColumn.DisplayMember = "Name";
jurisComboBoxColumn.UniqueName = "jurisComboBox";
userListGridView.MasterGridViewTemplate.Columns.Add(jurisComboBoxColumn);

Am I missing something?

Thanks in advance,
Al

7 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 29 May 2008, 03:09 PM
Hello Alfred Ortega,

Thank you for writing.

I have not seen anything wrong or missing in your code. Still, your scenario may contain something specific that causes the issue. We'd very much like to investigate it.

Please send me a small project that demonstrates the described behavior. You can do so using our support system - open a new support ticket, and attach the project.

I am looking forward to your response.

Regards,
Martin Vasilev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Rehan
Top achievements
Rank 1
answered on 17 Jun 2008, 09:15 AM
i m also having the Same Problem that after losing the focus value in combobox disappear. could you plz help out me ?
0
Martin Vasilev
Telerik team
answered on 19 Jun 2008, 02:21 PM
Hello Rehan ,

Thank you for writing.

The behavior you described is a known issue in the Q1 2008 release. It has already been addressed in the last release - Q1 2008 Service Pack 1. Service Pack 1 contains a number of improvements and fixes and I highly recommend using it.

If you have other questions, do not hesitate to contact me again.

Sincerely yours,
Martin Vasilev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Rehan
Top achievements
Rank 1
answered on 20 Jun 2008, 05:00 AM
dear i m already using Q1 SP1 .. bt facing the same problem .. if u could say i can attach you a sample code ?
0
Martin Vasilev
Telerik team
answered on 20 Jun 2008, 04:25 PM
Hello Rehan ,

Thank you for getting back to me.

The reason for the described behavior could be pointing to a non-existent column in the FieldName property. Please, check carefully the databinding and the value of the FieldName property of your LookupColumn. It should refer to a column in the main DataTable, which is bound to the RadGridView.

If you need additional assistance, do not hesitate to contact me again.

Sincerely yours,
Martin Vasilev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Hareesh
Top achievements
Rank 1
answered on 15 Jul 2011, 11:19 AM
Hi,
We are also facing the same issue. We are using Q1 2001 SP1. We have a RadgridView with GridViewComboBoxColumn. When we select an item in the comboBox and moves the focus to other column, ComboBox becomes blank! Pls help..

Regards,
Hareesh
0
Martin Vasilev
Telerik team
answered on 20 Jul 2011, 05:05 PM
Hello Hareesh,

Thank you for contacting us.

Are you using Q1 2011 SP1 version? The issue in question is not present in the latest versions of RadControls if your combo-box column is set up correctly.

If you still experience any issues, I would like to kindly ask you to open an new support ticket and send us a small sample project, which demonstrates your scenario. This will allow to investigate your particular case and provide you with accurate assistance.

Regards,
Martin Vasilev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Alfred Ortega
Top achievements
Rank 2
Answers by
Martin Vasilev
Telerik team
Rehan
Top achievements
Rank 1
Hareesh
Top achievements
Rank 1
Share this question
or