Forums
Forums are Read-Only. Use the new Support Center. To start a general discussion, use the General category when submitting your question.

RepositoryLookupEdit to LookUpEdit

Last post 12/18/2011 2:51 AM by Brendon Muck [DX Squad]. 7 replies.
Sort Posts: Previous Next
  • Michel Jallet

    RepositoryLookupEdit to LookUpEdit

    3/13/2004 9:01 AM
    When I add a LookUpEdit control to a bar, I get a RepositoryItemLookUpEdit.
    When I add a LookUpEdit control to a form, I get a LookUpEdit.
    As I want to use the same methods for both, how can I convert the
    RepositoryItemLookUpEdit into a LookUpEdit ?
    --
    Michel Jallet
    mja@maoiraconseil.com
  • Miha Markic [MVP C#] - DXSquad

    Re: RepositoryLookupEdit to LookUpEdit

    3/14/2004 9:30 AM
    Hi Michel,
    
    You can't.
    BarEditItem creates and wrapps one for you.
    What methods do you need?
    
    -- 
    Miha Markic [MVP C#] - DXSquad/RightHand .NET consulting & development
    miha at rthand com
    www.rthand.com
    
    Developer Express newsgroups are for peer-to-peer support.
    For direct support from Developer Express, write to support@devexpress.com
    Bug reports should be directed to: support@devexpress.com
    Due to newsgroup guidelines, DX-Squad will not answer anonymous postings.
    
    "Michel Jallet" <mja@moiraconseil.com> wrote in message
    news:4052cd0a@news.devexpress.com...
    > When I add a LookUpEdit control to a bar, I get a
    RepositoryItemLookUpEdit.
    > When I add a LookUpEdit control to a form, I get a LookUpEdit.
    > As I want to use the same methods for both, how can I convert the
    > RepositoryItemLookUpEdit into a LookUpEdit ?
    > --
    > Michel Jallet
    > mja@maoiraconseil.com
    >
    >
  • Michel Jallet

    Re: RepositoryLookupEdit to LookUpEdit

    3/14/2004 5:18 PM
    Hi Miha,
    I just want to call an own method which needs a LookUpEdit as parameter...
    but my lookup control is in an XtraBar.
    Normally, I write (in VB) something like this : oLK.LookUpInit(me.MyControl,
    oapp.oLk.GetLookUp("TYP"))
    
    After you answer, I tried this... without success :
    Dim MyBarEditItem as XtraBars.BarItemLink =
    me.XtraBarMan.Bars("MyToolBar").ItemLinks("MyLookUpEdit")
    oLk.LookUpInit(CType(MyBarEditItem, XtraEditor.LookUpEdit), ....)
    
    --
    Michel Jallet
    mja@moiraconseil.com
    "Miha Markic [MVP C#] - DXSquad" <miham@dxsquadDOTcom> wrote in message
    news:40542551$1@news.devexpress.com...
    > Hi Michel,
    >
    > You can't.
    > BarEditItem creates and wrapps one for you.
    > What methods do you need?
    >
    > --
    > Miha Markic [MVP C#] - DXSquad/RightHand .NET consulting & development
    > miha at rthand com
    > www.rthand.com
    >
    > Developer Express newsgroups are for peer-to-peer support.
    > For direct support from Developer Express, write to support@devexpress.com
    > Bug reports should be directed to: support@devexpress.com
    > Due to newsgroup guidelines, DX-Squad will not answer anonymous postings.
    >
    > "Michel Jallet" <mja@moiraconseil.com> wrote in message
    > news:4052cd0a@news.devexpress.com...
    > > When I add a LookUpEdit control to a bar, I get a
    > RepositoryItemLookUpEdit.
    > > When I add a LookUpEdit control to a form, I get a LookUpEdit.
    > > As I want to use the same methods for both, how can I convert the
    > > RepositoryItemLookUpEdit into a LookUpEdit ?
    > > --
    > > Michel Jallet
    > > mja@maoiraconseil.com
    > >
    > >
    >
    >
  • Miha Markic [MVP C#] - DXSquad

    Re: RepositoryLookupEdit to LookUpEdit

    3/14/2004 6:12 PM
    Hi,
    
    Yes, but why does it need lookup?
    
    -- 
    Miha Markic [MVP C#] - DXSquad/RightHand .NET consulting & development
    miha at rthand com
    www.rthand.com
    
    Developer Express newsgroups are for peer-to-peer support.
    For direct support from Developer Express, write to support@devexpress.com
    Bug reports should be directed to: support@devexpress.com
    Due to newsgroup guidelines, DX-Squad will not answer anonymous postings.
    
    "Michel Jallet" <mja@moiraconseil.com> wrote in message
    news:405492c8@news.devexpress.com...
    > Hi Miha,
    > I just want to call an own method which needs a LookUpEdit as parameter...
    > but my lookup control is in an XtraBar.
    > Normally, I write (in VB) something like this :
    oLK.LookUpInit(me.MyControl,
    > oapp.oLk.GetLookUp("TYP"))
  • Michel Jallet

    Re: RepositoryLookupEdit to LookUpEdit

    3/14/2004 6:42 PM
    Hi Miha,
    Because it's programmed as it.
    Why does MessageBox.Show need a string as its first parameter ?
    
    --
    Michel Jallet
    mja@moiraconseil.com
    "Miha Markic [MVP C#] - DXSquad" <miham@dxsquadDOTcom> wrote in message
    news:40549fa6@news.devexpress.com...
    > Hi,
    >
    > Yes, but why does it need lookup?
    >
    > --
    > Miha Markic [MVP C#] - DXSquad/RightHand .NET consulting & development
    > miha at rthand com
    > www.rthand.com
    >
    > Developer Express newsgroups are for peer-to-peer support.
    > For direct support from Developer Express, write to support@devexpress.com
    > Bug reports should be directed to: support@devexpress.com
    > Due to newsgroup guidelines, DX-Squad will not answer anonymous postings.
    >
    > "Michel Jallet" <mja@moiraconseil.com> wrote in message
    > news:405492c8@news.devexpress.com...
    > > Hi Miha,
    > > I just want to call an own method which needs a LookUpEdit as
    parameter...
    > > but my lookup control is in an XtraBar.
    > > Normally, I write (in VB) something like this :
    > oLK.LookUpInit(me.MyControl,
    > > oapp.oLk.GetLookUp("TYP"))
    >
    >
  • Miha Markic [MVP C#] - DXSquad

    Re: RepositoryLookupEdit to LookUpEdit

    3/15/2004 8:56 AM
    Hi,
    
    "Michel Jallet" <mja@moiraconseil.com> wrote in message
    news:4054a6aa$1@news.devexpress.com...
    > Hi Miha,
    > Because it's programmed as it.
    
    :-)
    
    > Why does MessageBox.Show need a string as its first parameter ?
    
    Let me guess here - it needs it to show the message?
    Btw, there are overloads that do not need the string as first parameter.
    Can't you modify your method to accept only relevant parameters instead of
    entrie lookup?
    IOW - what lookup properties or methods do you need within that method of
    yours?
    
    -- 
    Miha Markic [MVP C#] - DXSquad/RightHand .NET consulting & software
    development
    miha at rthand com www.rthand.com
    
    Developer Express newsgroups are for peer-to-peer support.
    For direct support from Developer Express, write to support@devexpress.com
    Bug reports should be directed to: support@devexpress.com
    Due to newsgroup guidelines, DX-Squad will not answer anonymous postings.
  • Vincentius Owen

    Re: RepositoryLookupEdit to LookUpEdit

    12/17/2011 3:38 PM
    • Not Ranked
    • Joined on 4/12/2010
    • Posts 3
    Anonymous:
    What methods do you need?
    
     


    Hi, I have the same issue.

    I must set the datasource for repositoryItemLookUpEdit from Background Thread

    As I have to do the Thread-Safe-Call but I can't find the method repositoryItemLookUpEdit.InvokeRequired 
  • Brendon Muck [DX Squad]

    Re: RepositoryLookupEdit to LookUpEdit

    12/18/2011 2:51 AM
    • Top 10 Contributor
    • Joined on 5/16/2007
    • Buffalo, NY
    • Posts 6,154
    I'm not sure, but you may need to use the BarManager.ActiveEditor.Invoke required property instead.
    Please do not email me directly for support. Use the Support Center or Community Forums so that everyone may benefit.
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.