In wpf what is difference between Text and SelectedValue properties of a combobox - wpf-controls

I am new to WPF. I have a problem with ComboBox that is placed within a cell of a grid. I am using xceed grid control. Within the xcd:CellEditor tag, I have this ComboBox control. The combobox is populated with values properly with required value in it selected but when I click on the combobox, the selected value is cleared (showing empty selection) and I had to click on the dropdown arrow to display the list and select that value again.
This problem is occuring to me when I am using the Text property of the ComboBox but when I replace the Text to SelectedValue then I don't see this problem. Can anyone throw some light on this.
Following is what I have changed.
From Text="{xcdg:CellEditorBinding}" to SelectedValue="{xcdg:CellEditorBinding}"

Related

Excel VBA Data Validation Dropdown, current highlighted item

Short question:
Is there any way to tell which item is highlighted in a Data Validation cell drop down?
Details:
I'm trying to make a tooltip (using a form that follows the mouse when that cell is moused over; will have to change this to cover the dropdown area as well) that gives more information based on the current selection.
I want to do this for the current highlighted item in the list, so that the user can get more info without having to select the item then start over if it's not the one they want.
I also am trying to avoid using the Form Controls & ActiveX Controls. That's more by request from the person in charge than my decision.

Tabulator checkbox multiple selection

In tabulator I used a checkbox for select all and deselect all ,
for checkbox checked and unchecked i used a following code,
For checked
$('input[name = custmisedtab]').prop('checked', true);
For Unchecked
$('input[name = custmisedtab]').prop('checked', false);
when I was checked it will checked a only that records that are shown in screen not all which is shown after scrollbar.
With Tabulator, you should not be modifying the DOM directly - instead, update the data object of the table. You should have a column with a custom formatter to display a checkbox, checked based on the columns value. To update their state, call table.updateData() or table.updateRow() for all the rows.
Your current code doesn't update the checkboxes beyond the scrollbar because of Tabulator's virtualization. When you try to set the checkbox states, the rows beyond the scrollbar aren't actually part of the DOM yet, and thus aren't available to jQuery to update.

Combobox not displaying the data items

I have been trying to add Data items for my combobox in the DialogWindow of my mfc project, at design time by setting strings delimited by semi-colons for the Data property of this combobox.
But it just shows empty combobox at runtime. I tried using AddString() method of this combobox manually in the OnInitDialog() event of the DialogBox too. But that was also not working.
Tried creating a demo project again and when I added the combobox and put the value a;b in the Data property of it, it is showing up. But tried the same on my project and it is still showing the empty list in the new combobox! Tried to compare both project's code, like the header files and initialization's etc. Found that both are same. Other than some event declaration for the buttons and my custom c++ code in my project, the rest of the code is same as that of the newly created demo project!
Why in my project this combobox is showing an empty list of items? :(
EDIT:
Just noticed that the items are already in the list. But the dropdown is of small height and thus preventing the actual items from showing up! :(
Tried to look increasing the size of the combobox, but I couldn't find any property in the Property Window and dragging the corners of th combobox doesn't increases the height either! :(
Increase the size of the dropdown list like this, in the design window:
Click on the arrow on the right side of the combobox (highlighted in yellow on first pic). Then click and drag the bottom mid resize marker to increase the height (highlighted in the second pic).
This will increase the size of the dropdown list.
Otherwise when we try to click on the resize markers to increase the height, it would be disabled. So make sure you click on the arrow on the right side of the combobox first.

get selected row value from Dynamic CRM main grid

Hi i want to fecth (column) values of selected row from the main grid, on click of ribbon button .After getting value i want to copy that values but however in first place i m not able to get the value on button click.
To do this, you'll want to modify the Ribbon XML.
Look at http://msdn.microsoft.com/en-us/library/gg309639.aspx and http://www.develop1.net/public/page/Ribbon-Workbench-for-Dynamics-CRM-2011.aspx

Bring a programmatically selected Item to the visible area in a JSF selectOneListbox

I want to programmatically select an item in JSF selectOneListbox. As there are large number of items and the height is restricted, most of the items are hidden. If I move the slider up and down, I can see the selection, but not other vice. Is there any way to bring the selection to the visible area, like in a Top in VB Listbox?
I used h:selectOneMenu so that selected one is always visible.

Resources