jqgrid radio button - radio-button

I was trying to define a jqgrid column as a radio button group, but I could not.
Anybody knows what I have to do? Please give me an example.

You can do this if you define custom formatter and custom unformatter. If you will need to edit the cells/rows with radio buttons you will have to implement also custom editing. You can do implemant all this, but I would not recommend to do this. I recommend you to conside to use select formatter instead and use it together with stype:'select'. Radio button group shows mostly the same information, but in more compact form. If you do need to use radio button then I would you recommend you to use there only during cell/row editing.

Related

VB.Net: Winforms Designer: Use verbs from custom control in parent custom control

We're developing a custom control (to make our lives easier), which included a customs (external) grid control and some default buttons and text. The grid control has the option to add columns by clicking the small arrow on the top right of the grid in designer, like shown in the picture.
We want to keep this option when putting our new custom control on a (win)form. Is there any way we can achieve this?
I've already looked into the 'verbs' and I can add my own custom verbs to the new control, but I'm not sure the arrow is a verb (as it does not show the option on the bottom of the properties). I also haven't been able to find how to use the verbs from the grid control.
Thank you very much!
I've found the solution to my problem.
I thought the way to add columns was a custom control when in reality, it was a default CollectionEditor. This, in combination with Smart Tag, solved my problem.

Show Button only in edit mode odoo

I have added a button to existing form of purchase order in Purchase order Line Tree. But i want to show that button only in edit mode. I tried:
<button name="adjust_received_qty" string="⇒ Adjust" type="object" class="oe_edit_only"/>
i tried to put class = oe_read_only, but it does not work in odoo 8.
Thanks,
UPDATE
My requirement is : i want to show the button when user clicks edit button. if i use the suggested approach, i will able to hide button in create view.but it will be visible in form view even in view mode. I want to show the button only in edit view ( when user clicks the edit button )
Please Help,
try class=oe_edit_only
it's working fine for me
Standard Odoo work must be using python+xml in general, and it's not recommended to use javascript long codes with it because it may cause performance problems.
I've not done this but I think you can achieve this using javascript and add on click event listener on edit button and use show()-hide() function on the fields/button which you want to hide/show so it may help you to solve this issue.
Maybe digging in deep odoo codes may give you another solutions who knows :D

Add global button in CRM

Is there a way to add a new button to ALL PAGES in CRM?
I have tried different ways but in some views, the new button is shown at the end. Im trying to found a way to create a button and place it as first button, to any view, entity and page in CRM. Is this accomplisable?
I'm afraid that out-of-the-box buttons will often take precedence over custom buttons, and the only way to change that would be to hide the out-of-the-box buttons.
I'm assuming you are adding the button via the Application Ribbon, correct? (not every single form and grid)
You can add items to the "Jewel", (the dropdown from "File" in the top left). It's not exactly the same as putting it in the ribbon because you have to make an extra click, but it should show up globally.

How do I add a custom actions dropdown for my custom VBA Script

I am trying to add a custom actions button for my custom VBA Script similar to how we have options underneath almost every button press in Outlook/Excel/Word etc. Is there a way I could achieve this? Please refer to the picture.
You want to create a custom menu item. I can't say I have tried this myself, but I think this is what you need: http://msdn.microsoft.com/en-us/library/office/gg508923(v=office.15).aspx

how to hide the dropdown icon of combobox

I have an application using ComboBox with ComboBox.DropDownStyle = DropDown, I want to hide the dropdown button of it, and dropdownitems will be displayed programmatically, when required.
How could I accomplish that?
Thanks in advance!
Renee147's was a good suggestion in that you seldom want to mix metaphors with UI elements.
But, if you REALLY needed to hide the dropdown arrow, I'd just stick a picture box on the form and size/move it to fit just over the arrow portion of the combo. Not technically sophisticated, but it'd work.
Try to use ComboBox.DropDownStyle = Simple