We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Strange Problem in Drop down cell

Hi Clay, The problem I''m facing is very strange. I''ve a CurrentCellChanged event to populate the Slave combo boxes when I select a value in the Master combo. But it is working perfectly when I''ve a Break point or Messege box in my CurrentcellChanged event. As soon as I remove the Break point/Messege Box it is allwing me to select the value for the first time and then it is not allowing me to change the value in the Master combo box. FYI.. I''m using GDBG Grid. I really cudn''t understand what the problem is. Thankx in Advance, Thiagu.

6 Replies

AD Administrator Syncfusion Team September 23, 2004 09:24 AM UTC

Hi Thiyagu, Does calling Model.ResetVolatileData() help? This would make sure that your QueryCellInfo handler would get hit again. Check out also the SimpleDependentCombo_1806.zip sample in that thread: http://www.syncfusion.com/support/forums/message.aspx?MessageID=19153 If you keep having problems, try to modify that example and send it back. Thanks, Stefan


TH Thiyagu September 23, 2004 10:02 AM UTC

But my problem is that I was able to select the Value for the first time in the Master combo and do populate the values in the Second combo. But when I try to change the Selected value in MasterCombo, it is not allowing me to do so. It is turning in to readonly mode. The same time other cells in the selected row are in Edit mode. I want the cell to remain in the Edit mode until the User clicks on Save. I''m really got stuck with this problem steve. Will be a huge help if you can figure out the solution. Thiyagu. >Hi Thiyagu, > >Does calling Model.ResetVolatileData() help? > >This would make sure that your QueryCellInfo handler would get hit again. > >Check out also the SimpleDependentCombo_1806.zip sample in that thread: http://www.syncfusion.com/support/forums/message.aspx?MessageID=19153 > >If you keep having problems, try to modify that example and send it back. > >Thanks, >Stefan


AD Administrator Syncfusion Team September 23, 2004 02:31 PM UTC

Ok, this sounds as if switching the state between the shared combobox cell causes confusion within that cell. Somehow things seem to get mixed up in the order of events. Does it help if you register a second combobox cell type with Grid.Model.CellModels, e.g. a "ComboBox2" cell type of type GridCellComboBoxCellModel? Then you assign "ComboBox" to the first column and "ComboBox2" to the second column. That way the different columns can''t step on each other since no internal state needs to be switched any more. Stefan


TH Thiyagu September 24, 2004 04:22 AM UTC

Thanks Stefan. Will try out this... Thiyagu >Ok, this sounds as if switching the state between the shared combobox cell causes confusion within that cell. Somehow things seem to get mixed up in the order of events. > >Does it help if you register a second combobox cell type with Grid.Model.CellModels, e.g. a "ComboBox2" cell type of type GridCellComboBoxCellModel? > >Then you assign "ComboBox" to the first column and "ComboBox2" to the second column. > >That way the different columns can''t step on each other since no internal state needs to be switched any more. > >Stefan >


TH Thiyagu September 24, 2004 12:20 PM UTC

Thanks Stefan, that works perfect. I need one more help from you. How do I disable a Column so that the cursor will enter in to the Cell of that Column when the User press ''TAB'' or ''Enter''??.. I''ve tried with Readonly = false; Enabled = false; and also AllowEnter = false. But all these properties allow the User to Tab in to the Cell, which I dont want. Is there any way to achieve this??.. Thiyagu.


AD Administrator Syncfusion Team September 24, 2004 03:07 PM UTC

When you set style.Enabled = false for a cell that cell cannot become the current cell. Another option is to handle the CurrentCellMoving event. In your handler for this event you can change e.RowIndex and e.ColIndex and by that instruct the grid to move to a different cell. Stefan

Loader.
Live Chat Icon For mobile
Up arrow icon