How to populate 2 combobox in DevExpress grid? - c#-4.0

I am developing a website in which I am using DevExpress controls. I need to add a row using AddNewRow event of the grid. Everything is working fine i.e the data is being saved in the database. But now I need to have 2 comboboxes in the grid itself. One should be populated automatically when we need to add a new row and the second should be populated on the selectedIndexChanged of the first combobox.
The second combobox shold be populated using the selected value of first combobox.
How can i populate the second combobox.
Thanks in Advance

Take a look at the Cascading Combo Boxes demo. I believe that demonstrates exactly what you needed.
Related example:
How to implement cascaded combo box columns in ASPxGridView without using templates.

Related

Populate Textboxes by Clicking a Table in MVC

Populate Textboxes by Clicking a Table in MVC. The Javascript code which I am using doesn't change the text boxes values when I select another row on the table.
Does anyone have an idea please help?
I have the Answer to My own question, so any one who needs it. just say the word and I'll type the problem is am using a phone right now

ms excel - data validation for 2 drop down list

I'm looking for the solution in excel data validation for 2 drop down list.
When I choose 1st drop down list 2nd drop down list will auto populate the correct value from table. If user choose 2nd drop down list 1st drop down list will auto populate the value also.
Can someone help me on this issue ?
I attach the sample file for my problem.
enter image description here
enter image description here
thanks!
Sample File
Trying to do a two way I don't think is going to work in the way you are trying so I am not surprised the examples you found were for one-way. I am open to being corrected.
You could hack around it for example using two form control listboxes linked to the same cell so a selection in one updates the other.
Then because an item might be out of view listbox underneath have two cells which use the linked cell to index back into the source lists.
In the example above, there are two list boxes from form controls in developer tab (customize ribbon > add developer tab.
Developer tab form control - 2nd from the right
You add two of these in to the sheet.
Right click format control on each one
Set the input range to the range containing your list of values for that listbox and set the linked cell e.g. G1
Ensure that whilst you select different input ranges for each list box, they should have the same linked cell e.g. G1.
Underneath the listboxes put a formula which uses the linked cell G1 to index back into the source lists for each listbox so you can retrieve the selected value and have it visible, in case not visible within listbox.
Example testing:

Kendo UI For Angular2 - Grid Row Select

I have a working <kendo-grid> component with 10 visible rows over a data set of 34 rows (approx 4 pages). Sorting and selecting is working as expected.
<kendo-grid [data]="gridView"
[pageSize]="pageSize"
[skip]="skip"
[pageable]="true"
[height]="300"
(pageChange)="pageChange($event)"
[sortable]="{ mode: 'single' }"
[sort]="sort"
[selectable]="true"
(sortChange)="sortChange($event)"
(selectionChange)="selectionChange($event)">
Say I select second row. Then I sort the table and the selection stays on row two but of course it's highlighting a different record. It's always selecting the second row on the grid, which of course, it's what I want.
How do I clear the selected row in my (sortChange) event so at least the user isn't presented with a different selection that they one they already chose. I am open to some kind of data binding attribute for selected row that I could set to null or some property on gridView or even poking around inside #ViewChild .
Any help would be appreciated.
Normal Sort
Ascending Sort
Descending Sort
I had a similar question here: Select grid row item from code
Basically, you also need to select the grid row item from code without user interaction and this is currently not supported in the current beta build of the Kendo UI Angular2 controls.
In my application, I resort to triggering a click event on the row I want to select. :/
I do this in a case where I have 'up' and 'down' buttons to rearrange the grid and want to maintain my selection when I switch items.
var grid = document.getElementById('myGrid');
var rows = grid.getElementsByTagName('tr');
rows[idx].click(); // add one to the desired row index to skip the header row
Here's a (sloppy, minimal) Plunkr of this scenario: http://plnkr.co/edit/09dlqdl0Xchoy0e5zKRq

How to enable editing combo in Grid grouping control's cell who has child table

I am developing an windows application using syncfusion's grid grouping control(ggc). In ggc i have two columns. In that one column is of combobox type. When I expand this combo one grid is shown. Currently in that combo i can write only one character but i want to write multiple characters as we write in normal combo box.
Anybody knows how to do that?
The DropDownStyle of ComboBox can be set to Editable in order to enter contents in cell.
Here is the code that will achieve the behavior:
this.gridGroupingControl1.TableDescriptor.Columns[1].Appearance.AnyRecordFieldCell.CellType = "CheckBox";
GridTableCellStyleInfo style = this.gridGroupingControl1.TableDescriptor.Columns["Col2"].Appearance.AnyRecordFieldCell;
style.CellType = "GridListControl";
style.DropDownStyle = GridDropDownStyle.Editable ;
I hope this will resolve the issue.

How to select the first item of a combo box in an Access Web-compatible form?

I've created an Access Web database on SharePoint 2010 and I'm editing its forms with Access 2010.
One form includes a set of cascading combo boxes that I've created following these tutorials
Combo Box in Access and Cascading Combo Boxes. The actual data binding is working as expected.
The issue is that when the cascaded combo boxes receive their bound values, the selected item is left blank and I'd like it to pick the first element by default i.e. combo.items(0)
I understand that I'll have to add some sort of macro to select the first element. However, I haven't found a way to do so.
Currently the primary combo boxes invoke through an after update event a requery action on the cascaded combos.
Is there another action that could force as well the selection of the first bound item?
Take a look at http://www.access-programmers.co.uk/forums/showthread.php?t=38754
You can do this trick OnLoad. So your VBA code behind the form will look something like:
Private Sub Form_Load()
Me.cboTestCombo = Me.cboTestCombo.Column(0, 0)
End Sub
You may need to play around with the indices on Column(N, N) - the example above worked for me to place the first entry from my data rowsource in the combo at start.

Resources