I am using DevExpress Winforms for representing my Grid Structure.
What is happening is that i'm using DevExpress in an already developed application.
I am assigning the DataSet table to DataSource in the grid layout view.
I am using XtraGrid and Column Header is in camelcase.
What is happening is that Column Headings are being displayed, it is showing that 30 entries are loaded but nothing is being displayed. As in no data value is visible.We found the issue field name is case sensitive.
How do we handle this ?
Any helps/ leads will be appreciated.
If you have visible columns and you can see rows with empty cells I'll bet the field names (GridColumn.FieldName) do not match with column names of your DataTable.
The field names have nothing to do with the header captions (GridColumn.Caption) but the caption is automatically determined out of the fieldname if it is not set to another string.
Related
I am showing a list of columns using a react table. I have a drop down as a first column which shows list of columns that needs to be shown/hidden. But The problem is whenever a column is being hidden by making show as false ,the table width does not get adjusted.
This is after I have hidden all the columns using settings icon , there is a lot of space after status column. I want to avoid it . I am using width property to set width for each column. I want the width to get auto adjusted
Are you using react-table? If so I found this example. I think this is what you are looking for.
react-table simple table
My question here, we are using UI grid to display the data in the grid . We have columns which are dynamically displayed according to our request , so the number of columns will change . Also we can enable or disable the column which needs to displayed in the grid UI manually. Here we want to get only grid data and column title (column names) of the enabled column names on the grid ( enabling the column names in the grid is done manually) . How can we capture that?
When we tried using the export as csv or pdf available in grid options it exports only selected column and their data , but manually when we try to capture the selected column and their data we couldnt get it . (We are getting all the data in the grid .) Please help on this .We need to get only data of selected columns on the grid.
I have a column in a grid with editor as combo-box.
When the grid is loaded then all the column values get displayed properly.
The issue is, when user clicks at the column (having combobox as editor) to edit it then the column value becomes null as shown in the attached screenshot.
I understand that the value becomes null as the store of combobox has not been loaded yet.
I can not use autoLoad true due to the heavy amount of data present in the combobox store. Moreover, even if I use autoLoad:true for the store with paging in it, then that too safeguards only those values which are present in the first page and not all.
Thus, how can I maintain the value in grid column when that value is not present in the store of combobox used as editor for the column?
Could anyone guide at this?
PS: I am using ExtJS Ver 4.0.2a
I have been able to find a solution for this.
It has more to do with the version of ExtJs. If we upgrade to 4.0.7 and then use forceSelection:false for a combobox then things work fine as expected. That is, the combo-box accepts a value which doesn't exist in its store and doesn't set the current value to null.
Hope this helps someone else too looking for something similar.
I would suggest having the grid record contain both that columns value, as well as display value. If the combo store lookup is unable to find a matching value (because that combo store hasn't been loaded yet), then revert to showing the display value stored with the grid record.
You might also need to have the afteredit event on the grid update that grid records display value after that column is edited for a particular row.
Is there some property or method in order to align the string with the name of the group (in my case the name of Merchant 1) according to the existing grid in the Grid?
To not have to prescribe everything in the property groupTextTpl (create table, etc.)
To edit the icon (which I highlighted in the picture) was exactly under the column of Edit.
Well, or there is some method that has been put kotroy separators between the values?
Picture
I need to be able to dynamically change the width of a column in my grid according to the length of the data which is loaded for that column. For example, I have a column for "Name", and the names might get really long but I want to be able to show the entire name.
when data is loaded to your store there is fired event 'load'...
loop thru the results, find out longst name, and adjust ColumnModel...