I'm trying to create a master detail view in a radgridview component for data from database. We use a component for database which returns a dataset.
I have RadControls for WinForms Q2 2010 SP2. The tutorial tells me to open the MasterGridviewTemplate from the properties window, but in my properties for radgridview that property doesn't exist. What am i missing?
I have RadControls for WinForms Q2 2010 SP2. The tutorial tells me to open the MasterGridviewTemplate from the properties window, but in my properties for radgridview that property doesn't exist. What am i missing?
10 Answers, 1 is accepted
0

Richard Slade
Top achievements
Rank 2
answered on 25 Nov 2010, 01:44 PM
Hi,
I think what you would like is a hierarchy grid. You can check out the demos on your PC that came with the controls under GridView >> Hierarchy and also see this documentation about binding to hierarchical data
The RadGridView.MasterGridViewTemplate has since been replaced with
hope this helps but let me know if you have further questions
Richard
I think what you would like is a hierarchy grid. You can check out the demos on your PC that came with the controls under GridView >> Hierarchy and also see this documentation about binding to hierarchical data
The RadGridView.MasterGridViewTemplate has since been replaced with
RadGridView.MasterTemplate
hope this helps but let me know if you have further questions
Richard
0

Emanuel Varga
Top achievements
Rank 1
answered on 25 Nov 2010, 01:46 PM
Hello Kari,
You can also use the PropertyBuilder to access the MasterGridViewTemplate, just use click on the grid in the designer, use the SmartTag and open the PropertyBuilder.
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
You can also use the PropertyBuilder to access the MasterGridViewTemplate, just use click on the grid in the designer, use the SmartTag and open the PropertyBuilder.
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
0

Richard Slade
Top achievements
Rank 2
answered on 25 Nov 2010, 01:47 PM
hello again,
Under the demos on your PC, you may also want to check out "Custom Views" under GridView too.
richard
Under the demos on your PC, you may also want to check out "Custom Views" under GridView too.
richard
0

Kari
Top achievements
Rank 1
answered on 25 Nov 2010, 01:55 PM
Should i somehow add a childgridviewtempalte from the property builder or how should i proceed to get the detail part?
0

Richard Slade
Top achievements
Rank 2
answered on 25 Nov 2010, 01:58 PM
Hi Karl,
Please have a look at this tutorial which will tell you all the basics of getting a hierarchy grid view up and running.
Let me know if you need further help
Richard
Please have a look at this tutorial which will tell you all the basics of getting a hierarchy grid view up and running.
Let me know if you need further help
Richard
0

Emanuel Varga
Top achievements
Rank 1
answered on 25 Nov 2010, 02:01 PM
Hello again,
Yes, there is a Templates property under the MasterGridViewTemplate, and you can add new templates selecting the Templates, and then press the new button and to the bottom there is an option to add a new Template.
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
Yes, there is a Templates property under the MasterGridViewTemplate, and you can add new templates selecting the Templates, and then press the new button and to the bottom there is an option to add a new Template.
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
0

Kari
Top achievements
Rank 1
answered on 25 Nov 2010, 02:07 PM
i read this but can't find the MasterGridviewtemplate from the properties window which is defined in the tutorial in section Define Child Templates, see attached file, my properties looks like see capture2.jpg
0

Richard Slade
Top achievements
Rank 2
answered on 25 Nov 2010, 02:31 PM
Hi Karl,
this has changed and is now in the property designer under "Templates"
hope this helps
Richard
this has changed and is now in the property designer under "Templates"
hope this helps
Richard
0

Kari
Top achievements
Rank 1
answered on 25 Nov 2010, 03:11 PM
Ok, thanks everybody, now i got it working.
I added a template for the detail part and a relation between the two.
Pretty straightforward if you think of it afterwards. The anoying part was that the tutorial didn't match the components properties, that led me astray...
br Me
I added a template for the detail part and a relation between the two.
Pretty straightforward if you think of it afterwards. The anoying part was that the tutorial didn't match the components properties, that led me astray...
br Me
0

Richard Slade
Top achievements
Rank 2
answered on 25 Nov 2010, 03:15 PM
Glad that helped karl.
Please could I ask that you mark all answers that helped as answer so others can find the solution too
Richard
Please could I ask that you mark all answers that helped as answer so others can find the solution too
Richard