<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : How do I enable/disable Search/GridViews</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : How do I enable/disable Search/GridViews</description>
  <pubDate>Sun, 12 Apr 2026 13:29:29 -700</pubDate>
  <lastBuildDate>Wed, 10 Oct 2007 12:55:15 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=481</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>How do I enable/disable Search/GridViews : Fine if that provides the functionality...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=481&amp;PID=1545#1545</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 481<br /><strong>Posted:</strong> 10-Oct-2007 at 12:55pm<br /><br />Fine if that provides the functionality you want.]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 12:55:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=481&amp;PID=1545#1545</guid>
  </item> 
  <item>
   <title>How do I enable/disable Search/GridViews : Instead of enabling or disabling...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=481&amp;PID=1512#1512</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 481<br /><strong>Posted:</strong> 09-Oct-2007 at 11:49am<br /><br /><P>Instead of enabling or disabling a grid I ended up using the <FONT size=2>BeforeLeaveMasterRowHandlerCore to set AllowAction to true or false.</P><DIV></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 09 Oct 2007 11:49:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=481&amp;PID=1512#1512</guid>
  </item> 
  <item>
   <title>How do I enable/disable Search/GridViews : GridViewContext as far as I know...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=481&amp;PID=1510#1510</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 481<br /><strong>Posted:</strong> 09-Oct-2007 at 11:08am<br /><br /><P>GridViewContext as far as I know does not have an enable or disable. Do I need to add this function and override the BasicGrid and the presenter as well?</P>]]>
   </description>
   <pubDate>Tue, 09 Oct 2007 11:08:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=481&amp;PID=1510#1510</guid>
  </item> 
  <item>
   <title>How do I enable/disable Search/GridViews :  Originally posted by orcitiesThere...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=481&amp;PID=1509#1509</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 481<br /><strong>Posted:</strong> 09-Oct-2007 at 11:03am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by orcities</strong></em><br /><br />There are times in my application when I want to disable the Search Grid and search criteria control. <DIV>&nbsp;</DIV><DIV>I assume you mean "dynamically disable" depending on the state of something.</DIV><DIV>&nbsp;</DIV><DIV>How would I go about doing this? Can I access these controls from another control on the same PageView?</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff>This kind of logic belongs in the controller for the page.&nbsp; The view context is the mechanism by which controllers and presenters communicate with each other.</FONT></DIV><DIV>&nbsp;</DIV><DIV>Also, is it currently possible to enable/disable a GridView when it has been added to the ViewFactory similiarly to the following:</DIV><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">…<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">CreateGridViewContext();<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>pContext.GridViewId = GridViewId;<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>ViewFactory.AddNew(<SPAN style="COLOR: #2b91af">ViewNames</SPAN>.BasicGrid, WorkItem, GridViewId, <SPAN style="COLOR: blue">typeof</SPAN>(<SPAN style="COLOR: #2b91af">ContactEmail</SPAN>));<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">…</P><DIV><FONT color=#0000ff>Aside:&nbsp; The AddNew() doesn't add the view to the factory, it causes the factory to add a new instance of the view to the workitem.<O:P></O:P></FONT></DIV></SPAN><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">private</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <SPAN style="COLOR: blue">void</SPAN> CreateGridViewContext()<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">EntityBindingSource</SPAN></SPAN> pContactEmailBindingSource</SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">EntityBindingSource</SPAN>(<SPAN style="COLOR: blue">typeof</SPAN>(<SPAN style="COLOR: #2b91af">ContactEmail</SPAN>), EntityManager, mEmptyContactList, <SPAN style="COLOR: #2b91af">String</SPAN>.Empty);<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">GridViewContext</SPAN> context = <SPAN style="COLOR: #2b91af">GridViewContext</SPAN>.AddNew(WorkItem, GridViewId, pContactEmailBindingSource);<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">IGridBuilderService</SPAN> gridBuilderService = <SPAN style="COLOR: blue">this</SPAN>.WorkItem.Services.Get&lt;<SPAN style="COLOR: #2b91af">IGridBuilderService</SPAN>&gt;();<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>context.GridBuilderPrototype = gridBuilderService.Get&lt;<SPAN style="COLOR: #2b91af">ContactEmail</SPAN>&gt;();<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><O:P></O:P></SPAN></P><DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"></SPAN>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><FONT color=#0000ff>Again, let the page controller decide if the grid should be enabled or disabled and use the view context to allow it to communicate with the grid's presenter.</FONT></SPAN></DIV><P></P><FONT size=2></FONT></td></tr></table> ]]>
   </description>
   <pubDate>Tue, 09 Oct 2007 11:03:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=481&amp;PID=1509#1509</guid>
  </item> 
  <item>
   <title>How do I enable/disable Search/GridViews : There are times in my application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=481&amp;PID=1495#1495</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 481<br /><strong>Posted:</strong> 09-Oct-2007 at 9:33am<br /><br />There are times in my application when I want to disable the Search Grid and search criteria control. <DIV>&nbsp;</DIV><DIV>How would I go about doing this? Can I access these controls from another control on the same PageView?</DIV><DIV>&nbsp;</DIV><DIV>Also, is it currently possible to enable/disable a GridView when it has been added to the ViewFactory similiarly to the following:</DIV><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">…<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">CreateGridViewContext();<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>pContext.GridViewId = GridViewId;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>ViewFactory.AddNew(<SPAN style="COLOR: #2b91af">ViewNames</SPAN>.BasicGrid, WorkItem, GridViewId, <SPAN style="COLOR: blue">typeof</SPAN>(<SPAN style="COLOR: #2b91af">ContactEmail</SPAN>));<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">…<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">private</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <SPAN style="COLOR: blue">void</SPAN> CreateGridViewContext()<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">EntityBindingSource</SPAN></SPAN> pContactEmailBindingSource</SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">EntityBindingSource</SPAN>(<SPAN style="COLOR: blue">typeof</SPAN>(<SPAN style="COLOR: #2b91af">ContactEmail</SPAN>), EntityManager, mEmptyContactList, <SPAN style="COLOR: #2b91af">String</SPAN>.Empty);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">GridViewContext</SPAN> context = <SPAN style="COLOR: #2b91af">GridViewContext</SPAN>.AddNew(WorkItem, GridViewId, pContactEmailBindingSource);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">IGridBuilderService</SPAN> gridBuilderService = <SPAN style="COLOR: blue">this</SPAN>.WorkItem.Services.Get&lt;<SPAN style="COLOR: #2b91af">IGridBuilderService</SPAN>&gt;();<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>context.GridBuilderPrototype = gridBuilderService.Get&lt;<SPAN style="COLOR: #2b91af">ContactEmail</SPAN>&gt;();<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p></o:p></SPAN></P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}</SPAN></P><FONT size=2></DIV></FONT>]]>
   </description>
   <pubDate>Tue, 09 Oct 2007 09:33:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=481&amp;PID=1495#1495</guid>
  </item> 
 </channel>
</rss>