This is a migrated thread and some comments may be shown as answers.
trouble with panel and gridview
5 Answers 44 Views
This is a migrated thread and some comments may be shown as answers.
Najoua
Top achievements
Rank 1
Najoua asked on 22 Jun 2007, 08:48 AM
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?

5 Answers, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 22 Jun 2007, 11:31 AM
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
0
Najoua
Top achievements
Rank 1
answered on 22 Jun 2007, 12:31 PM
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)
0
Dimitar Kapitanov
Telerik team
answered on 22 Jun 2007, 02:32 PM
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
0
Najoua
Top achievements
Rank 1
answered on 22 Jun 2007, 04:01 PM
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.
0
Dimitar Kapitanov
Telerik team
answered on 22 Jun 2007, 04:13 PM
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
Asked by
Najoua
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Najoua
Top achievements
Rank 1
Share this question
or