Is it possible to change the back button text in the NavigationPage after the constructor of the page ?
I have a list of buttons inside a page which are used to change the current language and want to update the back button’s title according to the selected language.
Thanks !
I think you're looking for something like this : https://forums.xamarin.com/discussion/comment/272076/#Comment_272076
Bind the Title's page property to a string and update the string depending on your selected language.
Related
I have an app built in Unity which uses the new canvas features including buttons and inputfields.
I'm wondering how I could implement automated testing by programmatically entering characters into the input fields and clicking buttons.
In the case of the button the UI.Button component doesnt seem to have a click method you can call.
Is there a way of registering mouse clicks at the buttons location? Or some other way of achieving this?
Ok, This is how you click a button programmatically
MyButton.onClick.Invoke();
and for the inputfields you can just set their text fields like so..
MyInput.text = "flooopybloopybloo";
i have a little problem. I'm using Oracle Applicarion Express and i'm trying to use some page items in a Link created for a button. I created the Button as region button, and selected in the region" Action when button clicked" "Redirect to URL". In this URL i want to use two pageitems. I tried already to use them mit ":PAGE_ITEM" or "&PAGE_ITEM." but non way works. Can someone help me please?
What does the resulting hyperlink look like? The chance is great that it looks like
f?p=<app_id>:10:<session id>::::P10_ITEM1,P10_ITEM2:,
This is because when using the substitution syntax like &PAGE_ITEM. will put the session state of the referenced item in the string. Since the button is rendered during the loading of the page it will use the session state of the item at that time.
When you then fill in a value for PAGE_ITEM, this will not change the session state of that item - and even if it did it would not matter since the button was already rendered.
If this is the case then you'd better have the button submit the page, and define an on submit before validations/computations branch to act on that button. In the branch you can then safely use the session state of the required items.
I am trying to make a UIButton for the user where he will be able to choose between 5 different options. I have in mind something like an one line UIButton where one option will be preselected and when the user presses the button the 5 options would be displayed for the user to choose. In the objects library the closest i can find to that is the picker view , but its too big for my screen and it displays all the options , as i only want one to be displayed in the beginning and when the user hits the button all the options so that he can pick a different one if he likes. Is there a UIButton like this on Xcode that i am missing or should i customize a picker view or something?
Thank you in advance for reading my post :D
You can customize picker view like following
http://code4app.net/ios/Customized-Picker-View/4f72e7446803faa901000002
But I suggest that you use custom view which contains custom table view
and that view is shown as like picker view,means all properties like size,animation,position etc
all are in your control
If you want to customize table view like that
then follow the link
http://code4app.net/ios/3D-Tableview/4fc0da756803fae46f000000
DevExpress AspXGrid has a cool editform template that you can use it several ui style as popup form or inline form betwwen grid rows etc..
When you unimplement Update Event of grid and if you allow grid to editing from settings, it shows the EditForm, but when you fire update button at this state, it shows a cool Error Message like "Specified method is not supported"..
I want to write some custom message in the same place of that message.
Anyone knows how can i do?
Thanks a lot.
Use the ASPxDataValidationEventArgs.RowError property to specify the error text displayed within the Error Row. This row is automatically displayed below the Edit Form if the RowError property is set to a not empty string.
Please, also take a look at the GridEditing/Validation demo module and ASPxGridView documentation.
I have added a custom button to the navigator in my jqgrid and i am wondering how can i ,when i click on the button, show a dialog with the same style as the edit dialog and ask for some especific fields that are not included in the colModel. Those field would be to be sent to the server when clicking on ok button.
Any ideas?
Thanks in advance.
Carlos.
You can display the "Edit" dialog using editGridRow method. In the second (properties) parameter of the method you can include your custom beforeShowForm event handler which can make any modifications in the dialog.
See last demo from the answer for an example. The demo has the line
$('<tr class="FormData" id="tr_AddInfo"><td class="CaptionTD ui-widget-content">'+
'<b>Additional Information:</b></td></tr>').insertAfter (nameColumnField);
inside of beforeShowForm.
If the information which you need to show in the dialog are from the hidden column of the grid you can use simplified way which you find here. The main idea in the solution is that jqGrid include in the form dialog all hidden fields, but the corresponding row is hidden. So it is enough just to show the hidden row.