I work with SharePoint 2013. I have a list which contains "cars" and each listitem corresponds to a car.
In this list, when I click on an item to show its fields it opens in the dispForm.aspx.
In the dispForm, I have an "History" button to open a second pop-up/frame to show the modifications that were made on it.
The problem : when i open the dispForm, I click the "History" button to show the next pop-up , I can close the parent form and the children pop-up stay and can not be closed...
I know that these two popup are SharePoint-native and I wonder how can I tell the parent pop-up to greyed when the child one is opened OR at least close the child when the parent is closed?
Related
I have a grid which displays data from the SharePoint list.
On clicking of Edit icon, it should display a popup, where it allows users to edit Expiration date and notes field as per below screenshots.
Once user clicks on save, it should save the data back to SharePoint list and grid.
May I know how it can be achieved in SP2013 visual web part?
Is it possible to access the current new item Id, (pre-creation) from a custom ribbon button action?
For example, I have created a new button within the Appointment Tab, so when someone creates a new appointment or meeting, my button is there on the right hand side of the ribbon. I have that wired up to a Click event. What I want to do here, is somehow access some sort of identifier to the currently being composed appointment/meeting, when that button is clicked.
So I'm wondering;
- does outlook create some sort of ID for the message, even before clicking 'Send' or 'Save' ? And if so is this obtainable?
EDIT:
Just thought I'd add, an alternative/workaround for me would be if I could somehow bind or add data to the appointment, which I could then retrieve through some sort of listener when the appointment gets created (which I would then have the ID for). I'm hoping this will definitely be possible given the other ribbon buttons perform actions on the appointment when it's created?
RibbonControl is passed as an argument to your event handler. RibbonControl.Context will be the Inspector object (or Explorer if your button is on the Explorer ribbon). Use the Inspector.CurrentItem property to retrieve the item.
I found a control that displays a CheckedListBox for the dropdown of a combobox. I like this but I want to improve upon it. I want to perfectly replicate the behavior of the standard combobox like so:
When the user clicks the combobox the dropdown (CheckedListBox) opens.
When the user clicks inside the dropdown they have no problem checking multiple options.
When the user clicks the ComboBox again the DropDown hides.
When the user clicks off the combobox (ANYWHERE, be it on a control or just the form), the DropDown gets hidden.
I found on P/Invoke.net the PostMessage function in the User32.DLL library that allows you to send a message to the ComboBox using the CB_SHOWDROPDOWN (0x014F) message to force it to immediately close the native DropDown.
The problem in doing so is that it will automatically force call the OnDropDownClosed function of the base ComboBox control. This I would not care about but it stops the natural feeling of the control (for me at least) in that if you do some trickery with it to keep your custom dropdown open, it still stays open when you click off the control (because the ComboBox thinks it's dropdown is closed already).
That is the behavior I want to avoid. I want the ComboBox to think that it's DropDown is still open when it's not (until the user either clicks the combobox to close it or clicks off the control).
Also, the problem I was experiencing before just letting it open the native combobox dropdown was that when I went to click on the custom dropdown, the ComboBox fires the OnDropDownClosed function and (seeing as how I override that method to hide the custom dropdown), my dropdown is hidden.
So...
How do I override the OnDropDown method to open up a custom custom dropdown that, when clicked, will not fire the OnDropDownClosed method, I guess, is the short way of asking the question.
How to add 2nd childform to mdi parent form "PANEL Control"...??
I am adding child forms to Panel Control of mdi parent form....
i have two child forms, childForm1, childForm2....
when i click a button on mdi parent form, childForm1 is added to mdiParent "PANEL Control"...
Know i want to add childForm2 to mdiform "Panel Control", when i click a button on childForm1...
Means i want to add childForm2 from childForm1 button click event, to mdiParent forms "Panel Control"...???
Can anyone Help me....???
Thanks in advance.....
Use tablelayoutpanel with two columns, in first column show the child1 clicking on second button show next child(2) in next column and hide first column(Column width=0)
I have list box that contains UserControl as item template
the user control contains few text blocks in a grid,
the thing is that I want to add context menu to my user control that will show on the list item right click but currently only right clicking the textbox inside the user control triggers the context menu appearance
clicking the spaces between those textboxes triggers nothing,
any idea about how can I trigger the context menu from the container list box?
Thanks
Eran
From the sounds of it you have set the context menu at the textbox level of the usercontrol.
If you want the context menu to function for the entire user control you would need to set teh contextmenu of the user control at the item template level.