On drag, a listgrid row displays the field called "name", "id", or "title" in the drag box, and if that fails it uses the first column. If you are doing a expanded row, it displays the triangle for the drag, since that is the first column.
I'm trying to display the actual column in the listgrid on drag but I've come across a few problems.
Using setTitleField on the ListGrid does figure out what field to use, but it displays [Object, Object].
Using getDragTrackerTitle with getDragTrackerMode(Title) would seem to do it, but getDragTrackerTitle isn't being called.
I don't think it's an issue with our data structure, since if I change the name of our field to "title", it correctly shows the text on drag.
I'm hoping there's some other way to fix this, some workaround.
We're using smartgwt jars from 4/24.
Here's some of the code if it's useful.
I'm trying to display the actual column in the listgrid on drag but I've come across a few problems.
Using setTitleField on the ListGrid does figure out what field to use, but it displays [Object, Object].
Using getDragTrackerTitle with getDragTrackerMode(Title) would seem to do it, but getDragTrackerTitle isn't being called.
I don't think it's an issue with our data structure, since if I change the name of our field to "title", it correctly shows the text on drag.
I'm hoping there's some other way to fix this, some workaround.
We're using smartgwt jars from 4/24.
Here's some of the code if it's useful.
Code:
grdActivities = new ListGrid(){{ setFields(new ListGridField("activity", "Activity"){{ setValueField("id"); setDisplayField("qualifiedName"); setRequired(true); setOptionDataSource(dsActivities); setDataPath("activity/id"); }}); setHeight100(); setCanExpandRecords(true); setCanExpandMultipleRecords(false); }
Comment