How to display Kendo grid dropdown column always in edit mode? - kendo-grid

I am using kendo grid which has column Action as Dropdown. Its working fine.
But the behavior is when grid load the dropdown column value display as text and when I click on that text then dropdown get display with populated values.
Is it possible to display column value always in Dropdown instead of Text?
Thanks!

Telerik has a sample on how to do it for a checkbox: http://docs.telerik.com/kendo-ui/web/grid/how-to/Templates/grid-with-checkbox-column
I Guess you could do the same for a drop-down:
Create a template for the column with a drop-down.
Add a javascript which updates the underlying model when the user change the selected item in the drop-down.

Related

Dropdown form overlaps in boostrap 3

I'm trying to implement a dropdown with an input but whenever I try to click the dropdown, it overlaps to the other row of the table since the inputs are inside the table. Please see my screenshot below.
Screenshot:
Note: This is pure bootstrap 3, and didn't add any customization yet.

Dropdown items getting populated when I am repeating the form array in angular 5

I am working on form array in which drop-down items have to load based on previous drop-down values but when I am adding a new same form dropdown values getting loaded based on the last dropdown values. Is there someone help me with this.
Using patch value and form control we can achieve this.

Selecting a specific dropdown value based on how you navigated to a page

I've had a look around but not finding what I'm looking for, or I'm not searching for the right thing.
Language: ASP.NET
Basic idea of my problem:
2 pages - 1st page has 4 buttons, 2nd page has a dropdown box with 4 options.
If I press button 1 I want option 1 in the dropdown to be selected when I navigate, if I was button 2 then I want option 2 in the dropdown to be selected.
I still want to be able to change the value in the dropdown after navigation BUT the initial value should depend on which button I pressed.
Any help or guidance would be appreciated.
You can transmit index of button via ViewBag. And in the 2nd page you set the property "selected" for the item which have the same index with value received from ViewBag.

Clear selection for Kendo Grid in Angular 2

I've got an application that allows a user to select a row in a Kendo Angular 2 grid and click a button that removes that row. After the row is removed, however, the grid selection persists on the index of the row that was just removed. I'd like to clear the grid's selection after the button is clicked and the row is removed. For the life of me, I cannot find a way to do this. Any ideas?
The Kendo Grid control has a property of "selectedKeys" which binds to an array of numbers. You can then clear this array when you want to clear the selection of the grid.
<kendo-grid
[selectedKeys]="mySelection"></kendo-grid>
In your code:
this.mySelection = [];

Devextreme dx-datagrid angular2, cascading dropdowns with unique values

Hei,
I am trying to build Cascading dropdowns using DevExtreme controls inside the DevExtreme data grid. The problems I am facing are
There are non-unique values shown in the dropdown list. Can you help me to show only unique values in the dropdown list inside the ordreIDNummer column?
The 2 dropdowns are cascading, which means that based on the dropdown in jobbnavn field, the dropdown in the ordreIDnummer has to be displayed. I am not sure how to achieve these.
Below is the code for the grid I am using and pictures of the data that is being displayed at my end currently.
{{cellData.value}}
{{cellData.value | lowercase}}
alignment="right">