|
Title: Grid Column Attributes Post by: arma on October 23, 2013, 06:03:01 PM Hi,
Is there a way to add some attribute to datagrid column that can be accessed with getColumnOption ? I need some attributes to put in columns for checking some condition. For example i need attribute column type (number, date, string etc) or attribute 'ignore' (flag) for using on search filter etc. Something like : Code: <th field="my_column_field" width="100" sortable='true' data-options="type:number,ignore_search:true,hilight:false"> Thanks. Title: Re: Grid Column Attributes Post by: stworthy on October 24, 2013, 06:02:11 PM Any properties defined in 'data-options' can be accessed by using 'getColumnOption' method.
Code: var col = $('#dg').datagrid('getColumnOption', 'my_column_field'); |