trouble with panel and gridview

6 posts, 0 answers
  1. Najoua
    Najoua avatar
    37 posts
    Member since:
    Jun 2007

    Posted 22 Jun 2007 Link to this post

    Hi,
    I have a troubleshooting once I run my application which contain radcontrols.so I tryed to focus on the problem and I distinguished that when I add a radpanel to radGridview and dock it in the bottom of gridview, nothing works.
    So have a suggestion about this problem?
  2. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 22 Jun 2007 Link to this post

    Hello Bahri,

    If you are trying to add a RadPanelBar as a child control in RadGridView you will get errors. Basically, TPF (Telerik Presentation Foundation), the framework that is responsible for rendering the contents of controls like RadGridView, will throw an illegal operation exception.

    To implement a similar layout I would suggest using Windows Forms panel: Dock the RadGridView to the top inside of the panel, then add the RadPanelBar as a second control in the panel, and dock it to top again. The layout should look like the one required for your application.

     
    Sincerely yours,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Najoua
    Najoua avatar
    37 posts
    Member since:
    Jun 2007

    Posted 22 Jun 2007 Link to this post

    Hi,
    I think that I wasn't clear.Infact, I used a panel as a child control of the gridview.this is what occurs the problem(as I think)
  5. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 22 Jun 2007 Link to this post

    Yes, Najoua, we understood your setup correctly, but this operation is invalid in the context of TPF. Please, review our previous reply on how to setup your form.
     

    Greetings,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Najoua
    Najoua avatar
    37 posts
    Member since:
    Jun 2007

    Posted 22 Jun 2007 Link to this post

    In your replay, you talk about Radpanelbar, and I wanna know is it the same problem with panel?So I talk about adding a panel(and not a panelbar) to a gridview.
  7. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 22 Jun 2007 Link to this post

    Hi Najoua,
    Yes as mentioned before the controls you add inside the Controls collection of the RadGridView behave unexpectedly. The only true way is to use HostItem with the required control inside, and add it to the Children collection of a cell item.

    All the best,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready