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

ComboBox select by default undefault in custom grid.

1 Answer 12 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Bhautik
Top achievements
Rank 1
Bhautik asked on 29 Mar 2019, 01:27 PM

Hi,

Run below example.

Example : https://dojo.telerik.com/oJoCOCiR/64

(1) Go to Category Column.

(2) Click on Cell and Open Combobox and select 'Block' option.

(3) Now again navigate to same cell and click on 'UnBlock' option.

(4)Now again navigate to same cell  and click but do not select any option and switch to another cell.

It will select by default value 'Undefine'.

 

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 01 Apr 2019, 01:13 PM
Hello Bhautik,

Thank you for the provided example. Please take a look at the modified version of it. Again, the example is using a local DataSource. The changes I made are in the change event of the Combobox. You can see that, if the current value is "Blocked", I am changing the data of the DataSource. It will then contain only "Unblock" as an option. If I press it, the data will change again. I have also set the value to be equal to the default value (which is "Rate1 - $1").

I hope I was helpful, please contact us in case you have further questions.

Regards,
Martin
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.
Tags
ComboBox
Asked by
Bhautik
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or