Is it possible to localize datatable cell editor control buttons in YUI2? - alfresco-share

I'm wondering if it is possible to localize the labels on the textbox cell editor of the YUI2 datatable:
In the image above, I'd like to be able to change the label on the save and cancel buttons. Thanks

See LABEL_CANCEL and LABEL_SAVE in BaseCellEditor

Related

ASP.NET typing text vs using label

What's the difference between typing some text on a page vs inserting a label and typing some text into that label ?
Any reason why somebody would want to use a label vs just type text on the page ?
The only advantage that I can think of is that a label can be updated easily ( e.g user clicks a button , in the event code for the click action one can write something like label1.Text = "some value" )
Thanks
Labels can be associated with controls using the AssociatedControlID property, allowing the user to click the label to focus the control.
If a label is associated with a checkbox, clicking the label will toggle the checkbox.
You've nailed it. Putting text inside a label control allows you easy programmatic control over that portion of the page, while putting it directly in the HTML requires you to then jump through extra hoops if you want to modify it later.
In addition, you can also programmatically show/hide a label, add css styles, and associate it with an input control (AssociatedControlId property).
You can't easily apply CSS styling to random text on the page.
Edit - Sorry I meant in server side code.
The difference is that typing into a Label causes it to render the HTML from the server side while typing text into the HTML does not.
This is very useful if you want to change the text dynamically or if you need to deal with changing the text for internationalization.
ASP.NET labels should be used to much like HTML labels: to indicate which control this text is related to. ASP.NET also has the LiteralControl, which is just text, and is better suited to your needs.
Typing text directly onto your page is often uncontrollable - It is difficult to control where it will appear, and in what manner. Labels have very predictable features that can be adjusted easily to work with formatting. Furthermore, as your page gets more complicated, having text in labels that is identifiable with IDs makes things significantly easier.

Changing The Button Text Of A Simple Button 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.

Infopath option button control - modify button count

I have an InfoPath Option Button control on a template and need to add an additional option button to the control. Any ideas would help.
Do you mean programmatically or you just don't know how to add a button to an existing group (since the default is to create a new group)?
If you just want to add another button to an existing group the easiest way is to copy one of the existing buttons and paste it. Then double click (or right click and select) to go to the properties screen and change the "value when selected".

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!

How to remove a textbox and put the dropdown box in asp.net

How to remove a textbox and put the dropdown box in asp.net
And the value that is used before in textbox, now it should take from dropdown box
You can use select tag for this. And can get the selected value in C# using the following code
Suppose cmb is the id of your dropdown box, then
cmb.Items[ cmb.SelectedIndex ].Value
can fetch the value selected in your drop down box and
cmb.Items[ cmb.SelectedIndex ].Text
can fetch the text selected
easiest way is to use jquery and jquery.jeditable plugin with it.

Resources