Is there some easy way to show padding for a grid. Please see the image below, there are 4 columns and the first and last stick to left and right of the grid border. In fact all the column values are left-aligned. How can i give the padding to them so that the values don't stick to the grid border. Also how can I make it best fit such that ID column and Name column does not take much width.
Hello Aziz Mirza,
I will be happy to assist you with you question.
The igGrid receives its padding from CSS files which can be modified based on specific requirements. For example, each cell's padding to be set by overriding the default styling. Angel mentions this in detail in the following forum post:http://es.infragistics.com/community/forums/t/81620.aspx
Also, you can set the column's width by manually defining the columns in your DataSource and setting the Width option. More information about the options available for the igGrid can be found in our API docs:http://help.infragistics.com/jQuery/2013.2/ui.igGrid
I have attached a sample onto this post the demonstrates you can accomplish my suggestions with the igGrid. Please review the sample and let me know if you have any questions.