Changing The Button Text Of A Simple Button DevExpress - devexpress

I am adding a button to each row of a Grid Control. Under the buttons property of the button there is a property o called "Kind" this changes the image of the button. I want to not have an image but just text. Where do I set this?

If I understand your task properly, the How to change an in-place ButtonEdit button caption in different rows of XtraGrid example shows how your task can be implemented.

Related

How to set display text for ComboBox (checkable) in Qt

I follow these to create checkable combobox
ComboBox of CheckBoxes?
http://programmingexamples.net/wiki/Qt/ModelView/ComboBoxOfCheckBoxes
However when I do a this->Model->clear() then add items, the combobox text (the text combobox displays before user clicking anything) goes blank. The items will still show and are checkable when click on the combobox. I suspect the clear() remove the header and causes this, however I try setHorizontalHeaderLabels etc but I still can't set the combobox text. What am I missing?
Try setting the ComboBox's selected index after you add items. Like:
ui->combobox->setCurrentIndex(0);
Because it could be that after you clear the ComboBox, its display index may have gone to -1 and stayed there even if you add items.

How to bind display menuitem to a static text

I am trying to create a form, which can mimic the functionality of an area page, at least it should display links to other forms (if categorization cannot be done) how can i achieve it?
Can i bind a menu item to a static text?
Create Tab within form
change Style to FastTabs
change Width to Column width
change Height to Columnt height
Add TabPage to Tab
Drag MenuItem to Tab (or add MenuItemButton)
change Style to Link
XPO: AreaPageSimulation
I resolved this by using .net's link label, unfortunately did not see Matej's answer, but will give it a try when I will actually build this for client, here is what I created:

Edit ASP.NET GridView Cell on mouse over

in my Project there is Asp.net GridView ( that putted into a update panel).
i did open Gridview In Jquery Ui Dialog.
Is there any way exist to edit a specific column grid View cells in microwave on mouse over on that cell?
for example displaying a div on that position and doing an action.
please give me help.
thanks
You could use hover jQuery function:
$(selector).hover( handlerIn(eventObject), handlerOut(eventObject) )
it takes 2 parameters:
1). Function which called on mouse goes in element
2). Function which called on mouse goes out element
In the first parameter you could show div, and hide it in the second one.

How can I set the width of the Edit Button col in a GridView?

I have a gridview that sets the AutoGenerateEditButton="true"
How can I set the width of the resulting column?
I don't know if you can set the width when the Edit button is auto-generated.
But you can set it if you add the CommandField.
Steps:
Set AutoGenerateEditButton back to false
Expand the GridView Tasks window using the funny little arrow button in the top right of the GridView
Select 'Edit Columns'
Expand the 'Command Field' node in the Available Fields list.
Select 'Edit, Update, Cancel' and then click the Add button
Make sure 'Edit, Update, Cancel' is selected in the Selected Fields list
Expand the 'ItemStyle' node in the CommandField properties list
Shazaam, there is your width property down near the bottom.
The Command buttons (edit, cancel, update) will still behave as if you had auto-generated them, you just get more control over the layout.
I believe that you don't have direct control over the column containing the edit button - because of the "AutoGenerate" in the property you are setting, it is rendered automatically.
An alternative is to set AutoGenerateEditButton="False", and define a column containing the Edit command button yourself. Then in the markup, you can set the width of that column yourself.

How to change datagrid cell's itemRenderer dynamically

i have a simple datagrid having 2 columns named as image and place. where image column has mx.controls.Image itemRenderer and place is simple. my requirement is to change itemRenderer of image cell when it will be clicked. i means to say when user click on any image from image column than i want to show that image path in editable mode and when user edit that path then the selected cell will start displayed the updated image.
i dont know how to do this and getting depressed . please anyone help me ! :(
You don't need to change itemRenderer for that - just implement that code in your single item renderer. You can add listeners inside it and change the contents of the current cell.
I suggest when going into editable mode for your DataGrid: Also create an itemEditor for your Image column, make it an extended TextInput class. This extended TextInput class will change the data object's imageAddress/url when you are done editing ("itemEditEnd" event).
Let me know if this helps, thanks!

Resources