ObjectContainerDataSource question...

3 posts, 0 answers
  1. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 19 Oct 2008 Link to this post

    I downloaded the Telerik ObjectContainerDataSource sample and while that works, my implementation of it doesn't, completely.

    I can get the page to load and data to load into the grid, but when I try to edit or insert a new record, the entire grid collapses to a single line.

    I've scoured my code to the Telerik code and they seem to be similar, except mine is pointing to my data objects.

    So I've finally realized I need to consult the Forums.

    Does anyone know why the grid is collapsing when I try to insert or edit a record?

    If it helps, I'm also using Unity, the Dependency Injection component from Microsoft.

    Thanks,

    King Wilder
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 20 Oct 2008 Link to this post

    Hello King,

    Most probably the grid is not bound for some reason. Can you verify using the debugger what may causing this?

    Sincerely yours,
    Vlad
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 20 Oct 2008 Link to this post

    It does seem to be bound, because when the usercontrol (with the RadGrid) loads, it's populated with the correct data.

    I have two (2) ObjectContainerDataSource controls on the page since my grid contains a DropDown control.
    • SourcePhones - OCDS for the grid data
    • SourcePhoneTypes - OCDS for the phone types DropDown control (Home, Work, Cell, etc)
    But when I debug, it never hits the Selecting event for the SourcePhones control.  It does, however, hit the SourcePhoneTypes control for each row in the grid, which seems correct.

    I should also mention that I am NOT using the WCSF MVP pattern.  I'm just using Unity integrated into an ASP.NET web application.

    I may end up trying to use StructureMap as my Inversion of Control container and see if I have better luck with the RadGrid.

    If you come up with any other ideas, I would love to hear them.

    Thanks,

    King Wilder
Back to Top