×

Notice

The forum is in read only mode.
×
Getting new Releases

To get notified on new releases you may follow us on twitter @expandframework or subscribe in our main RSS feed.

Topic-icon Enter data in the listview with lookup

  • lekhanhky
  • lekhanhky's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 years 6 months ago #10272 by lekhanhky
Enter data in the listview with lookup was created by lekhanhky
I want to enter data in Listview, following scenario :
Step 1 : Move focus cell (contains lookup inline), press any key to search
Step 2 : After Press Enter to focus Lookup
Step 3 : Press Enter to close lookup and move nextcell of Listview

Help me, tks !
Attachments:
More
2 years 6 months ago #10284 by gawdenitish36
Replied by gawdenitish36 on topic Enter data in the listview with lookup
change lookupeditor Mode Auto to AllItems
Attachments:
The following user(s) said Thank You: Tolis
  • lekhanhky
  • lekhanhky's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 years 6 months ago #10285 by lekhanhky
Replied by lekhanhky on topic Enter data in the listview with lookup
I changed it, but lookup dropdown 2 times after move nextcell ? why ?
More
2 years 6 months ago #10286 by gawdenitish36
Replied by gawdenitish36 on topic Enter data in the listview with lookup
can you please explain your exact problem?
it is work well for me.
More
2 years 6 months ago #10288 by gawdenitish36
Replied by gawdenitish36 on topic Enter data in the listview with lookup
this is not a best way but i think it will help you.
More
2 years 6 months ago #10289 by gawdenitish36
Replied by gawdenitish36 on topic Enter data in the listview with lookup
public partial class EditorShowController : ViewController
{
GridListEditor listEditor;
public EditorShowController()
{
InitializeComponent();
TargetObjectType = typeof(PartMaster);

}
protected override void OnActivated()
{
base.OnActivated();

}
protected override void OnViewControlsCreated()
{
base.OnViewControlsCreated();
listEditor = ((ListView)View).Editor as GridListEditor;
listEditor.GridView.FocusedColumnChanged += gridView1_FocusedColumnChanged;
}
protected override void OnDeactivated()
{

base.OnDeactivated();
}



private void gridView1_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e)
{
DevExpress.XtraGrid.Views.Base.BaseView view = sender as DevExpress.XtraGrid.Views.Base.BaseView;
if (view == null)
return;
view.ShowEditor();
LookupEdit editor = view.ActiveEditor as LookupEdit;
if (editor != null)
{
editor.CloseUp += lookUp_PopupClosed;
editor.ShowPopup();
}

}

private void lookUp_PopupClosed(object sender, DevExpress.XtraEditors.Controls.CloseUpEventArgs e)
{
if (e.CloseMode == PopupCloseMode.Normal)
{
System.Windows.Forms.SendKeys.Send("{TAB}");
}

}

}
The following user(s) said Thank You: lekhanhky
Moderators: expand
Time to create page: 0.200 seconds