Customize Context Menu for epiUltraGrid

Jose,


Do you know which dll to reference to access the Infragistics ContextMenu?



________________________________
From: Jose Gomez <jose@...>
To: vantage@yahoogroups.com
Sent: Thursday, May 31, 2012 2:41 PM
Subject: Re: [Vantage] Customize Context Menu for epiUltraGrid

Then its a LOT more hairy! You need to use the ContextMenu from
Infragistics I dno't have a readly available example.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez>Â <http://www.facebook.com/josegomez>
 <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
 <http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, May 31, 2012 at 2:39 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> What if the field I am wanting to use the context menu with is not
> 'native' to the form I have a datagrid on po suggestion that displays all
> attachments related the part as well as attachments related to the job, the
> datagrid is populated using dynamic query. Everytime a user clicks on a new
> suggestion the datagrid gets updated. I wanted to add a right click that
> would allow them to email the attachment by automatically generating the
> email and inserting the attachment using the filepath which is in the grid.
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: vantage@yahoogroups.com
> Sent: Thursday, May 31, 2012 2:12 PM
> Subject: Re: [Vantage] Customize Context Menu for epiUltraGrid
>
>
> Easiest way to do it, is to add the context menu to the bound field as
> shown below
>
> public void InitializeCustomCode()
> {
> // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added
> Variable Initialization' lines **
> // Begin Wizard Added Variable Initialization
>
> // End Wizard Added Variable Initialization
>
> // Begin Wizard Added Custom Method Calls
>
> // End Wizard Added Custom Method Calls
> oTrans.RegisterContextHandler("OrderHed.PONum", "Click this",
> handleContextClick);
> }
> object handleContextClick(object sender, object currentValue)
> {
> MessageBox.Show("Current value is:Â " + currentValue.ToString() + " --
> setting to foobarbuzz");
> return "foobarbuzz";
> }
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>Â <
> http://www.facebook.com/josegomez>
>Â <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
>Â <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
>Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Thu, May 31, 2012 at 2:05 PM, tkoch77 <tkoch77@...> wrote:
>
> > **
>
> >
> >
> > Has anyone had success with adding another option to a user added
> > UltraGrid context menu? I see you can access the ContextMenuStrip for the
> > grid, but not sure how to (if possible) to add another selection option.
> >
> > Thanks,
> >
> > Ted
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must
> have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and
> Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
> [Non-text portions of this message have been removed]
>

>


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
Has anyone had success with adding another option to a user added UltraGrid context menu? I see you can access the ContextMenuStrip for the grid, but not sure how to (if possible) to add another selection option.

Thanks,

Ted
Easiest way to do it, is to add the context menu to the bound field as
shown below


public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added
Variable Initialization' lines **
// Begin Wizard Added Variable Initialization

// End Wizard Added Variable Initialization

// Begin Wizard Added Custom Method Calls

// End Wizard Added Custom Method Calls
oTrans.RegisterContextHandler("OrderHed.PONum", "Click this",
handleContextClick);
}
object handleContextClick(object sender, object currentValue)
{
MessageBox.Show("Current value is: " + currentValue.ToString() + " --
setting to foobarbuzz");
return "foobarbuzz";
}


*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, May 31, 2012 at 2:05 PM, tkoch77 <tkoch77@...> wrote:

> **
>
>
> Has anyone had success with adding another option to a user added
> UltraGrid context menu? I see you can access the ContextMenuStrip for the
> grid, but not sure how to (if possible) to add another selection option.
>
> Thanks,
>
> Ted
>
>
>


[Non-text portions of this message have been removed]
What if the field I am wanting to use the context menu with is not 'native' to the form I have a datagrid on po suggestion that displays all attachments related the part as well as attachments related to the job, the datagrid is populated using dynamic query. Everytime a user clicks on a new suggestion the datagrid gets updated. I wanted to add a right click that would allow them to email the attachment by automatically generating the email and inserting the attachment using the filepath which is in the grid.



________________________________
From: Jose Gomez <jose@...>
To: vantage@yahoogroups.com
Sent: Thursday, May 31, 2012 2:12 PM
Subject: Re: [Vantage] Customize Context Menu for epiUltraGrid

Easiest way to do it, is to add the context menu to the bound field as
shown below


public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added
Variable Initialization' lines **
// Begin Wizard Added Variable Initialization

// End Wizard Added Variable Initialization

// Begin Wizard Added Custom Method Calls

// End Wizard Added Custom Method Calls
oTrans.RegisterContextHandler("OrderHed.PONum", "Click this",
handleContextClick);
}
object handleContextClick(object sender, object currentValue)
{
MessageBox.Show("Current value is:Â " + currentValue.ToString() + " --
setting to foobarbuzz");
return "foobarbuzz";
}


*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez>Â <http://www.facebook.com/josegomez>
 <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
 <http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, May 31, 2012 at 2:05 PM, tkoch77 <tkoch77@...> wrote:

> **
>
>
> Has anyone had success with adding another option to a user added
> UltraGrid context menu? I see you can access the ContextMenuStrip for the
> grid, but not sure how to (if possible) to add another selection option.
>
> Thanks,
>
> Ted
>

>


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
Then its a LOT more hairy! You need to use the ContextMenu from
Infragistics I dno't have a readly available example.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, May 31, 2012 at 2:39 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> What if the field I am wanting to use the context menu with is not
> 'native' to the form I have a datagrid on po suggestion that displays all
> attachments related the part as well as attachments related to the job, the
> datagrid is populated using dynamic query. Everytime a user clicks on a new
> suggestion the datagrid gets updated. I wanted to add a right click that
> would allow them to email the attachment by automatically generating the
> email and inserting the attachment using the filepath which is in the grid.
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: vantage@yahoogroups.com
> Sent: Thursday, May 31, 2012 2:12 PM
> Subject: Re: [Vantage] Customize Context Menu for epiUltraGrid
>
>
> Easiest way to do it, is to add the context menu to the bound field as
> shown below
>
> public void InitializeCustomCode()
> {
> // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added
> Variable Initialization' lines **
> // Begin Wizard Added Variable Initialization
>
> // End Wizard Added Variable Initialization
>
> // Begin Wizard Added Custom Method Calls
>
> // End Wizard Added Custom Method Calls
> oTrans.RegisterContextHandler("OrderHed.PONum", "Click this",
> handleContextClick);
> }
> object handleContextClick(object sender, object currentValue)
> {
> MessageBox.Show("Current value is: " + currentValue.ToString() + " --
> setting to foobarbuzz");
> return "foobarbuzz";
> }
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Thu, May 31, 2012 at 2:05 PM, tkoch77 <tkoch77@...> wrote:
>
> > **
>
> >
> >
> > Has anyone had success with adding another option to a user added
> > UltraGrid context menu? I see you can access the ContextMenuStrip for the
> > grid, but not sure how to (if possible) to add another selection option.
> >
> > Thanks,
> >
> > Ted
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and
> Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]
I figured it was a little bit more complicated. I tried this but it create a new context menu over the standard one. It doesnt add it to the standard one that has copy to excel etc.. When I right click on the cell and click the new context menu it displays what is in that cell whcih is what Im looking for.


epiUltraGridC1.ContextMenuStrip.Items.Add("TESTING", Nothing, AddressOf cntx_Click)

   Private Sub cntx_Click(ByVal sender As Object, ByVal args As System.EventArgs)
      MsgBox(epiUltraGridC1.ActiveCell.Value.ToString)
   End Sub



________________________________
From: Jose Gomez <jose@...>
To: vantage@yahoogroups.com
Sent: Thursday, May 31, 2012 2:41 PM
Subject: Re: [Vantage] Customize Context Menu for epiUltraGrid

Then its a LOT more hairy! You need to use the ContextMenu from
Infragistics I dno't have a readly available example.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez>Â <http://www.facebook.com/josegomez>
 <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
 <http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, May 31, 2012 at 2:39 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> What if the field I am wanting to use the context menu with is not
> 'native' to the form I have a datagrid on po suggestion that displays all
> attachments related the part as well as attachments related to the job, the
> datagrid is populated using dynamic query. Everytime a user clicks on a new
> suggestion the datagrid gets updated. I wanted to add a right click that
> would allow them to email the attachment by automatically generating the
> email and inserting the attachment using the filepath which is in the grid.
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: vantage@yahoogroups.com
> Sent: Thursday, May 31, 2012 2:12 PM
> Subject: Re: [Vantage] Customize Context Menu for epiUltraGrid
>
>
> Easiest way to do it, is to add the context menu to the bound field as
> shown below
>
> public void InitializeCustomCode()
> {
> // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added
> Variable Initialization' lines **
> // Begin Wizard Added Variable Initialization
>
> // End Wizard Added Variable Initialization
>
> // Begin Wizard Added Custom Method Calls
>
> // End Wizard Added Custom Method Calls
> oTrans.RegisterContextHandler("OrderHed.PONum", "Click this",
> handleContextClick);
> }
> object handleContextClick(object sender, object currentValue)
> {
> MessageBox.Show("Current value is:Â " + currentValue.ToString() + " --
> setting to foobarbuzz");
> return "foobarbuzz";
> }
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>Â <
> http://www.facebook.com/josegomez>
>Â <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
>Â <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
>Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Thu, May 31, 2012 at 2:05 PM, tkoch77 <tkoch77@...> wrote:
>
> > **
>
> >
> >
> > Has anyone had success with adding another option to a user added
> > UltraGrid context menu? I see you can access the ContextMenuStrip for the
> > grid, but not sure how to (if possible) to add another selection option.
> >
> > Thanks,
> >
> > Ted
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must
> have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and
> Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
> [Non-text portions of this message have been removed]
>

>


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links



[Non-text portions of this message have been removed]