Problem with LoadLayout

71 posts, 0 answers
  1. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 10 Aug 2010 Link to this post

    hi, which event is best to call this function?  I have tried Load and shown but I still get this error when I click on the grid :

    "There is no property descriptor corresponding to property name:"

    and the property name is blank. However, I can continue to work with the grid and click on different rows, it is just when I open the form and immediately click on the grid, is when I get this message. Thanks for any help.

  2. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 11 Aug 2010 Link to this post

    Still getting the same message every time I perform a LoadLayout. The grid is unbound and dynamically populated if that helps.

    thanks.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 11 Aug 2010 Link to this post

    Also had this problem, solved partially when I updated to to Q2 SP1.

    Regards
    Erwin
  5. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 11 Aug 2010 Link to this post

    I'm using v. 2010_2_10_726  which is the latest I believe and I still get that error when dynamically populating the grid.
  6. Kris
    Kris avatar
    1 posts
    Member since:
    Oct 2008

    Posted 11 Aug 2010 Link to this post

    I've tried version 2010_2_10_806 and also get the issue whenever we execute LoadLayout.

  7. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 13 Aug 2010 Link to this post

    Hi Karun Sukhwani,

    The problem is already resolved. The fix will be included in next internal build, planed for tomorrow. Let me know if you have other queries.

    Regards,
    Julian Benkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 13 Aug 2010 Link to this post

    Still happens with internal build 813, when I load a layout that contains a filter expression.

  9. Prad
    Prad avatar
    35 posts
    Member since:
    Apr 2008

    Posted 13 Aug 2010 Link to this post

    facing same issue when upgrading to Q2 SP1.
  10. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 16 Aug 2010 Link to this post

    Any update on this, I'm under pressure to get it resolved.
  11. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 18 Aug 2010 Link to this post

    Bump
  12. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 18 Aug 2010 Link to this post

    Hilda,

    Have you tried internal build 813?
    Some of the problems with LoadLayout are fixed, but not all I'm afraid.

    I'm having problems with 813 when the layout includes filter settings.

    The bug that shows up at first click on the grid after a Load Layout seems to be fixed in the internal build 813.

    Currently a showstopper for a new version of my app with 2010 Q2.

    Regards
    Erwin
  13. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 19 Aug 2010 Link to this post

    Hi Erwin,
    I don't see it under my 'Downloads' section ? The latest I have is 2010.2 714  , there's nothing under internal builds.

    Thanks.
  14. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 19 Aug 2010 Link to this post

    Internal Build 813 can only be downloaded if you first download 2010 Q2 SP1 (=2010.2.806).

    My remaining problem with 2010.2.813 is related to LoadLayout and using custom CellFormatting event handler and probably even more app specific problems. So your current issues might be resolved with 813.

    Regards
    Erwin
  15. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 19 Aug 2010 Link to this post

    Thanks Erwin I'll give it a go
  16. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 19 Aug 2010 Link to this post


    What bothers me most with this issue: how can code like this that just pops up a meaningless message box slip through QA and code review into production.

    You don't even need to run the code to see that there must be something very wrong, static code analysis/review should reveal the problem.

    - If there is a problem related to API calls the grid should throw an exception with as much contextual information as possible
    - If the problem is related to the Data that was loaded into the grid, there should be an Event where the developer can catch the situation and if needed display a meaningful message to the user.

    in absolutely no case should a hardcoded message box with a message that makes absolutely no sense pop up.

    So there must be either a design bug or a flaw in QA/code review. Feels a lot like debug code that slipped through.

    Regards
    Erwin
  17. nitin b
    nitin b avatar
    7 posts
    Member since:
    Jan 2010

    Posted 19 Aug 2010 Link to this post

    I am working with version 2010.2.10.806. I am trying to use loadlayout but Still i am getting problem.


    My code:

    string sGridSetting = ( getting value from DB)

     byte[] byteArray = Encoding.ASCII.GetBytes(sGridSetting);
                        MemoryStream stream = new MemoryStream(byteArray);
                       rgvControl.LoadLayout(stream);


    Error:
    ---------------------------
    Data Exception
    ---------------------------
    There is no property descriptor corresponding to property name:
    ---------------------------
    OK   
    ---------------------------


    Please let me know ASAP.
  18. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 19 Aug 2010 Link to this post

    Also had this bug, in my case it's fixed with internal build 813 unless you also have a custom CellFormatting event handler on that grid.

    Regards
    Erwin
  19. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 20 Aug 2010 Link to this post

    Build 813 works for me, thanks. Although I haven't really done any filters or grouping with my grids, just hiding columns and it seems to work.
  20. Khizar Khan
    Khizar Khan avatar
    41 posts
    Member since:
    Jan 2010

    Posted 23 Aug 2010 Link to this post

    Hi,

    I am also getting this error, I have Conditional formatting for one of the colum to be red, that's it.

    any idea when this will be fixed?

    regards,
    Khizar
  21. Panos Klaoudatos
    Panos Klaoudatos avatar
    4 posts
    Member since:
    Aug 2012

    Posted 24 Aug 2010 Link to this post

    Hi,

    I am also getting the above problem and I would like to add another one too (related to Layout).
    Here is the scenario:

    I have a grid with some columns, say 'Subject' and 'DateCreated' (with respective field names)
    On form close, I save the grid layout (the xml as string in a datatable of an sql database).
    On form load, I load the saved layout from the database.
    So far, so good.

    I then use the property builder to Add another column, say 'Column1' with field name 'DateCreated', no need for another field.
    The column is set to visible.

    When I run the application, the layout is loaded but the column is not shown! (In my opinion, since the number of columns has changed, the layout should have been reset automatically).

    I then use the column chooser and select place 'Column1' in the Grid.
    Upon form close, the layout is saved as supposed to. (I checked it by opening and closing the form with the grid).

    I then use the property builder and delete this column 'Column1'.

    When I run the application once again, the layout is loaded with 'Column1' appearing and I can even sort the grid data by this column. It even appears in the column chooser!

    To wrap this up, I develop an application with this automatic save/load of the grid's layout. When I release a new version of the application with grid changes (add new columns,remove old ones, change the properties or data types of others), I want these changes to reflect to the layout save/load. In my opinion, the methods for save/load of the layout should compare the columns found ob the grid and the ones found in the layout XML before each operation.




  22. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 24 Aug 2010 Link to this post

    Panos,

    it's even more complicated than that, because you should not load a layout that was created with an earlier version of Telerik controls.
    In the past, doing so resulted in very strange effects. Looking at the .xml file produced by 2010Q2SP1, Telerik seems to have cleaned up the format of the layout file quite a bit.

    In my app - which supports user defined queries / datasources - I calculate a hash over the query/table definition and program build information to prevent loading of layouts that do not fit to exactly to the current version of the datasource definition. Otherwise, if you allow users to save their customized layouts, you end up with a lot of support problems if your users load outdated layouts.

    The annoying problem that persists is that a new release of my software resets all saved custom layouts. Providing a migration path for old layouts was not feasible with resonable resources.

    Regards
    Erwin
  23. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 25 Aug 2010 Link to this post

    Hi guys,

    I would like to thank you all for the feedback that you gave concerning the LoadLayout feature, we appreciate it much. We set the priority of the LoadLayout issues to high and I want to assure that we will address them in Q2 2010 SP2 planned for the first half of September.

    If you have additional feedback to share, feel free to contact us.

    Greetings,
    Julian Benkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  24. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 07 Sep 2010 Link to this post

    Hi, 

    I've just upgraded to 2010 Q1, and after going through all the changes needed to rid our application of the errors and warnings from the upgrade, I've found this thread. 
    Any news on the upgrade to SP2? This is a major issue for us. More than the fact it has a bug, that (as Erwin said) it has a messagebox that loads pops up now on every one of our grids. 
    Richard
  25. Vassil Petev
    Admin
    Vassil Petev avatar
    1765 posts

    Posted 08 Sep 2010 Link to this post

    Hello Richard Slade,

    We are working on addressing this for SP2, which is due next week. Feel free to subscribe to the Release History RSS Feed to get notified of the new release's availability.


    All the best,
    Vassil
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  26. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 16 Sep 2010 Link to this post

    All my issues with LoadLayout seem to have been fixed in Q2SP2. Thank you!

    Regards
    Erwin
  27. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 16 Sep 2010 Link to this post

    I don't seem to have Q2SP2 under my downloads section?
  28. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 16 Sep 2010 Link to this post

    The Build is named

    2010.2 10.914

    in the download section.

    Erwin
  29. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 17 Sep 2010 Link to this post

    My license expired and now I can't get a version that fixes LoadLayout?  All I see is : 2010.2 10.713 (Jul 14, 2010) , so I'm stuck with a version that actually broke my application?
  30. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 21 Sep 2010 Link to this post

    Erwin, I am glad to hear that the LoadLayout issues you experienced in the previous WinForms versions are resolved in Q2 2010 SP2.

    Hilda, as I mentioned in one of your support tickets, there is a small issue in the Downloads section. You can find the latest version in Your Account >> Downloads >> RadControls for WinForms >> Older Versions.

    Regards,
    Nikolay
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  31. devoas
    devoas avatar
    69 posts
    Member since:
    Dec 2009

    Posted 17 Oct 2010 Link to this post

    Hi,

    We tested 2010.2 10.914 and found a problem in LoadLayout incase of multiple Header Rows
    Grid is Databound and there are multiple Header Rows, after Loadlayout  no Data is shown in Grid  but same work perfectly and showing Data if there is single Header Row.

    Please confirm if this is an issue in latest build.

    Thanks.
    devoas.




Back to Top
UI for WinForms is Visual Studio 2017 Ready