hi team,
I need to create a grid inside another grid view. Say for i have template column inwhich i have button view details. if in click on the button the grid should show in the below row. like wise i have 3 template columns based on which i click the grid should show below the particular row.
Kindly reply for the post.
Hey Jayanthan,
Please check out the following thread, I've given a similar answer there:
http://ko.infragistics.com/community/forums/t/80232.aspx
Let me know if it helps. Thanks,
Angel
In webhierarchial grid,when the user clicks on linkbutton inside the template field column,new datagrid will be displayed below the row.Please refer the attached screenshot for your reference.please let me know if this can be possible to achieve.
Hi Angel,
I am using a webhierachical datagrid. My project requirement is only infragistiscs controls. i am not sure how it will work. we already tried what u have provided before but it does not help. Kindly please provide me an example so that i can understand the flow.
Regards,
Jayanthan
Hi Jayanthan,
The scenario you are describing is very specific and would require a lot of custom code and changes in order to support that in an application. I suggest two things:
1) Use the WebHerarchicalDataGrid "as is". I think it provides all of the functionality you need. The only difference is that you won't be opening the child grid on a template button click, but when clicking the default expansion button, which is rendered automatically for you.
2) Have a "Details" grid below your main grid (So you won't be using the WebHierarchicalDataGrid, but the WebDataGrid), and then upon selection in the first grid (or a button click, which is part of a template column), update (rebind) your second grid. Here is an example of this:
http://rminchev.wordpress.com/2010/10/12/master-detail-with-webdatagrid-%E2%80%93%C2%A0infragistics/
Also, alternatively you can submit a feature request with the scenario you are describing, so that it is added to our backlog of new features.
Thanks,
hey Jayanthan,
please let me know if you need more feedback on this topic. thanks
HI angel,
I have a question.
1. is that possible i can create a second row dynamically in the grid using the code in either server side/Client side once the button is clicked in the first row
2.Bind the data from the Db in another grid. Show the grid inside the dynamically created row.
please provide me any update or code sample. It will be helpful.
jayanthan
Hello Jayanthan ,
You could use manual load on demand to load the child grid’s data. You can keep the clicked button’s value in a hidden field in the parent row and based on that when you need to load a specific set of data you can do so in the RowIslandsPopulating event. For more information on how Manual load on demand works you can refer to the documentation: http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebHierarchicalDataGrid_Load_On_Demand.html
Please refer to the attached sample and let me know if this is what you’re aiming to achieve.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://ko.infragistics.com/support