﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » pick list</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 07:36:12 GMT</lastBuildDate><ttl>20</ttl><item><title>pick list</title><link>http://forum.strataframe.net/FindPost7690.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I would like to bind my BO to lookupedit. However, my table has 46000 records. It caused my form take too long to load. Any workaround?&lt;/P&gt;&lt;P&gt;Thank you</description><pubDate>Tue, 03 Apr 2007 08:45:07 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: pick list</title><link>http://forum.strataframe.net/FindPost7857.aspx</link><description>No, I'm sorry... I don't know the solution.&amp;nbsp; Obviously, if the text is reverting back to the GUID, then it is not firing your event.&amp;nbsp; What you could do (which might be easier) is add a custom property to your business object... say a property with only a get{}.&amp;nbsp; Copy over all of the attributes from the PK property and put them on this new property.&amp;nbsp; Then, in the grid, bind the column to the new property, not the PK column (and you can just hide the PK column).&amp;nbsp; Then, in your new property, return your custom text.&amp;nbsp; This way, it won't ever have to swap back and forth between the PK value and your custom text.&amp;nbsp; In fact, you won't even have to handle that CustomDisplayText event at all.</description><pubDate>Tue, 03 Apr 2007 08:45:07 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: pick list</title><link>http://forum.strataframe.net/FindPost7848.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I managed to make it works. I left one more problem, which the grid column show my PK - GUID data type instead of my custom display text when I click on the button. It would reverted to custom display text if I leave the column.&lt;/P&gt;&lt;P&gt;I have posted this to devexpress, still waiting for answer. Do you know the solution?&lt;/P&gt;&lt;P&gt;Thank you</description><pubDate>Mon, 02 Apr 2007 20:48:27 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: pick list</title><link>http://forum.strataframe.net/FindPost7824.aspx</link><description>It looks like youre code is correct, Chan, however, it could be that the handler fell off of your ItemrepositoryItemButtonEdit_CustomDisplayText() method... there should be a ItemrepositoryItemButtonEdit.CustomDisplayText+= new ConvertEditValueEventHandler(ItemrepositoryItemButtonEdit_CustomDisplayText) somewhere in your designer file.&amp;nbsp; If that delegate combine call (the +=) is not called, then your method will never be called to return the custom text.&amp;nbsp; You can tell this pretty easily by placing a breakpoint on the e.Value call in that method and see if the breakpoint is ever hit.</description><pubDate>Mon, 02 Apr 2007 11:53:38 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: pick list</title><link>http://forum.strataframe.net/FindPost7817.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I have check out devexpress forum and set to use repositoryItemButtonEdit control.&lt;/P&gt;&lt;P&gt;How could I store the selected record PK to my column field and show custom text? I have code as below. However, it always show same value.&lt;/P&gt;&lt;P&gt;[codesnippet]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void ItemrepositoryItemButtonEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (this.ItembrowseDialog.ShowDialog() == DialogResult.OK)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.purchaseInvoiceDetailsBO.ItemID = itemsBO.ItemID;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void ItemrepositoryItemButtonEdit_CustomDisplayText(object sender, DevExpress.XtraEditors.Controls.ConvertEditValueEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (itemsBO.SeekToPrimaryKey(purchaseInvoiceDetailsBO.ItemID))&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Value = itemsBO.ItemCode;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Handled = true;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }[/codesnippet]&lt;/P&gt;&lt;P&gt;Please advide. Thank you</description><pubDate>Sat, 31 Mar 2007 08:51:24 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: pick list</title><link>http://forum.strataframe.net/FindPost7729.aspx</link><description>[quote]How to have textbox + "..." button inside devexpress xtragrid column? [/quote]&lt;/P&gt;&lt;P&gt;This is basic functionality of the DevExpress grid.&amp;nbsp; You will use an embedded text box control and then set the text editor to have the buttons just as though a regular DevExpress text box would be used when dropped on a form.&amp;nbsp; You can get more information on this through the DevExpress forum or their documentation.</description><pubDate>Mon, 26 Mar 2007 22:03:18 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: pick list</title><link>http://forum.strataframe.net/FindPost7725.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;I was thinking to use browsedialog. However, my current design is, user can add/edit data in grid. How to have textbox + "..." button inside devexpress xtragrid column? It might able to be done, but not so easy.&lt;/P&gt;&lt;P&gt;I just want to see any alternative way, or I got to change my design.</description><pubDate>Mon, 26 Mar 2007 21:51:03 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: pick list</title><link>http://forum.strataframe.net/FindPost7698.aspx</link><description>Chan, it doesn't matter what type of control you are trying to use....46000 records is too many in most cases.&amp;nbsp; The problem with allowing this many records to come back is one, it will be VERY slow, and two, you could outstrip the resources available on end-user machines.&amp;nbsp; Your machine probably has more memory than most end-user machines will which will result in out of memory exceptions. &lt;/P&gt;&lt;P&gt;You need to work within the disconnected data environment.&amp;nbsp; Ivan is right on the money, you need to bring back smaller data sets.&amp;nbsp; This would be a good place to use the BrowseDialog.</description><pubDate>Mon, 26 Mar 2007 13:56:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: pick list</title><link>http://forum.strataframe.net/FindPost7697.aspx</link><description>Hi Chan.&lt;/P&gt;&lt;P&gt;Isn't it the time to use the BrowseDialog for that?</description><pubDate>Mon, 26 Mar 2007 13:21:21 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>