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
482
Different font and justification for each column in UltraWebGrid
posted

Hi,

 I am using infragistics 7.1 on .Net2.0 with c#. I am looking for a way to manipulate fonts for each column of my ultrawebgrid. Also I want to have different centering/justification for each column.

 I need to push my code to production soon. Please reply ASAP.

 Thanks,

Parents
No Data
Reply
  • 7694
    posted

     

    Hello,  

    Please find the JavaScript code below. You can use the property cssText of cells  to set some style or manipulate it.

    <ClientSideEvents CellClickHandler="CellManipulation" />

        <script type="text/javascript">

        function CellManipulation (gridId, cellId){

            var rowLength = igtbl_getGridById(gridId).Rows.length;

            var collId = igtbl_getCellById(cellId).Index;

            var collIdy = igtbl_getCellById(cellId);       

            for(var i = 0; i<rowLength; i++){

                igtbl_getCellById('UltraWebGrid1_rc_' + i + '_' + collId).Element.style.cssText="font-size-adjust: 0.3; text-align: center;";

            }

          }

        </script>

    I hope this helps.

     

Children