Is it possible to hide the checkbox column when enabling multiSelect? - angular-ui-grid

Is it possible to hide the checkbox column on the left when enabling multiSelect? I would just like to enable the multiSelect via Ctrl, I don't need the checkboxes.
Thanks!

Yes, Set the enableRowHeaderSelection: false in your grid options.
This will hide the check boxes for you.

Related

Hints for each choice in dropdown menu

I would like to add a hint to each choice in dropdown menu. Is that possible?
Like in radio buttons, there are three fields: Label, Value, Hint. In dropdown menu there are only Label and Value.
You didn't overlook anything: this isn't possible out-of-the-box. If you need to provide hints for individual items, then I'd recommend you use checkboxes or radio buttons, as appropriate.

Enable/Disable sortable on specify column in kendo ui grid

I have a kendo ui grid on my page.
And I have a button too. I want when I click button, sortable property on a specify column disable, and when click the button again, sortable property enable.
How to I do this?
Thanks.
Runtime enabling/disabling the sorting feature of the Grid is not supported.
But you can find some approaches to achieve it here: http://www.telerik.com/forums/disable-or-remove-sortable-capability-on-column-with-rebuilding-entire-grid
Hope this link will help you.
There is no method for this - this is option which is set only upon initialziation. So you will need to re-initialize the whole Grid. Covered here.
The column.sortable option should be set to true/false depending on the button that was clicked.
You need to write an click event for a table header on javascript.This event will prevent click on table header.
$(".k-grid-header .k-link").click(function (e) {
e.preventDefault();
if ($(this).text() === Header Name) {
e.stopPropagation();
}
});
e.PreventDefault helps to avoid window jump to top when clicking #-links.
Give your headername into the if condition to which you want to disable sorting

Combo box not focusable

Is there any way we can set the combo box not focusable? Because every time I select an item from combo box (drop down list), the keyboard shows up and the text from drop down list can be edited. I can't find any property from property inspector to disable this up. Or maybe we can disable this one programmatically in which I don't know.
Consider using an Option Menu (unlike a Combo Box an Option Menu has no field which a user can type into - and therefore no unwanted appearance of the keyboard)
Dave
The default script for a combo box is a menuPick handler. Whether or not you use the functionality of that handler or not, you would add this line at the end of that handler:

How to make checkboxes grey in a cxGrid column

In cxGrid I have a column with property Options.Editing:=False; Properties:=CheckBox. So, user can not change state of the checkboxes. But the checkboxes still have custom color and user does't see that he can not edit them.
How do I make checkboxes grey in a cxGrid column, which one can not edit?
You can use OnCustomDrawCell event to draw a disabled checkbox.
Check out: http://www.devexpress.com/Support/Center/p/Q253981.aspx
You could make an OnCustomDrawCell event on the grid view, with something like:
if not AViewInfo.Item.Options.Editing then
ACanvas.Brush.Color := clGray;
Columns that are not editable will not become grey. This goes for all kinds of editors, be they checkboxes, textedits or whatever. The checkbox has a property for NullStyle that can be set to nssGrayedChecked, but this will only be displayed for NULL values.
You have some other options, though. The simplest may be to set the column to not focusable, as well as not editable (Options.Focusing = false). This will perhaps make it easier for your users to understand why they can't change the value. THe second easiest option is to use a custom style that in some way indicates a disabled/noneditable column, for instance by having a grey background color.
Use cxStyleRepository
<TcxGridDbColumn>.styles.Content

How to create Combobox with multiselect capability?

How to create a Combobox having Multiselect Capability using Jquery?
Does JQuery Combobox has this functionality or Property?
if it helps, take a look http://ivaynberg.github.io/select2/ for multi select values
Edited : I found one more link it's really great http://tameraydin.github.io/jquery-easyselect/
Combobox displays the selected value when its list of options is collapsed. You may want to use multiple selection list.
to use multiple select in combobox you will have to create your own user control using checked listbox, textbox and a button.
and on click of button just make checked list box visible and let the user select items from that checkedListBox and as user select items on it you take those values and concatenate it in textbox with comma seperated. and then again on click on button hide that list box.
as it is on : http://9perhour.co.uk/
which is asking for select technology
some good samples
for jquery:
http://abeautifulsite.net/blog/2008/04/jquery-multiselect/
http://quasipartikel.at/multiselect/
http://www.codeproject.com/KB/ajax/jqueryajax.aspx
for asp.net:
http://www.codeproject.com/KB/user-controls/MultipleSelectionDropDown.aspx
http://www.codeproject.com/KB/webforms/DataGridDropDownList.aspx
http://www.codeproject.com/KB/asp/multiselectdropdown.aspx

Resources