Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
Header Checkbox on dynamic columns in UltraWebGrid 7.2
posted

Hello,

I'm using UltraWebGrid 7.2.20072.61 and I'm trying to add a checkbox in the column header (for typical check all functionality).  The Problem is that the data I'm using is dynamic in that I've created a Pivot on dates using a stored procedure. What this means is that the columns that I need the checkbox header on could be anywhere in count from 1 to 180 so obviously I can't do this at the design level.

My first several columns are frozen and work great and I have a hidden DataKeyField Column for the userid. The problem comes when I try to cast the next columns as template columns.  The cast is failing. I've tried creating a loop in the UltraWebGrid1_InitializeLayout based on the number of columns sent back (past the first five which will always be the same).  I've also tried adding templated columns but they just appear after the bound columns and the header (using GridHeaderTemplate class with an InstantiateIn) isn't applied.

All of the samples I've found in the KB are for older versions and do not cover how to add checkbox headers for dynamically created columns.

Does UltraWebGrid 7.2 support this and if so how is this done?

Thanks for any help!

Parents Reply Children
No Data