displayfield and textfield change - extjs4.1

I have created a window which has a grid and a form that displays values in plain displayfields of the records in the grid when clicked on.
There is an "New" button for the form and once clicked by the user, the displayfields should switch to textfields which should allow you to enter a new record into a database.
Can anybody point me towards a certain direction in order to do this? I am a complete newbie to ExtJS and only just started learning ExtJS4.
Thank you in advance.

I would suggest looking into the row editing plugin.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.plugin.RowEditing
You will need to add that to the plugins config item on the grid, then add editor configs to each of the columns that you want to edit. The editor config is generally just a xtype and config options for one of the components found in Ext.form.field.*.

Related

Show only edit form in Laravel-admin

I'm working on a Laravel-admin project with Laravel9 and I have an edit form that fetches a single piece of data from the DB and updates it.
Therefore, I don't want to have a grid panel or create form.
Is there any way to remove the grid panel and create form and show only the edit form when people visit the page?
I'm a newbie and I don't know much about it.
Any advise would be appreciated.
1.Changed the path to this but showed grid panel:
http://localhots/admin/management/1/edit
2.Tried to put $form in $grid, grid panel didn't show up but a create form with create button was displayed.

How to Resize/Change position of custom created user control in VB.Net?

Currently I need a solution in my coding.
I already create custom user control with add, edit, delete function using 3 buttons.
The problem is, when I add my user control to windows form, I cannot change the position, or resizing the button. I only can do moving for all buttons in my control.
Please help me related to this .
Thank you indeed.

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.

Extjs 4 grid customization after clicking on a row add a panel with a textfield

I am new to extjs 4 and I have got a problem to customize the grid panel. My application have JSON data to render in a grid. After populate the data when user click on a particular row he need to get an panel (Just like row editing plugin) of a textfield and a button to send the entered text to server through the controller. This data that user entered is not the data of grid column.
I need to know is it possible? And if it is, then how can I make it.
Thanks in advance.
Sure it is possible. First look at the following example from the Extjs 4.1 docs
All you need is to add your listener to itemclick grid event. Within this listener function you can create panel you need.

How to edit Expression Blend selected control part?

I am trying to edit a specific control part within a custom TabItem Template. In this case, it's the TemplateBottomSelected control part.
I'm having an issue where I cannot seem to view or edit any control parts within the template editor except the default TemplateTopSelected. Here's a screenshot of what I'm talking about:
Even though I'm selecting the "TemplateBottomSelected" grid, the only thing I can see is the template for the TemplateTopSelected item.
How the heck do I edit the other control parts within the template using the editor?
Thanks!
that's because these templates are either collapsed or the opacity of them is set to 0. :)
you can use the eye toggle button to only show the one you want to modify at design time, set the visibility to visible, do your changes, and reset it to collapsed.
please let me know if you need more info.