I would like present a grid that has primary divisions by month, where each month has four separate columns under it.
Can I set up something like this using WebDataGrid?
Hello FireStorm12 ,
Thank you for posting in our forums.
For the purpose I recommend you using Multi - Column headers.
The feature is available in the new release 11.2
Please refer to the online samples
http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Display/Multi-Column-Headers/Default.aspx?cn=data-grid&sid=c97530da-4391-4912-9d8f-ce860d1860fe
and documentation
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2?page=WebDataGird_Multi_Column_Headers.html
regarding this.
Let me know if you need further assistance.
I also tried using all BoundDataFields. Same result.
I am doing this dynamically in the C# code-behind on the server. I am adding both the grouped columns and the columns in the code, not the HTML.
Any suggestions?
Hello FireStorm12,
Thank you for the follow-up.
I created a simple sample trying to reproduce the issue but with no avail.
Can you please refer to the code attached and modify it in order to encounter the behavior?
Hope hearing from you
The only differences I see between your code and mine are:
Note that when I step through the code, the grouped columns, with the subordinate columns, are all there in memory; but nothing renders in the browser.
I also noticed, that when I look at the columns in the debugger's Watch window, there is no DataFieldName property for the inserted columns.
Can you please clarify what do you mean by "inserting the columns after the grid has already been displayed"?
Are you adding them in a later phase of the lifecycle , or at a button click handler, etc?
Can you modify the sample which I have uploaded in order to replicate the issue?
Hope hearing from you.
I am inserting the columns in response to a button click. My code is attached.
Thank you for the follow up.
Currently you can add the group fields before data binding the first time like in the sample:
Currently the issue is in development and if you want it fixed the next week I should request untested build for this.
As temporary solution you can try adding the group fields in a earlier phase of the page lifecycle during post back.
I tried at PreInit and they are added but on the second post back.
I will update you with more info regarding the dev issue through the case
Is this something that you expect to be fixed within the next week or so? Or do I need to find another way to do this? (I need to get my application released very soon.)
Hello FireStorm,
Thank you for the sample and the clarification.
There is a development issue created already regarding this.
Issue 96233: Adding columns dynamically doesn't work when group field is present
I will contact you through your support ticket.