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
605
How Changing Grid Theme
posted

Hi,

i want to know how i can change grid theme 

font color / size / style

border color 

background

selected row 

header color

Parents
  • 34810
    Offline posted

    Hello ueldeep,

    Thank you for your post!

    In the Android IGGridView, to change the font color, size, and style, I would recommend that you use the IGGridView.setOnCellCreatedEventListener method. This will fire when each cell in the grid gets created, and from each cell you can use igGridViewCell.getTextView() to retrieve the TextView in that particular cell. Then, you can use the methods on the TextView to modify the font in that cell, such as setTextColor/setTextSize. To actually set the font style, I would recommend you see this article: http://stackoverflow.com/questions/6271396/how-to-set-font-for-textview-in-android.

    For the background of the grid, you can use IGGridView.setBackground. For the selected row, you can use IGGridView.selectedRows() to return a list of all of the selected rows in your grid. For the header color, you will need to provide a custom header for your grid, and change the background through that custom header. I would recommend that you see this forum thread where custom headers have already been discussed: http://ko.infragistics.com/community/forums/t/97860.aspx.

    Regarding the border color, there currently is no functionality present for this. The IGGridView is currently in a CTP preview state though, and is not as feature rich as it will be when it is the full version. We will be adding more properties to it in the future, and if you would like to ensure that this feature gets added to the grid, I would recommend using our product ideas site: http://ideas.infragistics.com. This site allows you to create and vote on ideas that you would like to see implemented in the product, and it puts you in touch with our product management team who plans and prioritizes new features based on customer input.

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

Reply Children