The odyssey of the RadGrid and the Dynamically created Columns

1 Answer 27 Views
Grid
SSirica
Top achievements
Rank 2
Iron
Iron
Veteran
SSirica asked on 20 May 2022, 05:28 PM

So I've come to the conclusion that anytime you use your controls in a manner that is out of the ordinary or the vanilla you might as well save yourself some time and jump off a bridge.  

I have a radGrid, that can not be created in the page init or load.  The page is setup such that the use fills the grid with columns based on their offload needs.  It has a few "canned" columns that are always there.  Everything was working fine until I tried to do an Excel offload.  The offload "worked" in a sense that the data did exported into a spreadsheet, but the dynamically created columns have no header.  I tried to set the column details  on the button click...result was data and no header.  I moved everything to the NeedDataSource...result was data and no header.  I tried resetting the header detail in the ItemCommand right before doing the offload...result was data and no header.  Sensing a theme yet?  I don't understand why the offload process doesn't operate such that it takes what's actually in the grid and offload it.  I'm sure the answer lies somewhere in the murky waters of sorting and paging and having all the data...makes this process no less stressful.   I can post my code if need be.  

Does anyone have a magic wand they can wave to get me out of this quagmire? 

1 Answer, 1 is accepted

Sort by
0
Accepted
SSirica
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 23 May 2022, 05:27 PM
I don't know how...I don't know why, but this miraculously started working this morning.  I made no code changes and did not update any software.  Doesn't matter I went in another direction anyway.  
Tags
Grid
Asked by
SSirica
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
SSirica
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or