CodeSmith Community
Your Code. Your Way. Faster!

EntityGridView, GridViewSearchPanel

Latest post 03-19-2008 7:05 AM by C#Bob. 9 replies.
  • 09-17-2006 1:49 AM

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    EntityGridView, GridViewSearchPanel

    Hi guys!

    I've noticed addition of new search control and tried to look at it - idea is great, implementation is cool, the only issue I noticed is that after I set GridViewControlID control is being rendered just fine, but after save it is being lost and when I open page in design view once again it is not rendered properly, because GridViewControlID is empty again, I was able to set GridViewControlID and save using SourceView.

    Another issue I've noticed is that all generated EntityGridView in Web admin is not being rendered properly because of "Object reference not set..." error, but if I remove AllowPaging="true" from declaration then GridView is being generated without problems.

    Btw: I've looked into source code of and can see that GridViewSearchPanel look only for String columns of GridView. So, I just wonder is there are any plans to extend it to allow filtering/searching of other columns, for example datetime, foreign and so on...

    Thanks again for new cool addition!
    Best regards,
    Alex.
    • Post Points: 35
  • 09-17-2006 8:41 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 734
    • Points 17,040

    Re: EntityGridView, GridViewSearchPanel

    Hi Alex,

    Thank you for your feedback. Those issues you come accross will be looked at.

    In regards to extending the GridViewSearchPanel to include the seach of another column types ... that is the plan Wink [;)]

    Thank you

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 35
  • 09-19-2006 11:20 AM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: EntityGridView, GridViewSearchPanel

    Thanks, Mike for quick replay and fix! I've just got latest version of nettiers, but now every page shows me: "Error Creating Control - Content1: URI format are not supported". It looks like something was changed in EntityGridView...
    Best regards,
    Alex.
    • Post Points: 35
  • 09-19-2006 12:48 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 734
    • Points 17,040

    Re: EntityGridView, GridViewSearchPanel

    Hi Alex,

    The error you're getting is it referring to the EntityGridView control? Hmm ... the control's code has been altered for some time now ...

     

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 35
  • 09-20-2006 1:43 AM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: EntityGridView, GridViewSearchPanel

    I'm not sure, because error is gone if I remove data source controls from declaration, so it looks like the problem in EntityDataSource control...
    Best regards,
    Alex.
    • Post Points: 35
  • 09-20-2006 11:09 AM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 734
    • Points 17,040

    Re: EntityGridView, GridViewSearchPanel

    Hey Alex,

    Give us a little more information of what's exactly happening. You're saying you get an error when you use EntityDataSource or TypedDataSource that is DataSource Control to your GridView. It is design-time error or run-time? Has this error started occurring with an introduction of GridViewSearchPanel?

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 35
  • 09-21-2006 1:33 AM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: EntityGridView, GridViewSearchPanel

    I've just re-generated Web Admin site and opened generated solution in VS 2005 and open one of pages in design view. And as I already wrote generated GridView shows erro about object reference not set, after I set AllowPaging to false error is gone, but that was before last changes in SVN, after I've got your fix to GridViewSearchPanel and other fixes then I re-generated once again and did the same, but after I opened page in design view I got - URI error and Content2 was not shown at all, but if I remove generated datasource controls error again is gone... nightmare... :) So, just generate with latest version Web Admin Site and try to open any page in design view, you should see what I try to explain... HTH
    Best regards,
    Alex.
    • Post Points: 35
  • 09-21-2006 6:45 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 734
    • Points 17,040

    Re: EntityGridView, GridViewSearchPanel

    Alex,

    I see what you say ... let me get back to you on that

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 35
  • 03-18-2008 7:40 AM In reply to

    • C#Bob
    • Not Ranked
    • Joined on 01-03-2006
    • Knoxville, TN
    • Posts 8
    • Points 100

    Re: EntityGridView, GridViewSearchPanel

    Did anyone find out how to fix this "Error Creating Control" message in Design view on EntityDataSource controls?

    Any help would be appreciated. Thanks.

    Sincerely, C#BOB
    • Post Points: 5
  • 03-19-2008 7:05 AM In reply to

    • C#Bob
    • Not Ranked
    • Joined on 01-03-2006
    • Knoxville, TN
    • Posts 8
    • Points 100

    Party!!! [<:o)] Re: EntityGridView, GridViewSearchPanel

    I believe I have found a fix to a similar issue, and I wanted to share. I am using VS2008, and ALL generated DataSource Controls in design view say: "Error Creating Control ..." 

    I found a fix: Here

    In DataRepository,  GetDesignTimeConfig, change

    EnvDTE80.DTE2 dte = (EnvDTE80.DTE2) System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.8.0");

    to

    EnvDTE80.DTE2 dte = (EnvDTE80.DTE2) System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.9.0");


    Now, to fix the EntityGridView, you have to but a try catch around the OnInit and OnSorting events in the EntityGridView.cs.

     

    Sincerely, C#BOB
    • Post Points: 5
Page 1 of 1 (10 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems